RA2 {mMARCH.AC}R Documentation

Relative Amplitude

Description

This function calcualte relative amplitude, a nonparametric metric reprsenting fragmentation of circadian rhtymicity

Usage

RA2(x, window = 1, method = c("average", "sum"), noon2noon = FALSE)

Arguments

x

vector vector of activity data

window

since the caculation of M10 and L5 depends on the dimension of data, we need to include window size as an argument.

method

character of "sum" or "average", function used to bin the data

noon2noon

logical Specify if M10 and L5 were calculated from noon to noon. Default is FALSE.

Value

RA

References

Junrui Di et al. Joint and individual representation of domains of physical activity, sleep, and circadian rhythmicity. Statistics in Biosciences.


[Package mMARCH.AC version 2.9.2.0 Index]