I have a dataset consisting of 16 serial numbers for which it was detected every month, starting from April 2016, whether a maintenance event has occurred or not. For each serial number I also have information on the Place, Process, number of cycles per day, months since installation and months since the last event.
I want to predict the likelihood that a generic machine will need maintenance next month. I thought about using a logistic regression model (0 = no maintenance vs 1 = maintenance). First I hope it is correct, then my doubt is about which R function to use since the dataset is of type panel!
Thanks to anyone who will be able to help me.
Ps. if necessary I can upload a sample dataset.