vars_su_y_mjsre | R Documentation |
Computes the summary score su_y_mjsre_sum
Marijuana Subjective Response and Effects [Youth] (Total): Sum -
Positive score inverted [Validation: None missing or declined]
Summarized variables:
su_y_mjsre__pos_001
su_y_mjsre__pos_002
su_y_mjsre__pos_003
su_y_mjsre__neg_001
su_y_mjsre__neg_002
su_y_mjsre__neg_003
su_y_mjsre__neg_004
su_y_mjsre__neg_005
su_y_mjsre__neg_006
su_y_mjsre__neg_007
su_y_mjsre__neg_008
Excluded values: none
Validation criterion: maximally 0 of 11 items missing
vars_su_y_mjsre
compute_su_y_mjsre_sum(
data,
name = "su_y_mjsre_sum",
combine = TRUE,
max_na = 0
)
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: 0). |
vars_su_y_mjsre is a character vector of
all column names used to compute summary scores of
compute_su_y_mjsre
(_sum
, _nm
).
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.