View source: R/manual_data_collection_program.R
manual_tree_intensity | R Documentation |
Manually implement the pre-classification decision tree described at the end of Supplemental Document 3 from Hibbing et al. (2018, *Med Sci Sports Exerc*).
manual_tree_intensity(prompt_responses)
prompt_responses |
A vector of responses to the decision tree prompts |
The vector of responses must match the structure indicated in the example, i.e., a named vector answering prompts in the following order: participant seated; large muscles contracting; slow contractions; contractions slowed by resistance; activity is ambulatory; ambulation is slow enough to be considered light activity rather than moderate or vigorous.
prompt_responses <- structure(c("yes", "no", NA, NA, NA, NA), .Dim = c(6L, 1L), .Dimnames = list(c("seated", "large_muscles_moving", "slow", "slowed_by_resistance", "ambulation", "light_walking"), "1")) Observation:::manual_tree_intensity(prompt_responses)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.