vars_mh_p_eatq__surg | R Documentation |
Computes the summary score mh_p_eatq__surg_mean
Early Adolescent Temperament Questionnaire [Parent] (Surgency): Mean
[Validation: No more than 1 missing or declined]
Summarized variables:
mh_p_eatq__surg_001
mh_p_eatq__surg_002
mh_p_eatq__surg_003
mh_p_eatq__surg_004
mh_p_eatq__surg_005
mh_p_eatq__surg_006
mh_p_eatq__surg_007
mh_p_eatq__surg_008
mh_p_eatq__surg_009
Excluded values: none
Validation criterion: maximally 1 of 9 items missing
vars_mh_p_eatq__surg
compute_mh_p_eatq__surg_mean(
data,
name = "mh_p_eatq__surg_mean",
max_na = 1,
combine = TRUE,
revert = FALSE
)
data |
tbl, Dataframe 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. |
max_na |
integer, Maximum number of missing values allowed in the
summary score. |
combine |
logical, If |
revert |
logical, If |
vars_mh_p_eatq__surg is a character vector of all column names
used to compute summary score of mh_p_eatq__surg_mean
.
tbl. The input data frame with the summary score appended as a new column.
## Not run:
data <- compute_mh_p_eatq__surg_mean(data)
select(
data,
any_of(c("mh_p_eatq__surg_mean", vars_mh_p_eatq__surg))
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.