vars_mh_y_ple__v02 | R Documentation |
Computes the summary score mh_y_ple_count__v02
Life Events [Youth] (Events): Count - Version 2 (Year 4 and Year 5)
[Validation: No more than 6 missing or declined]
Summarized variables:
mh_y_ple_001
mh_y_ple_002
mh_y_ple_003
mh_y_ple_004
mh_y_ple_005
mh_y_ple_006
mh_y_ple_007
mh_y_ple_008
mh_y_ple_009
mh_y_ple_010
mh_y_ple_011
mh_y_ple_012
mh_y_ple_013
mh_y_ple_014
mh_y_ple_015
mh_y_ple_016
mh_y_ple_017
mh_y_ple_018
mh_y_ple_019
mh_y_ple_020
mh_y_ple_021
mh_y_ple_022
mh_y_ple_023
mh_y_ple_024
mh_y_ple_025
mh_y_ple_026
mh_y_ple_027
mh_y_ple_028
mh_y_ple_029
mh_y_ple_030
mh_y_ple_031
mh_y_ple_032
mh_y_ple_034
Excluded values:
444
777
999
Validation criterion: maximally 6 of 33 items missing
vars_mh_y_ple__v02
compute_mh_y_ple_count__v02(
data,
name = "mh_y_ple_count__v02",
events = c("ses-04A", "ses-05A"),
combine = TRUE,
max_na = 6
)
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). |
vars_mh_y_ple__v02 is a character vector of all column names
used to compute summary score of mh_y_ple
.
tbl. The input data frame with the summary score appended as a new column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.