cosinor.detect {cosinor2} | R Documentation |
Rhythm Detection Test
Description
Performs the rhythm detection test, a global test for the significance of the estimated model for single cosinor and population-mean cosinor.
Usage
cosinor.detect(x)
Arguments
x |
An object of the |
Details
The rhythm detection test, also called the zero-amplitude test, tests the overall significance of the cosinor model. The test is actually an F-ratio and is calculated as following (according to the procedure described in Cornélissen, 2014):
with and
, where
is the
th estimated value,
is the
th observed value,
is the arithmetic mean of observed values and
is the number of timepoints.
For the population-mean cosinor model, the test is calculated according to the procedure described in Bingham et al. (1982) as follows:
with and
, where
is the number of subjects in the population,
and
are standard deviations of population
and
coefficients and
is the covariance of population
and
coefficients.
References
Cornélissen, G. (2014). Cosinor-Based Rhythmometry. Theoretical Biology and Medical Modeling, 11, Article 16.
Bingham, C., Arbogast, B., Guillaume Cornélissen, G., Lee, J.K. & Halberg, F. (1982). Inferential Statistical Methods for Estimating and Comparing Cosinor Parameters. Chronobiologia, 9(4), 397-439.
Examples
fit.temperature<-cosinor.lm(Temperature~time(Time), period = 24, data = temperature_zg)
cosinor.detect(fit.temperature)
fit.november<-population.cosinor.lm(data = PANAS_november, time = PANAS_time,
period = 7)
cosinor.detect(fit.november)