Compute "Screen Time [Youth] (Weekday): Sum"
Source:R/scores_nt.R
compute_nt_y_stq__screen__wkdy_sum.RdComputes the summary score nt_y_stq__screen__wkdy_sum
Screen Time [Youth] (Weekday): Sum
Summarized variables:
nt_y_stq__screen__wkdy_001nt_y_stq__screen__wkdy_002nt_y_stq__screen__wkdy_003nt_y_stq__screen__wkdy_004nt_y_stq__screen__wkdy_005nt_y_stq__screen__wkdy_006nt_y_stq__screen__wkdy__hr_001nt_y_stq__screen__wkdy__min_001nt_y_stq__screen__wkdy__hr_001__v01nt_y_stq__screen__wkdy__min_001__v01nt_y_stq__screen__wkdy__hr_002nt_y_stq__screen__wkdy__min_002nt_y_stq__screen__wkdy__hr_003nt_y_stq__screen__wkdy__min_003nt_y_stq__screen__wkdy__hr_004nt_y_stq__screen__wkdy__min_004nt_y_stq__screen__wkdy__hr_005nt_y_stq__screen__wkdy__min_005nt_y_stq__screen__wkdy__hr_006nt_y_stq__screen__wkdy__min_006nt_y_stq__screen__wkdy__hr_007nt_y_stq__screen__wkdy__min_007nt_y_stq__screen__wkdy__hr_008nt_y_stq__screen__wkdy__min_008nt_y_stq__screen__wkdy__hr_009nt_y_stq__screen__wkdy__min_009
Excluded values:
777
999
Validation criterion: none missing
Usage
vars_nt_y_stq__screen__wkdy
compute_nt_y_stq__screen__wkdy_sum(
data,
name = "nt_y_stq__screen__wkdy_sum",
max_na = 0,
combine = TRUE
)Format
vars_nt_y_stq__screen__wkdy is a character vector of all column names
used to compute summary score of nt_y_stq__screen__wkdy.
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: 0).
- 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.