Compute "Life Events [Youth] (Experience Bad Events): Count [Validation: No more than 5 events missing and no experience items missing or declined]"
Source:R/scores_mh.R
compute_mh_y_ple__exp__bad_count.RdComputes the summary score mh_y_ple__exp__bad_count
Life Events [Youth] (Experience Bad Events): Count [Validation: No
more than 5 events missing and no experience 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_025
Excluded values:
444
777
999
Validation criterion: maximally 5 of 25 items missing
Usage
compute_mh_y_ple__exp__bad_count(
data,
name = "mh_y_ple__exp__bad_count",
combine = TRUE,
max_na = 5
)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).
- 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: 5).