| nparACT_base_loop | R Documentation |
Computes the classic non-parametric actigraphy measures: interdaily stability (IS), intradaily variability (IV), relative amplitude (RA), as well as the L5 and M10 values and their respective start times for all actigraphy files in a specified folder.
nparACT_base_loop(path, SR, cutoff = 1, plot = TRUE, fulldays = TRUE)
path |
Character string. Path to the folder containing actigraphy files. |
SR |
Numeric. Sampling rate in Hertz (samples per second). |
cutoff |
Numeric. Activity threshold used to classify movement. Defaults to 1. |
plot |
Logical. If |
fulldays |
Logical. If |
Each file is expected to contain either two columns (time, activity) or
three columns (date, time, activity). Time variables are internally
converted to POSIXct. Missing values in the activity signal are
not permitted.
Each file should contain either two columns (time, activity) or three columns (date, time, activity). Time variables are converted to POSIXct. Missing activity values are not allowed. The function filters activity, computes minute/hourly averages, calculates IS/IV/RA, and optionally plots grand-average activity profiles.
A data frame with one row per file and the following columns:
Interdaily stability
Intradaily variability
Relative amplitude
Mean activity during the least active 5-hour period
Start time of the L5 period
Mean activity during the most active 10-hour period
Start time of the M10 period
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.