Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Repeated injuries): Count"
Source:R/scores_ph.R
compute_ph_p_otbi__rpt_count.Rd
Computes the summary score ph_p_otbi__rpt_count
Ohio State Traumatic Brain Injury Screen [Parent] (Repeated injuries):
Count
Summarized variables:
ph_p_otbi__rpt_001
ph_p_otbi__rpt_002
ph_p_otbi__rpt_003
ph_p_otbi__rpt_001__l
Excluded values: c("777", "999")
Usage
vars_ph_p_otbi__rpt_count
compute_ph_p_otbi__rpt_count(
data,
name = "ph_p_otbi__rpt_count",
combine = TRUE,
max_na = 2
)
Format
vars_ph_p_otbi__rpt_count is a character vector of all column names
used to compute summary score of ph_p_otbi__rpt_count
.
Arguments
- data
tbl. Data frame containing the columns to be summarized.
- name
character. Name of the summary score column.
- combine
logical. If
TRUE
(default), the summary score is is appended as a new column to the input data frame. IfFALSE
, the summary score is returned as a separate one-column data frame.- max_na
numeric, positive whole number. Number of missing items allowed (Default: 2).