View source: R/daily_behaviour.R
This function computes a score (
self_report_pa_score) for a response to "During the past week (7 days), on how many days were you physically active for
a total of at least 60 minutes per day? (all the time you spent in activities that increased your heart rate and made you breathe hard)?" in
the CAPL-2 Questionnaire. This score is used to compute the daily
behaviour domain score (
get_self_report_pa_score(x = NA)
A numeric (integer) vector representing the self-reported physical activity question (valid values are integers between 0 and 7).
capl functions called by this function include:
Returns a numeric (integer) vector with values between 0 and 5 (if valid) or NA (if not valid).
get_self_report_pa_score(c(1, 8, 3, 4, 5, 2, 7)) #  0 NA 2 3 4 1 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.