sb_bout_dist_default | R Documentation |
Functions used internally in the package
sb_bout_dist_default( is_sb, is_wear, min_bout = 5, valid_indices = NULL, probs = c(0.1, 0.2, 0.25, seq(0.3, 0.7, 0.1), 0.75, 0.8, 0.9) ) sb_bout_dist_df( df, counts = NULL, wear = NULL, id = NULL, sb = 100, min_bout = 5, valid_indices = NULL, simplify = TRUE, probs = c(0.1, 0.2, 0.25, seq(0.3, 0.7, 0.1), 0.75, 0.8, 0.9) ) df_check_format(df, counts, valid_indices, id, wear) counts_verify(df, counts) valid_indices_verify(df, valid_indices) id_wear_time_verify(df, id, wear) id_verify(df, id) id_bind(result, id, simplify = TRUE)
is_sb |
logical vector reflecting minute-by-minute classifications
( |
is_wear |
logical vector reflecting minute-by-minute wear
classifications ( |
min_bout |
integer scalar. Threshold for a run to qualify as a bout |
valid_indices |
integer vector (optional) specifying which indices of
|
probs |
numeric vector. Percentiles to calculate (all values must be between 0 and 1) |
df |
data frame of accelerometer input |
counts |
character scalar. Column name of the variable to use when classifying sedentary behavior (and wear time, depending on the function) |
wear |
character scalar [optional]. Column name of the variable to use
for determining wear time (logical vector with |
id |
character scalar (optional). Column name on which to divide
|
sb |
integer. The cut point to use for classifying sedentary behavior |
simplify |
logical. If passing a data frame, setting to |
result |
output that may need data frame formatting (possibly ID-based) |
The purpose of id_wear_time_verify
is to determine if the Choi
wear time algorithm needs to be run and, if so, to run it (via
nhanes_wear
, with a message). To bypass,
run df$is_wear <- TRUE
prior to executing
id_wear_time_verify(df, id, wear = "is_wear")
.
df_check_format
is a wrapper that encompasses
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.