Compute "Life Events [Youth] (Severity of Good Events): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"
Source:R/scores_mh.R
compute_mh_y_ple__severity__good_sum__v01.RdComputes the summary score mh_y_ple__severity__good_sum__v01
Life Events [Youth] (Severity of Good Events): Sum - Version 1 (Year
3) [Validation: No more than 6 events missing and no experience/severity
items missing or declined]
Summarized variables:
mh_y_ple__exp_001mh_y_ple__exp_002mh_y_ple__exp_003mh_y_ple__exp_004mh_y_ple__exp_005mh_y_ple__exp_006mh_y_ple__exp_007mh_y_ple__exp_008mh_y_ple__exp_009mh_y_ple__exp_010mh_y_ple__exp_011mh_y_ple__exp_012mh_y_ple__exp_013mh_y_ple__exp_014mh_y_ple__exp_015mh_y_ple__exp_016mh_y_ple__exp_017mh_y_ple__exp_018mh_y_ple__exp_019mh_y_ple__exp_020mh_y_ple__exp_021mh_y_ple__exp_022mh_y_ple__exp_023mh_y_ple__exp_024mh_y_ple__exp_025mh_y_ple__exp_026mh_y_ple__exp_027mh_y_ple__exp_028mh_y_ple__exp_029mh_y_ple__exp_030mh_y_ple__exp_031mh_y_ple__severity_001mh_y_ple__severity_002mh_y_ple__severity_003mh_y_ple__severity_004mh_y_ple__severity_005mh_y_ple__severity_006mh_y_ple__severity_007mh_y_ple__severity_008mh_y_ple__severity_009mh_y_ple__severity_010mh_y_ple__severity_011mh_y_ple__severity_012mh_y_ple__severity_013mh_y_ple__severity_014mh_y_ple__severity_015mh_y_ple__severity_016mh_y_ple__severity_017mh_y_ple__severity_018mh_y_ple__severity_019mh_y_ple__severity_020mh_y_ple__severity_021mh_y_ple__severity_022mh_y_ple__severity_023mh_y_ple__severity_024mh_y_ple__severity_025mh_y_ple__severity_026mh_y_ple__severity_027mh_y_ple__severity_028mh_y_ple__severity_029mh_y_ple__severity_030mh_y_ple__severity_031
Excluded values:
444
777
999
Validation criterion: maximally 6 of 31 items missing
Usage
vars_mh_y_ple__exp__v01
compute_mh_y_ple__severity__good_sum__v01(
data,
name = "mh_y_ple__severity__good_sum__v01",
events = "ses-03A",
combine = TRUE,
max_na = 6
)Format
vars_mh_y_ple__exp__v01 is a character vector of all column names
used to compute summary score of mh_y_ple__exp.
Arguments
- data
tbl. Data frame containing the columns to be summarized.
- name
character. Name of the new column to be created (Default: the name used in the ABCD data release).
- events
character vector. Event (session ID) to be used.
- combine
logical. If TRUE, the new column will be bound to the input data frame. If FALSE, the new column will be created as a new data frame.
- max_na
numeric, positive whole number. Number of missing items allowed (Default: 6).