Compute "Alcohol Hangover Symptoms Scale (HSS) [Youth]: Sum"
Source:R/scores_su.R
compute_su_y_alchss_sum.RdComputes the summary score su_y_alchss_sum
Alcohol Hangover Symptoms Scale (HSS) [Youth]: Sum
Summarized variables:
su_y_alchss_001su_y_alchss_002su_y_alchss_003su_y_alchss_004su_y_alchss_005su_y_alchss_006su_y_alchss_007su_y_alchss_008su_y_alchss_009su_y_alchss_010su_y_alchss_011su_y_alchss_012su_y_alchss_013su_y_alchss_014su_y_alchss_001__lsu_y_alchss_002__lsu_y_alchss_003__lsu_y_alchss_004__lsu_y_alchss_005__lsu_y_alchss_006__lsu_y_alchss_007__lsu_y_alchss_008__lsu_y_alchss_009__lsu_y_alchss_010__lsu_y_alchss_011__lsu_y_alchss_012__lsu_y_alchss_013__lsu_y_alchss_014__l
Excluded values: none
Validation criterion: maximally 0 of 2 items missing
Usage
vars_su_y_alchss
compute_su_y_alchss_sum(
data,
name = "su_y_alchss_sum",
max_na = 0,
combine = TRUE
)Format
vars_su_y_alchss is a table of all column names
used to compute summary score of su_y_alchss.
Arguments
- data
tbl, Dataframe 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.
- max_na
integer, Maximum number of missing values allowed in the summary score.
- combine
logical, If
TRUE, the summary score will be appended to the input data frame. IfFALSE, the summary score will be returned as a separate data frame.