View source: R/simulate_cosinor.R
simulate_cosinor | R Documentation |
This function simulates data from a cosinor model with a single covariate, where the time scale is month, and optionally allows for single covariate effects on the mean, amplitude, and acrophase.
simulate_cosinor(
n,
mesor,
amp,
acro,
period = 24,
n_components,
beta.group = FALSE,
beta.mesor,
beta.amp,
beta.acro,
n_period = 1,
family = c("gaussian", "poisson", "binomial", "gamma"),
...
)
n |
The sample size. An |
mesor |
A |
amp |
A |
acro |
A |
period |
The period of the rhythm data (for |
n_components |
The number of components in the model.
This must match the length of the inputs for |
beta.group |
A |
beta.mesor |
A |
beta.amp |
A |
beta.acro |
A |
n_period |
A |
family |
A |
... |
Extra arguments, including |
Returns simulated data in a data.frame
.
simulate_cosinor(
n = 100,
mesor = 1,
amp = 1,
acro = 1,
period = 24,
family = "gaussian"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.