compute_ph_p_pds__m_categ: Compute "Pubertal Development Scale & Menstrual Cycle Survey...

View source: R/scores_ph.R

vars_ph_p_pds__m_categR Documentation

Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Male): Approximate tanner stages"

Description

Computes the summary score ph_p_pds__m_categ Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Male): Approximate tanner stages [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • ph_p_pds_002

    • ph_p_pds__m_001

    • ph_p_pds__m_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 items missing

Usage

vars_ph_p_pds__m_categ

compute_ph_p_pds__m_categ(
  data,
  name = "ph_p_pds__m_categ",
  exclude = c("777", "999"),
  combine = TRUE,
  max_na = 0
)

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. If FALSE, the summary score is returned as a separate one-column data frame.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit.

Format

vars_ph_p_pds__m is a character vector of all column names used to compute summary score of ph_p_pds__m_categ and ph_p_pds__m__categ_nm.

Value

tbl. The input data frame with the summary score appended as a new column.


ABCDscores documentation built on Sept. 11, 2025, 5:08 p.m.