RA {ActCR} | R Documentation |
Relative Amplitude
Description
This function calcualte relative amplitude, a nonparametric metric reprsenting fragmentation of circadian rhtymicity
Usage
RA(x, window = 1, method = c("average", "sum"))
Arguments
x |
|
window |
since the caculation of M10 and L5 depends on the dimension of data, we need to include window size as an argument. |
method |
|
Value
A list with elements
M10 |
Maximum 10 hour activity |
L5 |
Minimum 5 hour activity |
RA |
Relative amplitude |
References
Junrui Di et al. Joint and individual representation of domains of physical activity, sleep, and circadian rhythmicity. Statistics in Biosciences.
Examples
data(example_activity_data)
count1 = c(t(example_activity_data$count[1,-c(1,2)]))
ra = RA(x = count1, window = 10, method = "average")
[Package ActCR version 0.3.0 Index]