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

data.frame of dimension n * (1440+2) containing the 1440 dimensional activity data for all n subject days. The first two columns have to be ID and Day. ID can be either character or numeric. Day has to be numeric indicating the sequency of days within each subject.

window

an integer indicating what is the window to bin the data before the function can be apply to the dataset. For details, see bin_data.

method

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

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")


[Package ActCR version 0.3.0 Index]