cosinor.lm.default | R Documentation |
Given an outcome and time variable, fit the cosinor model with optional covariate effects.
cosinor.lm.default(formula, ...)
formula |
Forumla specifying the model. Indicate the time variable with |
... |
other arguments |
This defines special functions that are used in the formula to indicate the time variable
and which covariates effect the amplitude. To indicate the time variable wrap the name of it in the function
time()
. To indicate a variable which affects the acrophase/amplitude, wrap the name in
amp.acro()
. This will then do all the transformations for you. See examples for usage.
cosinor.lm(Y ~ time(time) + X + amp.acro(X), data = vitamind)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.