get_ku_score {capl}R Documentation

Compute a knowledge and understanding domain score.

Description

This function computes a knowledge and understanding domain score (ku_score) based on the physical activity guideline (pa_guideline_score), cardiorespiratory fitness means (crf_means_score), muscular strength and endurance means (ms_score), sports skill (sports_skill_score) and fill in the blanks (fill_in_the_blanks_score) scores. If one of the scores is missing or invalid, a weighted domain score will be computed from the other four scores. This score is used to compute the overall physical literacy score (capl_score).

Usage

get_ku_score(
  pa_guideline_score = NA,
  crf_means_score = NA,
  ms_means_score = NA,
  sports_skill_score = NA,
  fill_in_the_blanks_score = NA
)

Arguments

pa_guideline_score

A numeric (integer) vector (valid values are between 0 and 1).

crf_means_score

A numeric (integer) vector (valid values are between 0 and 1).

ms_means_score

A numeric (integer) vector (valid values are between 0 and 1).

sports_skill_score

A numeric (integer) vector (valid values are between 0 and 1).

fill_in_the_blanks_score

A numeric (integer) vector (valid values are between 0 and 6).

Details

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

Value

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

Examples

get_ku_score(
  pa_guideline_score = c(1, 0, 1, 1, NA),
  crf_means_score = c(0, 1, "", 2, 1),
  ms_means_score = c(1, 1, 1, 0, 0),
  sports_skill_score = c(0, 0, 1, 0, 1),
  fill_in_the_blanks_score = c(5, 6, 3, 1, 2)
)

# [1] 7.000000 8.000000 6.666667 2.222222 4.444444


[Package capl version 1.42 Index]