get_self_report_pa_score: Compute a score for a response to the self-reported physical...

View source: R/daily_behaviour.R

get_self_report_pa_scoreR Documentation

Compute a score for a response to the self-reported physical activity question.


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 (db_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).


Other capl functions called by this function include: validate_scale().


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))

# [1]  0 NA  2  3  4  1  5

barnzilla/capl documentation built on April 2, 2022, 8:50 a.m.