vars_ph_p_sds_sum | R Documentation |
Computes the summary score ph_p_sds_sum
Sleep Disturbance Scale [Parent] (Total): Sum [Validation: No more than 0
missing or declined]
Summarized variables:
ph_p_sds__dims_001
ph_p_sds__dims_002
ph_p_sds__dims_003
ph_p_sds__dims_004
ph_p_sds__dims_005
ph_p_sds__swtd_001
ph_p_sds__swtd_002
ph_p_sds__swtd_003
ph_p_sds__hyphy_001
ph_p_sds__dims_006
ph_p_sds__dims_007
ph_p_sds__swtd_004
ph_p_sds__sbd_001
ph_p_sds__sbd_002
ph_p_sds__sbd_003
ph_p_sds__hyphy_002
ph_p_sds__da_001
ph_p_sds__swtd_005
ph_p_sds__swtd_006
ph_p_sds__da_002
ph_p_sds__da_003
ph_p_sds__does_001
ph_p_sds__does_002
ph_p_sds__does_003
ph_p_sds__does_004
ph_p_sds__does_005
Excluded values:
777
999
Validation criterion: maximally 0 items missing
vars_ph_p_sds_sum
compute_ph_p_sds_sum(
data,
name = "ph_p_sds_sum",
max_na = 0,
exclude = c("777", "999"),
combine = TRUE
)
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. |
exclude |
character, Values to be excluded from the summary score. |
combine |
logical, If |
character vector of all column names
used to compute summary scores of ph_p_sds_sum
and ph_p_sds_nm
.
tbl. The input data frame with the summary score appended as a new column.
## Not run:
compute_ph_p_sds_sum(data) |>
select(
all_of(c("ph_p_sds_sum", vars_ph_p_sds_sum))
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.