get_capl_interpretation | R Documentation |
This function computes an age- and gender-specific CAPL-2 interpretation for a given CAPL-2 protocol or domain score (e.g., pc_interpretation
).
get_capl_interpretation(age = NA, gender = NA, score = NA, protocol = NA)
age |
A numeric vector (valid values are between 8 and 12). |
gender |
A character vector (valid values currently include "girl", "g", "female", "f", "boy", "b", "male", "m"). |
score |
A numeric vector. If the |
protocol |
A character vector representing a CAPL protocol (valid values include "pacer", "plank", "camsa", "pc", "steps", "self_report_pa", "db", "mc", "ku", "capl"; valid values are not case-sensitive). |
Other capl
functions called by this function include: validate_age()
, validate_gender()
, validate_character()
, validate_number()
and
validate_scale()
. This function will check whether a score for a given protocol is within a valid range; if not, NA will be returned.
Returns a character vector with values of "beginning", "progressing", "achieving" or "excelling" (if valid) or NA (if not valid).
get_capl_interpretation( age = 7:13, gender = c("g", "g", "b", "Boy", "m", "f", "Female"), score = c(50, 25, 100, 5, 150, 23, 78), protocol = "pacer" ) # [1] NA "achieving" "excelling" "beginning" "excelling" "progressing" # [7] NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.