get_predilection_score {capl} | R Documentation |
Compute a predilection score.
Description
This function computes a predilection score (predilection_score
) for responses to items 1, 3 and 5 of the CSAPPA (Children's Self-Perceptions of
Adequacy in and Predilection for Physical Activity; Hay, 1992) Questionnaire as they appear in the CAPL-2 Questionnaire. This score is used to compute
the motivation and confidence domain score (mc_score
).
Usage
get_predilection_score(csappa1 = NA, csappa3 = NA, csappa5 = NA)
Arguments
csappa1 |
A numeric (integer) vector representing a response to CSAPPA item 1 (valid values are integers between 1 and 4). |
csappa3 |
A numeric (integer) vector representing a response to CSAPPA item 3 (valid values are integers between 1 and 4). |
csappa5 |
A numeric (integer) vector representing a response to CSAPPA item 5 (valid values are integers between 1 and 4). |
Details
Valid values (integers between 1 and 4) represent the following responses:
1 = REALLY TRUE for me for "some kids" statements
2 = SORT OF TRUE for me for "some kids" statements
3 = REALLY TRUE for me for "other kids" statements
4 = SORT OF TRUE for me for "other kids" statements
Other capl
functions called by this function include: validate_scale()
.
Value
Returns a numeric vector with values between 1.8 and 7.5 (if valid) or NA (if not valid).
Examples
get_predilection_score(
csappa1 = c(1:3, 0),
csappa3 = c(4, 2, 1, "3"),
csappa5 = c(4, 4, 2, 2)
)
# [1] 4.2 4.2 4.3 NA