Description Usage Arguments Value Examples
This function fits the cyclic model, using a simple linear model (see Verboon & Leontjevas, 2018)
1 2 3 |
dat |
data frame containing the variables |
yvar |
dependent variable |
xvar |
time variabele, usually indicates the beeps or other numerical variable. Time format is also possible. |
grp |
group variabele indicator, usually indicates the days, used in "raw" plot. |
cov |
vector of names containing additional variabeles (e.g. cov = c("x1", "daynr")) |
P |
the periodicity of the cycle. If NULL P will be computed from the data. |
ymin, ymax, step |
parameters that control axes of the plot |
xlabs, ylabs |
labels respectively for x-axis and y-axis of the plots |
list containing the following elements:
parameters = amplitude and phase
fit = object from lm()
rawDataPlot = plot of predicted values for all observations
meansPlot = plot with predictions averaged over subjects,
oneCyclePlot = plot with predictions for one cycle,
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.