ExtCos: Extended Cosinor Model for Circadian Rhythmicity

Description Usage Arguments Value Examples

View source: R/ExtCos.R

Description

A parametric approach to study circadian rhythmicity assuming cosinor shape. Here we used the anti logistic transformed cosine curves, which provided 5 parameters.

Usage

1
ExtCos(x, logtransform = TRUE)

Arguments

x

vector vector of dimension n*1440 which reprsents n days of 1440 minute activity data

logtransform

Conduct log transfomation before. Default is TRUE.

Value

A list with elements

min

minimum

amp

amplitude

alpha

alpha parameter:determines whether the peaks of the curve are wider than the troughs

beta

beta parameter: determines whether the function rises and falls more steeply than the cosine curve

acro

acrophase

F_imp

pseudo-F statistics

Examples

1
2
count.days = rpois(1440*5, lambda = 5)
extcos = ExtCos(x = count.days, logtransform  = TRUE)

junruidi/actigraphy documentation built on Sept. 25, 2019, 7:48 a.m.