Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): Age of first injury with LOC"
Source:R/scores_ph.R
compute_ph_p_otbi__loc_tbiage.RdComputes the summary score ph_p_otbi__loc_tbiage
Ohio State Traumatic Brain Injury Screen [Parent] (Loss of
consciousness): Age of first injury with LOC
Summarized variables:
ph_p_otbi_001ph_p_otbi__loc_001ph_p_otbi__age_001ph_p_otbi_002ph_p_otbi__loc_002ph_p_otbi__age_002ph_p_otbi_003ph_p_otbi__loc_003ph_p_otbi__age_003ph_p_otbi_004ph_p_otbi__loc_004ph_p_otbi__age_004ph_p_otbi_005ph_p_otbi__loc_005ph_p_otbi__age_005ph_p_otbi__loc__add_001ph_p_otbi__loc__add_001__04ph_p_otbi__rpt_001ph_p_otbi__rpt__loc_001ph_p_otbi__rpt__age_001aph_p_otbi__rpt_002ph_p_otbi__rpt__loc__daz_002ph_p_otbi__rpt__age_002aph_p_otbi__rpt_003ph_p_otbi__rpt__loc__daz_003ph_p_otbi__rpt__age_003aph_p_otbi_001__lph_p_otbi__loc_001__lph_p_otbi__age_001__lph_p_otbi_002__lph_p_otbi__loc_002__lph_p_otbi__age_002__lph_p_otbi_003__lph_p_otbi__loc_003__lph_p_otbi__age_003__lph_p_otbi_004__lph_p_otbi__loc_004__lph_p_otbi__age_004__lph_p_otbi_005__lph_p_otbi__loc_005__lph_p_otbi__age_005__lph_p_otbi__loc__add_001__lph_p_otbi__loc__add_001__04__lph_p_otbi__rpt_001__lph_p_otbi__rpt__loc_001__lph_p_otbi__rpt__age_001a__l
Excluded values:
777
999
any reported age less than or equal to 0
Notes:
The output is set to
NAfor the following cases:minimum age is less than 0
minimum age is higher than age at visit
no head or neck injury/impact is reported
Usage
vars_ph_p_otbi__loc_tbiage
compute_ph_p_otbi__loc_tbiage(
data,
name = "ph_p_otbi__loc_tbiage",
exclude = c("777", "999"),
combine = TRUE
)Format
vars_ph_p_otbi__loc_tbiage is a character vector of all column names
used to compute summary score of ph_p_otbi__loc_tbiage.
Arguments
- data
tbl. Data frame containing the columns to be summarized.
- name
character. Name of the summary score column.
- exclude
character vector. Values to be excluded from the summary score calculation.
- 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.