Computes the summary score mh_p_asr_sum
Adult Self Report [Parent]: Sum
Summarized variables:
mh_p_asr__aggr_001
mh_p_asr__aggr__antsoc_003
mh_p_asr__aggr__antsoc_006
mh_p_asr__aggr__antsoc_008
mh_p_asr__anxdep__dep_001
mh_p_asr__anxdep__dep_004
mh_p_asr__anxdep__dep_005
mh_p_asr__attn__inatt_002
mh_p_asr__othpr__hypimp_001
mh_p_asr__othpr__antsoc_001
mh_p_asr__rule_001
mh_p_asr__rule_003
mh_p_asr__rule__antsoc_007
mh_p_asr__tho_001
mh_p_asr__tho_002
mh_p_asr__tho_005
mh_p_asr__tho_006
mh_p_asr__tho_007
mh_p_asr__tho__dep_001
mh_p_asr__aggr__hypimp_001
mh_p_asr__othpr__hypimp_002
mh_p_asr__othpr__hypimp_003
mh_p_asr__rule__hypimp_001
mh_p_asr__tho__hypimp_001
mh_p_asr__attn__inatt_001
mh_p_asr__attn__inatt_003
mh_p_asr__attn__inatt_004
mh_p_asr__attn__inatt_005
mh_p_asr__attn__inatt_006
mh_p_asr__attn__inatt_007
mh_p_asr__aggr__antsoc_001
mh_p_asr__aggr__antsoc_002
mh_p_asr__aggr__antsoc_004
mh_p_asr__aggr__antsoc_005
mh_p_asr__aggr__antsoc_007
mh_p_asr__attn__antsoc_001
mh_p_asr__othpr__antsoc_002
mh_p_asr__rule__antsoc_001
mh_p_asr__rule__antsoc_002
mh_p_asr__rule__antsoc_003
mh_p_asr__rule__antsoc_004
mh_p_asr__rule__antsoc_005
mh_p_asr__rule__antsoc_006
mh_p_asr__rule__antsoc_008
mh_p_asr__rule__antsoc_009
mh_p_asr__anxdep__anx_001
mh_p_asr__anxdep__anx_002
mh_p_asr__anxdep__anx_003
mh_p_asr__anxdep__anx_004
mh_p_asr__othpr__anx_001
mh_p_asr__othpr__anx_002
mh_p_asr__anxdep__avoid_001
mh_p_asr__anxdep__avoid_002
mh_p_asr__othpr__avoid_001
mh_p_asr__wthdr__avoid_001
mh_p_asr__wthdr__avoid_002
mh_p_asr__wthdr__avoid_003
mh_p_asr__wthdr__avoid_004
mh_p_asr__anxdep__dep_002
mh_p_asr__anxdep__dep_003
mh_p_asr__anxdep__dep_006
mh_p_asr__attn__dep_001
mh_p_asr__attn__dep_002
mh_p_asr__othpr__dep_001
mh_p_asr__othpr__dep_002
mh_p_asr__som__dep_001
mh_p_asr__som__dep_002
mh_p_asr__wthdr__dep_001
mh_p_asr__som__somat_001
mh_p_asr__som__somat_002
mh_p_asr__som__somat_003
mh_p_asr__som__somat_004
mh_p_asr__som__somat_005
mh_p_asr__som__somat_006
mh_p_asr__som__somat_007
mh_p_asr__som__somat_008
mh_p_asr__som__somat_009
mh_p_asr__aggr_002
mh_p_asr__aggr_003
mh_p_asr__aggr_004
mh_p_asr__aggr_005
mh_p_asr__aggr_006
mh_p_asr__anxdep_001
mh_p_asr__anxdep_002
mh_p_asr__anxdep_003
mh_p_asr__anxdep_004
mh_p_asr__anxdep_005
mh_p_asr__anxdep_006
mh_p_asr__attn_001
mh_p_asr__attn_002
mh_p_asr__attn_003
mh_p_asr__attn_004
mh_p_asr__attn_005
mh_p_asr__intru_001
mh_p_asr__intru_002
mh_p_asr__intru_003
mh_p_asr__intru_004
mh_p_asr__intru_005
mh_p_asr__intru_006
mh_p_asr__rule_002
mh_p_asr__rule_004
mh_p_asr__som_001
mh_p_asr__wthdr_001
mh_p_asr__wthdr_002
mh_p_asr__wthdr_003
mh_p_asr__wthdr_004
mh_p_asr__othpr_001
mh_p_asr__othpr_002
mh_p_asr__othpr_003
mh_p_asr__othpr_004
mh_p_asr__othpr_005
mh_p_asr__othpr_006
mh_p_asr__othpr_007
mh_p_asr__othpr_008
mh_p_asr__othpr_009
mh_p_asr__othpr_010
mh_p_asr__othpr_011
mh_p_asr__tho_003
mh_p_asr__tho_004
mh_p_asr__tho_008
Excluded values:
777
999
Validation criterion: maximally 8 of 120 items missing
compute_mh_p_asr_sum(
data,
name = "mh_p_asr_sum",
max_na = 8,
exclude = c("777", "999"),
combine = TRUE
)tbl. see combine.
tbl. Data frame containing the columns to be summarized.
character. Name of the summary score column.
numeric, positive whole number. Number of missing items
allowed. NULL means no limit.
character vector. Values to be excluded from the summary score.
logical. If TRUE (default), the summary score is
is appended as a new column to the input data frame. If FALSE, the
summary score is returned as a separate one-column data frame.
compute_mh_p_asr_nm()
if (FALSE) {
compute_mh_p_asr_sum(data) |>
select(
any_of(c("mh_p_asr_sum", vars_mh_p_asr))
)
}
Run the code above in your browser using DataLab