Compute Family History [Parent] Endorsement indicator
Source:R/scores_mh_famhx.R
compute_famhx_endorsement.RdComputes a binary endorsement indicator, for alcohol or drug use
computed using a set of variables.
Resulting indicator is either 0 (FALSE) or 1 (TRUE), and
NA for missing or non-responses (777, 888, or 999).
Notes:
Following values are recoded as NA prior to any computation
777
888
999
Arguments
- data
tbl. Data frame containing the columns to be summarized.
- name
character. The name of the summary score.
- var_matches
character of length one. The base name of the checkbox field that is used to find all corresponding columns in
datathat contain the responses of a participant for the check box. This parameter is passed ontocombine_checkboxesfunction.- combine
logical. Whether to combine the summary score column with the input data frame (Default: TRUE).