Compute "Alcohol Problem Index (RAPI) [Youth]: Prorated sum"
Source:R/scores_su.R
compute_su_y_alcprob_prsum.RdComputes the summary score su_y_alcprob_prsum
Alcohol Problem Index (RAPI) [Youth]: Prorated sum [Validation: No more
than 2 missing or declined]
Summarized variables:
su_y_alcprob_001su_y_alcprob_002su_y_alcprob_003su_y_alcprob_004su_y_alcprob_005su_y_alcprob_006su_y_alcprob_007su_y_alcprob_008su_y_alcprob_009su_y_alcprob_010su_y_alcprob_012su_y_alcprob_016su_y_alcprob_017su_y_alcprob_018su_y_alcprob_001__lsu_y_alcprob_002__lsu_y_alcprob_003__lsu_y_alcprob_004__lsu_y_alcprob_005__lsu_y_alcprob_006__lsu_y_alcprob_007__lsu_y_alcprob_008__lsu_y_alcprob_009__lsu_y_alcprob_010__lsu_y_alcprob_012__lsu_y_alcprob_016__lsu_y_alcprob_017__lsu_y_alcprob_018__l
Excluded values: none
Validation criterion: maximally 2 items missing
Usage
vars_su_y_alcprob
compute_su_y_alcprob_prsum(
data,
name = "su_y_alcprob_prsum",
combine = TRUE,
max_na = 2
)Format
vars_su_y_alcprob is a table with pairs of baseline and longitudinal
redcap fields used to compute summary score of su_y_alcprob_prsum and
su_y_alcprob_nm.
Arguments
- data
tbl. Data frame containing the columns to be summarized.
- name
character, Name of the new column to be created. Default is the name in description, but users can change it.
- combine
logical, If
TRUE(default), the summary score will be appended to the input data frame. IfFALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)- max_na
numeric, positive whole number. Number of missing items allowed (Default: 1).