View source: R/youth_apply_sojourn.R
| apply_youth_sojourn | R Documentation |
Function for using the youth Sojourn method developed by Hibbing et al. (2018)
apply_youth_sojourn(
AG,
vm = c("Vector.Magnitude", "ENMO"),
Site = c("Hip", "Wrist"),
demo_interactive = FALSE,
verbose = FALSE,
...
)
AG |
a data frame of monitor and demographic data |
vm |
the variable to use for processing, either
|
Site |
the wear location of the monitor, either |
demo_interactive |
logical. Input demographics interactively if missing variables are identified during format checking? |
verbose |
logical. Print processing updates to the console? |
... |
Further arguments passed to |
The original data frame, plus additional predictions made by the Sojourn method
The functions AGread::read_AG_counts and
AGread::read_AG_raw are recommended for assembling the
monitor-specific portion of the AG data frame.
data(example_data, package = "Sojourn")
results_youth_soj <- apply_youth_sojourn(
AG = example_data,
vm = "Vector.Magnitude",
Site = "Hip"
)
utils::head(results_youth_soj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.