Compute "Youth Screen Time [Parent] (Problematic Media Use): Mean [Validation: No more than 1 missing or declined]"
Source:R/scores_nt.R
compute_nt_p_yst__pmum_mean.RdComputes the summary score nt_p_yst__pmum_mean
Youth Screen Time [Parent] (Problematic Media Use): Mean [Validation:
No more than 1 missing or declined]
Summarized variables:
nt_p_yst__pmum_001nt_p_yst__pmum_002nt_p_yst__pmum_003nt_p_yst__pmum_004nt_p_yst__pmum_005nt_p_yst__pmum_006nt_p_yst__pmum_007nt_p_yst__pmum_008nt_p_yst__pmum_009
Excluded values:
777
999
Usage
vars_nt_p_yst__pmum
compute_nt_p_yst__pmum_mean(
data,
name = "nt_p_yst__pmum_mean",
max_na = 1,
combine = TRUE
)Format
vars_nt_p_yst__pmum is a character vector of all column names
used to compute summary score of nt_p_yst__pmum_mean.
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).
- max_na
numeric, positive whole number. Number of missing items allowed (Default: 1).
- 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.