Given a time variable and optional covariates, generate predicted values from a cosinor fit. Default prediction is the mean value, optionally can predict at a given month
# S3 method for cosinor.lm predict(object, newdata, ...)
An object of class cosinor.lm
cosinor.lm
Optional new data
other arguments
# NOT RUN { fit <- cosinor.lm(Y ~ time(time) + X + amp.acro(X), data = vitamind) predict(fit) # }
Run the code above in your browser using DataCamp Workspace