Description Usage Arguments Value Examples
circacompare
performs a comparison between two rhythmic groups of data. It tests for rhythmicity and then fits a nonlinear model with parametrization to estimate and statistically support differences in mesor, amplitude, and phase between groups.
1 2 3 4 5 6 7 8 9 10 | circacompare(
x,
col_time,
col_group,
col_outcome,
period = 24,
alpha_threshold = 0.05,
timeout_n = 10000,
control = list()
)
|
x |
data.frame. This is the data.frame which contains the rhythmic data for two groups in a tidy format. |
col_time |
The name of the column within the data.frame, x, which contains time in hours at which the data were collected. |
col_group |
The name of the column within the data.frame, x, which contains the grouping variable. This should only have two levels. |
col_outcome |
The name of the column within the data.frame, x, which contains outcome measure of interest. |
period |
The period of the rhythm. For circadian rhythms, leave this as the default value, 24. |
alpha_threshold |
The level of alpha for which the presence of rhythmicity is considered. Default is 0.05. |
timeout_n |
The upper limit for the model fitting attempts. Default is 10,000. |
control |
|
list
1 2 3 4 | df <- make_data(phi1 = 6)
out <- circacompare(x = df, col_time = "time", col_group = "group",
col_outcome = "measure")
out
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.