IV_long {ActCR} | R Documentation |
Intradaily Variability for the Whole Dataset
Description
This function calcualte intradaily variability, a nonparametric metric
reprsenting fragmentation of circadian rhtymicity. This function is a whole dataset
wrapper for IV
.
Usage
IV_long(count.data, window = 1, method = c("average", "sum"))
Arguments
count.data |
|
window |
an |
method |
|
Value
A data.frame
with the following 5 columns
ID |
ID |
Day |
Day |
IV |
IV |
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 = example_activity_data$count
iv_subj = IV_long(count.data = count1, window = 10, method = "average")