manual_tree_intensity: Manually Pre-Classify Activity Intensity

View source: R/manual_data_collection_program.R

manual_tree_intensityR Documentation

Manually Pre-Classify Activity Intensity

Description

Manually implement the pre-classification decision tree described at the end of Supplemental Document 3 from Hibbing et al. (2018, *Med Sci Sports Exerc*).

Usage

manual_tree_intensity(prompt_responses)

Arguments

prompt_responses

A vector of responses to the decision tree prompts

Note

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.

Examples

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)


Observation documentation built on Sept. 5, 2022, 9:06 a.m.