vars_ab_g_stc__cohort_ethn | R Documentation |
Computes the summary score ab_g_stc__cohort_ethn
Cohort description: Ethnicity (Hispanic or not Hispanic) [Based on
baseline response; missingness filled in from longitudinal responses]
Summarized variables:
ab_p_demo__ethn_001
ab_p_demo__ethn_001__v01
Excluded values:
777
999
Notes:
Values in ab_p_demo__ethn_001__v01
were recoded:
"0" –> "2",
"2" –> "1"
"3" –> "1"
"4" –> "1"
Values in ab_p_demo__ethn_001
were recoded:
"0" –> "2"
vars_ab_g_stc__cohort_ethn
compute_ab_g_stc__cohort_ethn(
data,
name = "ab_g_stc__cohort_ethn",
exclude = c("777", "999"),
combine = TRUE
)
data |
tbl. Data frame containing the columns to be summarized. |
name |
character, Name of the new column to be created. Default is the name in description, but users can change it. |
exclude |
character vector. Values to be excluded from the summary score calculation. |
combine |
logical, If |
a character vector of all column names
used to compute summary score of ab_g_stc__cohort_ethn
.
tbl. The input data frame with the summary score appended as
a new column (default). If combine == FALSE
, a data frame with two
columns: participant ID and summary score.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.