Compute "Sleep Disturbance Scale [Parent] (Total) - Number missing"
Source:R/scores_ph.R
compute_ph_p_sds_nm.Rd
Computes the summary score ph_p_sds_nm
Sleep Disturbance Scale [Parent] (Total) - Number missing
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
Usage
compute_ph_p_sds_nm(
data,
name = "ph_p_sds_nm",
exclude = c("777", "999"),
combine = TRUE
)
Arguments
- 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.
- exclude
character, Values to be excluded from the summary score.
- combine
logical, If
TRUE
, the summary score will be appended to the input data frame. IfFALSE
, the summary score will be returned as a separate data frame.