Skip to contents

Computes the summary score ph_y_mctq__sd__sleep__waso_sum Munich Chronotype Questionnaire [Youth] (School Day - Sleep wakenings after sleep onset): Sum

  • Summarized variables:

    • ph_y_mctq__sd_004

    • ph_y_mctq__sd_004__01

Usage

compute_ph_y_mctq__sd__sleep__waso_sum(
  data,
  name = "ph_y_mctq__sd__sleep__waso_sum",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the new column to be created (Default: the name used in the ABCD data release).

combine

logical. If TRUE, the new column will be bound to the input data frame. If FALSE, the new column will be created as a new data frame.

Value

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

Examples

if (FALSE) { # \dontrun{
data <- compute_ph_y_mctq__sd__sleep__waso_sum(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__sd_004",
    "ph_y_mctq__sd_004__01",
    "ph_y_mctq__sd__sleep__waso_sum"
  ))
)
} # }