cosinor.PR: Percent Rhythm

Description Usage Arguments Details Examples

View source: R/cosinor2.R

Description

Calculates Percent Rhythm, the measure of the relative strength of a rhythm.

Usage

1

Arguments

x

An object of the cosinor.lm or population.cosinor.lm class.

Details

Percent Rhythm is the coefficient of determination obtained by squaring the correlation between observed and estimated values.

Examples

1
2
3
4
5
6
fit.temperature<-cosinor.lm(Temperature~time(Time), period = 24, data = temperature_zg)
cosinor.PR(fit.temperature)

fit.november<-population.cosinor.lm(data = PANAS_november, time = PANAS_time,
period = 7)
cosinor.PR(fit.november)

Example output

Loading required package: cosinor
          r Percent rhythm p-value
1 0.9838823      0.9680243       0
     MESOR Amplitude Acrophase
1 1.435419 0.2662682 -5.544496
          r Percent rhythm     p-value
1 0.4637158      0.2150324 0.009851019

cosinor2 documentation built on May 1, 2019, 10:25 p.m.