get_db_score: Compute a daily behaviour domain score.

View source: R/daily_behaviour.R

get_db_scoreR Documentation

Compute a daily behaviour domain score.

Description

This function computes a daily behaviour domain score (db_score) based on the step and self-reported physical activity scores. This score is used to compute the overall physical literacy score (capl_score).

Usage

get_db_score(step_score = NA, self_report_pa_score = NA)

Arguments

step_score

A numeric (integer) vector representing the pedometer steps score (valid values are integers between 0 and 25).

self_report_pa_score

A numeric (integer) vector representing the self-reported physical activity score (valid values are integers between 0 and 5).

Details

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

Value

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

Examples

get_db_score(
  step_score = c(20, 6, 13, 5, NA, 4.5),
  self_report_pa_score = c(3, 2, 1, 4, 7, 3)
)

# [1] 23  8 14  9 NA NA


capl documentation built on April 8, 2022, 9:06 a.m.