Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Female): Number missing"
Source:R/scores_ph.R
compute_ph_y_pds__f_nm.Rd
Computes the summary score ph_y_pds__f_nm
Pubertal Development Scale & Menstrual Cycle Survey History [Youth]
(Female): Number missing
Summarized variables:
ph_y_pds_001
ph_y_pds_002
ph_y_pds_003
ph_y_pds__f_001
ph_y_pds__f_002
Excluded values:
777
999
Usage
compute_ph_y_pds__f_nm(
data,
name = "ph_y_pds__f_nm",
exclude = c("777", "999"),
combine = TRUE
)
Arguments
- data
tbl. Data frame containing the columns to be summarized.
- name
character. Name of the summary score column.
- exclude
character vector. Values to be excluded from the summary score calculation.
- combine
logical. If
TRUE
(default), the summary score is is appended as a new column to the input data frame. IfFALSE
, the summary score is returned as a separate one-column data frame.