predict.cglmm {GLMMcosinor} | R Documentation |
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 class 'cglmm'
predict(object, newdata, ...)
object |
An object of class |
newdata |
Optional new data. |
... |
other arguments passed to |
Returns predicted values from the cosinor model.
fit <- cglmm(vit_d ~ X + amp_acro(time,
group = "X",
n_components = 1,
period = 12
), data = vitamind)
predict(fit)