Learn R Programming

CircaCP (version 0.1.2)

extract_nonparametric_metrics: Nonparametric circadian metrics (RA, IS, IV, L5, M10)

Description

Computes five nonparametric metrics from minute-level activity: Relative Amplitude (RA), Interdaily Stability (IS), Intradaily Variability (IV), the least-active 5-hour block (L5), and the most-active 10-hour block (M10).

Usage

extract_nonparametric_metrics(df, L_window = 5 * 60, M_window = 10 * 60)

Value

A list with components:

RA

Relative amplitude, \((M10 - L5) / (M10 + L5)\) when denominator \(> 0\).

IS

Interdaily stability (0..1).

IV

Intradaily variability (\(\ge 0\)).

L5_mean

Mean activity in the lowest 5-hour block of the 24 h profile.

L5_start_min

Minute-of-day (0~1439) at which L5 starts.

M10_mean

Mean activity in the highest 10-hour block of the 24 h profile.

M10_start_min

Minute-of-day (0~1439) at which M10 starts.

profile_24h

Length-1440 vector of minute-of-day means.

Arguments

df

cleaned data frame containing the activity varialbe at 1-minute epoch

L_window

Integer window length (minutes) for L5 (default 300).

M_window

Integer window length (minutes) for M10 (default 600).

See Also

screen_wear(), sleep_detection(), extract_sleep_metrics