get_mc_score {capl} | R Documentation |
Compute a motivation and confidence domain score.
Description
This function computes a motivation and confidence domain score (mc_score
) based on the predilection (predilection_score
), adequacy
(adequacy_score
), intrinsic motivation (intrinsic_motivation_score
) and physical activity competence (pa_competence_score
) scores. If one of the
scores is missing or invalid, a weighted domain score will be computed from the other three scores. This score is used to compute the overall physical
literacy score (capl_score
).
Usage
get_mc_score(
predilection_score = NA,
adequacy_score = NA,
intrinsic_motivation_score = NA,
pa_competence_score = NA
)
Arguments
predilection_score |
A numeric vector (valid values are between 1.8 and 7.5). |
adequacy_score |
A numeric vector (valid values are between 1.8 and 7.5). |
intrinsic_motivation_score |
A numericvector (valid values are between 1.5 and 7.5). |
pa_competence_score |
A numeric vector (valid values are between 1.5 and 7.5). |
Details
Other capl
functions called by this function include: validate_number()
.
Value
Returns a numeric vector with values between 0 and 30 (if valid) or NA (if not valid).
Examples
get_mc_score(
predilection_score = c(7, 7.5, 5, 8, 4),
adequacy_score = c(NA, 5, 3, 1, 4),
intrinsic_motivation_score = c(5, 7.5, 4, 2, 3.5),
pa_competence_score = c(6, 3, 6, 7, 2)
)
# [1] 24.0 23.0 18.0 NA 13.5