get_capl_score {capl} | R Documentation |
Compute an overall physical literacy score.
Description
This function computes an overall physical literacy score (capl_score
) based on the physical competence (pc_score
), daily behaviour (db_score
),
motivation and confidence (mc_score
), and knowledge and understanding (ku_score
) domain scores. If one of the scores is missing or invalid, a
weighted score will be computed from the other three scores.
Usage
get_capl_score(pc_score = NA, db_score = NA, mc_score = NA, ku_score = NA)
Arguments
pc_score |
A numeric vector (valid values are between 0 and 30). |
db_score |
A numeric (integer) vector (valid values are between 0 and 30). |
mc_score |
A numeric vector (valid values are between 0 and 30). |
ku_score |
A numeric vector (valid values are between 0 and 10). |
Details
Other capl
functions called by this function include: validate_number()
, validate_integer()
and validate_domain_score()
.
Value
Returns a numeric vector with values between 0 and 100 (if valid) or NA (if not valid).
Examples
get_capl_score(
pc_score = c(20, 15, 12, 5, 31),
db_score = c(20, 15, 6, 4.1, 25),
mc_score = c(20, 20, 19, 15.4, 25),
ku_score = c(11, 4, 5, 7.8, 10)
)
# [1] 66.66667 54.00000 42.00000 40.28571 85.71429