Compute "Life Events [Youth] (Experience Good Events): Count - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no experience items missing or declined]"
Source:R/scores_mh.R
compute_mh_y_ple__exp__good_count__v03.Rd
Computes the summary score mh_y_ple__exp__good_count__v03
Life Events [Youth] (Experience Good Events): Count - Version 3
(Starting at Year 6) [Validation: No more than 6 events missing and no
experience items missing or declined]
Summarized variables:
mh_y_ple__exp_001
mh_y_ple__exp_002
mh_y_ple__exp_003
mh_y_ple__exp_004
mh_y_ple__exp_005
mh_y_ple__exp_006
mh_y_ple__exp_007
mh_y_ple__exp_008
mh_y_ple__exp_009
mh_y_ple__exp_010
mh_y_ple__exp_011
mh_y_ple__exp_012
mh_y_ple__exp_013
mh_y_ple__exp_014
mh_y_ple__exp_015
mh_y_ple__exp_016
mh_y_ple__exp_017
mh_y_ple__exp_018
mh_y_ple__exp_019
mh_y_ple__exp_020
mh_y_ple__exp_021
mh_y_ple__exp_022
mh_y_ple__exp_023
mh_y_ple__exp_024
mh_y_ple__exp_025
mh_y_ple__exp_026
mh_y_ple__exp_027
mh_y_ple__exp_028
mh_y_ple__exp_029
mh_y_ple__exp_030
mh_y_ple__exp_031
mh_y_ple__exp_032
mh_y_ple__exp_033
Excluded values:
444
777
999
Validation criterion: maximally 6 of 33 items missing
Usage
compute_mh_y_ple__exp__good_count__v03(
data,
name = "mh_y_ple__exp__good_count__v03",
events = c("ses-06A", "ses-07A"),
combine = TRUE,
max_na = 6
)
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).