get_self_report_pa_score {capl}R Documentation

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

Description

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

Usage

get_self_report_pa_score(x = NA)

Arguments

x

A numeric (integer) vector representing the self-reported physical activity question (valid values are integers between 0 and 7).

Details

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

Value

Returns a numeric (integer) vector with values between 0 and 5 (if valid) or NA (if not valid).

Examples

get_self_report_pa_score(c(1, 8, 3, 4, 5, 2, 7))

# [1]  0 NA  2  3  4  1  5


[Package capl version 1.39 Index]