View source: R/daily_behaviour.R
get_db_score | R Documentation |
This function computes a daily behaviour domain score (db_score
) based on the step and self-reported physical activity scores. This score
is used to compute the overall physical literacy score (capl_score
).
get_db_score(step_score = NA, self_report_pa_score = NA)
step_score |
A numeric (integer) vector representing the pedometer steps score (valid values are integers between 0 and 25). |
self_report_pa_score |
A numeric (integer) vector representing the self-reported physical activity score (valid values are integers between 0 and 5). |
Other capl
functions called by this function include: validate_scale()
.
Returns a numeric (integer) vector with values between 0 and 30 (if valid) or NA (if not valid).
get_db_score( step_score = c(20, 6, 13, 5, NA, 4.5), self_report_pa_score = c(3, 2, 1, 4, 7, 3) ) # [1] 23 8 14 9 NA NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.