Package 'ABCDscores'

Title: Summary Scores of the Adolescent Brain Cognitive Development (ABCD) Study
Description: Provides functions to compute summary scores (besides proprietary ones) reported in the tabulated data resource that is released by the Adolescent Brain Cognitive Development (ABCD) study.
Authors: Le Zhang [aut, cre] (ORCID: <https://orcid.org/0009-0008-0205-2150>), Janosch Linkersdoerfer [aut] (ORCID: <https://orcid.org/0000-0002-1577-1233>), Olivier Celhay [aut] (ORCID: <https://orcid.org/0000-0002-2971-9110>), Biplabendu Das [aut] (ORCID: <https://orcid.org/0000-0003-0855-262X>), Sammy Berman [aut] (ORCID: <https://orcid.org/0000-0002-9803-019X>), Laura Ziemer [aut] (ORCID: <https://orcid.org/0000-0003-0026-3823>), Shermaine Abad [aut] (ORCID: <https://orcid.org/0009-0009-6013-9147>)
Maintainer: Le Zhang <[email protected]>
License: GPL (>= 3)
Version: 7.0.0
Built: 2026-05-16 00:16:34 UTC
Source: https://github.com/cran/ABCDscores

Help Index


Check an output field and assign NA when input variables all have NAs

Description

Checks the specified output column in a data frame and assigns NA to its value depending on the missingness of a set of input columns. If allow_missingness = TRUE, the output column is set to NA only when all the specified input columns are NA. If allow_missingness = FALSE, the output column is set to NA when any of the input columns are NA. This function is useful for propagating missingness from input variables to a derived output.

Usage

check_assign_na(data, output, input, allow_missingness = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

output

character of length 1. The name of the first variable/column.

input

character. The name of the second variable/column.

allow_missingness

logical. Default set to TRUE. If TRUE, output field is set to NA only when ALL the fields in input have missingness. If FALSE, output is set to NA when ANY of the input fields have missingness.

Value

tbl. The input data frame with the output column modified.

Examples

# Example data
dat <- tibble::tibble(
  a = c(1, NA, 3),
  b = c(NA, NA, 2),
  c = c(1, 2, 3),
  out = c(10, 11, 12)
)

# Assign NA to out when all of a and b are NA
check_assign_na(
  dat,
  output = "out", input = c("a", "b"), allow_missingness = TRUE
)

# Assign NA to out when any of a and b are NA
check_assign_na(
  dat,
  output = "out", input = c("a", "b"), allow_missingness = FALSE
)

Combine checkbox variables into a single list column

Description

Takes a group of checkbox-style variables, have a common prefix and numeric suffixes representing options, and combines them into a single list column where each element is a vector of selected options (numbers).

This function expects the input data to include participant_id and session_id columns, which are used to group responses. For each participant and session, it collects all checkbox numbers that were selected as a single list. The resulting column can be renamed via the name parameter.

Usage

combine_checkboxes(data, var_basename, var_sep = "___", name = NULL)

Arguments

data

tbl. Data frame containing the participant responses.

var_basename

character of length 1. The base name of the checkbox field.

var_sep

character of length 1. The string separating the base name of the checkbox and the checkbox value. Default is "___". In the default scenario, all checkbox columns to be collapsed are expected in the format, ⁠{ var_basename }___{ value }⁠, where three underscores separate the checkbox basename and the checkbox value.

name

character of length 1 or NULL. Optional. The name of the output column that will store the combined checkbox selections. If NULL, the value of var_basename is used as the output column name.

Value

tbl. The input data frame with an additional column containing a list of integers corresponding to the selected checkbox options for each participant and session.

Examples

# Example data
dat <- tibble::tibble(
  participant_id = c(1, 1, 2),
  session_id = c(1, 2, 1),
  q1___1 = c(1, NA, 0),
  q1___2 = c(0, 1, 1),
  q1___3 = c(NA, NA, 0)
)

# Combine q1 checkboxes into a single list column
combine_checkboxes(dat, var_basename = "q1")

# Combine and rename the output column
combine_checkboxes(dat, var_basename = "q1", name = "q1_combined")

Combine columns

Description

Combines two columns into one. The name of the first column is used for the new column, the second column is removed. Used for cases where different versions of the same variable exist that have to be combined before computing a summary score.

Usage

combine_cols(data, col_1, col_2, name = NULL, keep_other = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

col_1

character. The name of the first variable/column.

col_2

character. The name of the second variable/column.

name

character. The name of the field with the combined data. By default, name = NULL, the combined data field is named the same as col_1.

keep_other

logical. Whether to combine the combined column with the input data frame (Default: TRUE).

Value

tbl. The input data frame with the combined column and the second column removed. The name of the combined column is the same as col_1, or user-specified in the name argument.

Examples

data <- tibble::tibble(
  var_id = c("A", "B", "C"),
  var_orig = c(1, NA, 3),
  var_alt = c(NA, 2, 4)
)

data |>
  combine_cols(
    col_1 = "var_orig",
    col_2 = "var_alt"
  )

data |>
  combine_cols(
    "var_orig",
    "var_alt",
    name = "out"
  )

data |>
  combine_cols(
    "var_orig",
    "var_alt",
    name = "out",
    keep_other = FALSE
  )

Combine levels from two variables to create a new variable

Description

Combines levels from two columns into new level stored into a new column. Allows users to create new classifications using levels defined in existing fields.

Usage

combine_levels(data, vars, conds, default = NA, combine = TRUE)

Arguments

data

tbl. Data frame containing the two columns to be summarized.

vars

named list of length 1. The name of the list component will be used as the name for the newly created variable/column, and the character elements specifies the two existing fields from which the levels will be combined.

conds

named list. The name of the each of the list element will be used as the label for the new level created, and the two character vectors represent the levels in the first and second variables, respectively, that will be combined to create the new level.

default

character (or NA). One of the two input variables specified in vars that will be used to set the levels of the new column after all the combinations in conds are exhausted. If default = NA, the remaining conditions conds have been exhausted will be set to NA.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Value

tbl. The input data frame with the new column with combined levels appended at the end.

Examples

data <- tibble::tibble(
  var_1 = c("a", "b", "b", "c"),
  var_2 = c(1, NA, 2, 3)
)

data |>
  combine_levels(
    vars = list(
      "var_3" = c("var_1", "var_2")
    ),
    conds = list(
      "a1" = list("a", 1),
      "b0" = list("b", NA),
      "b2" = list("b", 2)
    ),
    default = "var_1",
    combine = TRUE
  )

Compute "Cohort description: Household income - 3 levels"

Description

Computes the summary score ab_g_dyn__cohort_income__hhold__3lvl Cohort description: Household income - 3 levels

  • Summarized variables:

    • ab_p_demo__income__hhold_001

    • ab_p_demo__income__hhold_001__v01

Usage

compute_ab_g_dyn__cohort_income__hhold__3lvl(
  data,
  name = "ab_g_dyn__cohort_income__hhold__3lvl",
  combine = TRUE
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Value

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

See Also

compute_ab_g_dyn__cohort_income__hhold__6lvl()


Compute all the ab_g_dyn scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_ab_g_dyn_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ab_g_dyn_all(data)

## End(Not run)

Compute all the ab_g_stc scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_ab_g_stc_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ab_g_stc_all(data)

## End(Not run)

Compute all the ab_p_demo__ntvam scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_ab_p_demo__ntvam_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute time interval between two dates

Description

Calculate the time difference between two dates in specified units (years, months, or days). Uses lubridate intervals for accurate calculations across calendar irregularities.

Usage

compute_age(date_start, date_end, unit = c("years", "months", "days"))

Arguments

date_start

Starting date. Must be a date or datetime object compatible with lubridate.

date_end

Ending date. Must be a date or datetime object compatible with lubridate.

unit

Character string specifying the unit for the result. Must be one of "years", "months", or "days". Defaults to "years".

Value

A numeric value representing the time difference in the specified unit.

Examples

# Calculate age in years
compute_age(as.Date("1990-01-01"), as.Date("2024-01-01"))

# Calculate age in months
compute_age(as.Date("2023-01-01"), as.Date("2024-01-01"), unit = "months")

# Calculate age in days
compute_age(as.Date("2023-12-01"), as.Date("2024-01-01"), unit = "days")

Compute Family History [Parent] Endorsement indicator

Description

Computes a binary endorsement indicator, for alcohol or drug use computed using a set of variables. Resulting indicator is either 0 (FALSE) or 1 (TRUE), and NA for missing or non-responses (777, 888, or 999).

  • Notes:

    • Following values are recoded as NA prior to any computation

      • 777

      • 888

      • 999

Usage

compute_famhx_endorsement(data, name, var_matches, combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the summary score.

var_matches

character of length one. The base name of the checkbox field that is used to find all corresponding columns in data that contain the responses of a participant for the check box. This parameter is passed onto combine_checkboxes function.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Value

A tibble with the computed score for each participant/event.

Examples

## Not run: 
compute_famhx_endorsement(
  data = data,
  name = "mh_p_famhx__alc__fath_indicator",
  var_matches = "mh_p_famhx__alc__fath_001"
)

## End(Not run)

Compute "Family Environment Scale [Parent] (Cohesion): Number missing"

Description

Computes the summary score fc_p_fes__cohes_nm (Family Environment Scale [Parent] (Cohesion): Number missing)

  • Summarized variables:

    • fc_p_fes__cohes_001

    • fc_p_fes__cohes_002

    • fc_p_fes__cohes_003

    • fc_p_fes__cohes_004

    • fc_p_fes__cohes_005

    • fc_p_fes__cohes_006

    • fc_p_fes__cohes_007

    • fc_p_fes__cohes_008

    • fc_p_fes__cohes_009

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_fes__cohes_nm(
  data,
  name = "fc_p_fes__cohes_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_fes__cohes_mean()


Compute "Family Environment Scale [Parent] (Conflict): Number missing"

Description

Computes the summary score fc_p_fes__confl_nm (Family Environment Scale [Parent] (Conflict): Number missing)

  • Summarized variables:

    • fc_p_fes__confl_001

    • fc_p_fes__confl_002

    • fc_p_fes__confl_003

    • fc_p_fes__confl_004

    • fc_p_fes__confl_005

    • fc_p_fes__confl_006

    • fc_p_fes__confl_007

    • fc_p_fes__confl_008

    • fc_p_fes__confl_009

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_fes__confl_nm(
  data,
  name = "fc_p_fes__confl_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_fes__confl_mean()


Compute "Family Environment Scale [Parent] (Expression): Number missing"

Description

Computes the summary score fc_p_fes__expr_nm (Family Environment Scale [Parent] (Expression): Number missing)

  • Summarized variables:

    • fc_p_fes__expr_001

    • fc_p_fes__expr_002

    • fc_p_fes__expr_003

    • fc_p_fes__expr_004

    • fc_p_fes__expr_005

    • fc_p_fes__expr_006

    • fc_p_fes__expr_007

    • fc_p_fes__expr_008

    • fc_p_fes__expr_009

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_fes__expr_nm(
  data,
  name = "fc_p_fes__expr_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_fes__expr_mean()


Compute "Family Environment Scale [Parent] (Intellectual and cultural): Number missing"

Description

Computes the summary score fc_p_fes__intelcult_nm (Family Environment Scale [Parent] (Intellectual and cultural): Number missing)

  • Summarized variables:

    • fc_p_fes__intelcult_001

    • fc_p_fes__intelcult_002

    • fc_p_fes__intelcult_003

    • fc_p_fes__intelcult_004

    • fc_p_fes__intelcult_005

    • fc_p_fes__intelcult_006

    • fc_p_fes__intelcult_007

    • fc_p_fes__intelcult_008

    • fc_p_fes__intelcult_009

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_fes__intelcult_nm(
  data,
  name = "fc_p_fes__intelcult_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_fes__intelcult_mean()


Compute "Family Environment Scale [Parent] (Organization): Number missing"

Description

Computes the summary score fc_p_fes__org_nm (Family Environment Scale [Parent] (Organization): Number missing)

  • Summarized variables:

    • fc_p_fes__org_001

    • fc_p_fes__org_002

    • fc_p_fes__org_003

    • fc_p_fes__org_004

    • fc_p_fes__org_005

    • fc_p_fes__org_006

    • fc_p_fes__org_007

    • fc_p_fes__org_008

    • fc_p_fes__org_009

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_fes__org_nm(
  data,
  name = "fc_p_fes__org_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_fes__org_mean()


Compute "Family Environment Scale [Parent] (Activity and recreational): Number missing"

Description

Computes the summary score fc_p_fes__rec_nm (Family Environment Scale [Parent] (Activity and recreational): Number missing)

  • Summarized variables:

    • fc_p_fes__rec_001

    • fc_p_fes__rec_002

    • fc_p_fes__rec_003

    • fc_p_fes__rec_004

    • fc_p_fes__rec_005

    • fc_p_fes__rec_006

    • fc_p_fes__rec_007

    • fc_p_fes__rec_008

    • fc_p_fes__rec_009

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_fes__rec_nm(
  data,
  name = "fc_p_fes__rec_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_fes__rec_mean()


Compute all the fc_p_fes summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_p_fes_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_p_fes_all(data)

## End(Not run)

Compute "The Multigroup Ethnic Identity Measure-Revised [Parent] (Commitment and attachment): Number missing"

Description

Computes the summary score fc_p_meim__commattach_nm (The Multigroup Ethnic Identity Measure-Revised [Parent] (Commitment and attachment): Number missing)

  • Summarized variables:

    • fc_p_meim__commattach_001

    • fc_p_meim__commattach_002

    • fc_p_meim__commattach_003

  • Excluded values: none

Usage

compute_fc_p_meim__commattach_nm(
  data,
  name = "fc_p_meim__commattach_nm",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_meim__commattach_mean()


Compute "The Multigroup Ethnic Identity Measure-Revised [Parent] (Exploration): Number missing"

Description

Computes the summary score fc_p_meim__explor_nm (The Multigroup Ethnic Identity Measure-Revised [Parent] (Exploration): Number missing)

  • Summarized variables:

    • fc_p_meim__explor_001

    • fc_p_meim__explor_002

    • fc_p_meim__explor_003

  • Excluded values: none

Usage

compute_fc_p_meim__explor_nm(
  data,
  name = "fc_p_meim__explor_nm",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_meim__explor_mean()


Compute all the fc_p_meim summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_p_meim_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_p_meim_all(data)

## End(Not run)

Compute "The Multigroup Ethnic Identity Measure-Revised [Parent]: Number missing"

Description

Computes the summary score fc_p_meim_nm (The Multigroup Ethnic Identity Measure-Revised [Parent]: Number missing)

  • Summarized variables:

    • fc_p_meim__commattach_001

    • fc_p_meim__commattach_002

    • fc_p_meim__commattach_003

    • fc_p_meim__explor_001

    • fc_p_meim__explor_002

    • fc_p_meim__explor_003

  • Excluded values: none

Usage

compute_fc_p_meim_nm(data, name = "fc_p_meim_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_meim_mean()


Compute "Neighborhood Collective Efficacy [Parent] (Community cohesion): Number missing"

Description

Computes the summary score fc_p_nce__cc_nm (Neighborhood Collective Efficacy [Parent] (Community cohesion): Number missing)

  • Summarized variables:

    • fc_p_nce__cc_001

    • fc_p_nce__cc_002

    • fc_p_nce__cc_003

    • fc_p_nce__cc_004

    • fc_p_nce__cc_005

  • Excluded values:

    • 777

Usage

compute_fc_p_nce__cc_nm(data, name = "fc_p_nce__cc_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_nce__cc_mean()


Compute "Neighborhood Collective Efficacy [Parent] (Informal social control): Number missing"

Description

Computes the summary score fc_p_nce__isc_nm (Neighborhood Collective Efficacy [Parent] (Informal social control): Number missing)

  • Summarized variables:

    • fc_p_nce__isc_001

    • fc_p_nce__isc_002

    • fc_p_nce__isc_003

    • fc_p_nce__isc_004

    • fc_p_nce__isc_005

  • Excluded values:

    • 777

Usage

compute_fc_p_nce__isc_nm(data, name = "fc_p_nce__isc_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_nce__isc_mean()


Compute all the fc_p_nce summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_p_nce_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_p_nce_all(data)

## End(Not run)

Compute "Neighborhood Collective Efficacy [Parent]: Number missing"

Description

Computes the summary score fc_p_nce_nm (Neighborhood Collective Efficacy [Parent]: Number missing)

  • Summarized variables:

    • fc_p_nce__cc_001

    • fc_p_nce__cc_002

    • fc_p_nce__cc_003

    • fc_p_nce__cc_004

    • fc_p_nce__cc_005

    • fc_p_nce__isc_001

    • fc_p_nce__isc_002

    • fc_p_nce__isc_003

    • fc_p_nce__isc_004

    • fc_p_nce__isc_005

  • Excluded values:

    • 777

Usage

compute_fc_p_nce_nm(data, name = "fc_p_nce_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_nce_mean()


Compute "Neighborhood Safety & Crime [Parent] (Neighborhood safety): Number missing"

Description

Computes the summary score fc_p_nsc__ns_nm (Neighborhood Safety & Crime [Parent] (Neighborhood safety): Number missing)

  • Summarized variables:

    • fc_p_nsc__ns_001

    • fc_p_nsc__ns_002

    • fc_p_nsc__ns_003

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_nsc__ns_nm(data, name = "fc_p_nsc__ns_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_nsc__ns_mean()


Compute all the fc_p_nsc summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_p_nsc_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_p_nsc_all(data)

## End(Not run)

Compute "Parental Knowledge Scale [Parent]: Number missing"

Description

Computes the summary score fc_p_pk__knowl_nm (Parental Knowledge Scale [Parent]: Number missing)

  • Summarized variables:

    • fc_p_pk__knowl_001

    • fc_p_pk__knowl_002

    • fc_p_pk__knowl_003

    • fc_p_pk__knowl_004

    • fc_p_pk__knowl_005

    • fc_p_pk__knowl_006

    • fc_p_pk__knowl_007

    • fc_p_pk__knowl_008

    • fc_p_pk__knowl_009

  • Excluded values:

    • 777

Usage

compute_fc_p_pk__knowl_nm(data, name = "fc_p_pk__knowl_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_pk__knowl_mean()


Compute all the fc_p_pk summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_p_pk_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_p_pk_all(data)

## End(Not run)

Compute all the fc_p_psb summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_p_psb_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_p_psb_all(data)

## End(Not run)

Compute "Prosocial Behavior [Parent]: Number missing"

Description

Computes the summary score fc_p_psb_nm (Prosocial Behavior [Parent]: Number missing)

  • Summarized variables:

    • fc_p_psb_001

    • fc_p_psb_002

    • fc_p_psb_003

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_psb_nm(
  data,
  name = "fc_p_psb_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_psb_mean()


Compute "Values Scale [Parent] (Familism): Number missing - Baseline to Year 5"

Description

Computes the summary score fc_p_vs__famil_nm__v01 (Values Scale [Parent] (Familism): Number missing (Subscales: supp, ref, obl))

  • Summarized variables:

    • fc_p_vs__supp_001

    • fc_p_vs__supp_002

    • fc_p_vs__supp_003

    • fc_p_vs__supp_004

    • fc_p_vs__supp_005

    • fc_p_vs__supp_006

    • fc_p_vs__ref_001

    • fc_p_vs__ref_002

    • fc_p_vs__ref_003

    • fc_p_vs__ref_004

    • fc_p_vs__ref_005

    • fc_p_vs__obl_001

    • fc_p_vs__obl_002

    • fc_p_vs__obl_003

    • fc_p_vs__obl_004

    • fc_p_vs__obl_005

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_vs__famil_nm(
  data,
  name = "fc_p_vs__famil_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_vs__famil_mean()


Compute "Values Scale [Parent] (Familism): Number missing - Version 1 (Year 5 onwards)"

Description

Computes the summary score fc_p_vs__famil_nm__v01 (Values Scale [Parent] (Familism): Number missing - Version 1 (Year 5 onwards))

  • Summarized variables:

    • fc_p_vs__supp_001

    • fc_p_vs__supp_002

    • fc_p_vs__supp_003

    • fc_p_vs__supp_004

    • fc_p_vs__supp_005

    • fc_p_vs__supp_006

    • fc_p_vs__ref_001

    • fc_p_vs__ref_002

    • fc_p_vs__ref_003

    • fc_p_vs__ref_004

    • fc_p_vs__ref_005

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_vs__famil_nm__v01(
  data,
  name = "fc_p_vs__famil_nm__v01",
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_vs__famil_mean__v01()


Compute "Values Scale [Parent] (Independence and self-reliance): Number missing"

Description

Computes the summary score fc_p_vs__indselfrel_nm (Values Scale [Parent] (Independence and self-reliance): Number missing)

  • Summarized variables:

    • fc_p_vs__indselfrel_001

    • fc_p_vs__indselfrel_002

    • fc_p_vs__indselfrel_003

    • fc_p_vs__indselfrel_004

    • fc_p_vs__indselfrel_005

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_vs__indselfrel_nm(
  data,
  name = "fc_p_vs__indselfrel_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_vs__indselfrel_mean()


Compute "Values Scale [Parent] (Family obligation): Number missing"

Description

Computes the summary score fc_p_vs__obl_nm (Values Scale [Parent] (Family obligation): Number missing)

  • Summarized variables:

    • fc_p_vs__obl_001

    • fc_p_vs__obl_002

    • fc_p_vs__obl_003

    • fc_p_vs__obl_004

    • fc_p_vs__obl_005

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_vs__obl_nm(
  data,
  name = "fc_p_vs__obl_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_vs__obl_mean()


Compute "Values Scale [Parent] (Family as referent): Number missing"

Description

Computes the summary score fc_p_vs__ref_nm (Values Scale [Parent] (Family as referent): Number missing)

  • Summarized variables:

    • fc_p_vs__ref_001

    • fc_p_vs__ref_002

    • fc_p_vs__ref_003

    • fc_p_vs__ref_004

    • fc_p_vs__ref_005

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_vs__ref_nm(
  data,
  name = "fc_p_vs__ref_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_vs__ref_mean()


Compute "Values Scale [Parent] (Religion): Number missing"

Description

Computes the summary score fc_p_vs__relig_nm (Values Scale [Parent] (Religion): Number missing)

  • Summarized variables:

    • fc_p_vs__relig_001

    • fc_p_vs__relig_002

    • fc_p_vs__relig_003

    • fc_p_vs__relig_004

    • fc_p_vs__relig_005

    • fc_p_vs__relig_006

    • fc_p_vs__relig_007

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_vs__relig_nm(
  data,
  name = "fc_p_vs__relig_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_vs__relig_mean()


Compute "Values Scale [Parent] (Family support): Number missing"

Description

Computes the summary score fc_p_vs__supp_nm (Values Scale [Parent] (Family support): Number missing)

  • Summarized variables:

    • fc_p_vs__supp_001

    • fc_p_vs__supp_002

    • fc_p_vs__supp_003

    • fc_p_vs__supp_004

    • fc_p_vs__supp_005

    • fc_p_vs__supp_006

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_p_vs__supp_nm(
  data,
  name = "fc_p_vs__supp_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. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_p_vs__supp_mean()


Compute all the fc_p_vs summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_p_vs_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_p_vs_all(data)

## End(Not run)

Compute "Activity Space [Youth] (Safety): Number missing"

Description

Computes the summary score fc_y_as__safe_nm (Activity Space [Youth] (Safety): Number missing)

  • Summarized variables:

    • fc_y_as__safe_001a

    • fc_y_as__safe_001b

    • fc_y_as__safe_001c

  • Excluded values: none

Usage

compute_fc_y_as__safe_nm(data, name = "fc_y_as__safe_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_as__safe_mean()


Compute all the fc_y_as summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_as_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_as_all(data)

## End(Not run)

Compute "Children's Report of Parental Behavioral Inventory [Youth] (Caregiver A): Number missing"

Description

Computes the summary score fc_y_crpbi__cg1_nm (Children's Report of Parental Behavioral Inventory [Youth] (Caregiver A): Number missing)

  • Summarized variables:

    • fc_y_crpbi__cg1_002

    • fc_y_crpbi__cg1_003

    • fc_y_crpbi__cg1_004

    • fc_y_crpbi__cg1_005

    • fc_y_crpbi__cg1_006

  • Excluded values: none

Usage

compute_fc_y_crpbi__cg1_nm(data, name = "fc_y_crpbi__cg1_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_crpbi__cg1_mean()


Compute "Children's Report of Parental Behavioral Inventory [Youth] (Caregiver B): Number missing"

Description

Computes the summary score fc_y_crpbi__cg2_nm (Children's Report of Parental Behavioral Inventory [Youth] (Caregiver B): Number missing)

  • Summarized variables:

    • fc_y_crpbi__cg2_002

    • fc_y_crpbi__cg2_003

    • fc_y_crpbi__cg2_004

    • fc_y_crpbi__cg2_005

    • fc_y_crpbi__cg2_006

  • Excluded values: none

Usage

compute_fc_y_crpbi__cg2_nm(data, name = "fc_y_crpbi__cg2_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_crpbi__cg2_mean()


Compute all the fc_y_crpbi summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_crpbi_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_crpbi_all(data)

## End(Not run)

Compute "Experiences with Unfair Treatment [Youth] (Ethnicity): Number missing"

Description

Computes the summary score fc_y_eut__ethn_nm (Experiences with Unfair Treatment [Youth] (Ethnicity): Number missing)

  • Summarized variables:

    • fc_y_eut__ethn_001a

    • fc_y_eut__ethn_001b

    • fc_y_eut__ethn_001c

    • fc_y_eut__ethn_001d

    • fc_y_eut__ethn_002

    • fc_y_eut__ethn_003a

    • fc_y_eut__ethn_003b

    • fc_y_eut__ethn_003c

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_fc_y_eut__ethn_nm(data, name = "fc_y_eut__ethn_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_eut__ethn_mean()


Compute all the fc_y_eut summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_eut_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_eut_all(data)

## End(Not run)

Compute "Family Environment Scale [Youth] (Cohesion): Number missing"

Description

Computes the summary score fc_y_fes__cohes_nm (Family Environment Scale [Youth] (Cohesion): Number missing)

  • Summarized variables:

    • fc_y_fes__cohes_001

    • fc_y_fes__cohes_002

    • fc_y_fes__cohes_003

    • fc_y_fes__cohes_004

    • fc_y_fes__cohes_005

    • fc_y_fes__cohes_006

    • fc_y_fes__cohes_007

    • fc_y_fes__cohes_008

    • fc_y_fes__cohes_009

  • Excluded values:

    • 777

Usage

compute_fc_y_fes__cohes_nm(
  data,
  name = "fc_y_fes__cohes_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_fes__cohes_mean()


Compute "Family Environment Scale [Youth] (Conflict): Number missing"

Description

Computes the summary score fc_y_fes__confl_nm (Family Environment Scale [Youth] (Conflict): Number missing)

  • Summarized variables:

    • fc_y_fes__confl_001

    • fc_y_fes__confl_002

    • fc_y_fes__confl_003

    • fc_y_fes__confl_004

    • fc_y_fes__confl_005

    • fc_y_fes__confl_006

    • fc_y_fes__confl_007

    • fc_y_fes__confl_008

    • fc_y_fes__confl_009

  • Excluded values:

    • 777

Usage

compute_fc_y_fes__confl_nm(
  data,
  name = "fc_y_fes__confl_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_fes__confl_mean()


Compute all the fc_y_fes summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_fes_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_fes_all(data)

## End(Not run)

Compute all the fc_y_lone summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_lone_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_lone_all(data)

## End(Not run)

Compute "UCLA Loneliness Scale [Youth]: Number missing"

Description

Computes the summary score fc_y_lone_nm (UCLA Loneliness Scale [Youth]: Number missing)

  • Summarized variables:

    • fc_y_lone_001

    • fc_y_lone_002

    • fc_y_lone_003

    • fc_y_lone_004

    • fc_y_lone_005

    • fc_y_lone_006

    • fc_y_lone_007

  • Excluded values:

    • 777

    • 999

Usage

compute_fc_y_lone_nm(data, name = "fc_y_lone_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_lone_mean()


Compute "The Multigroup Ethnic Identity Measure-Revised [Youth] (Commitment and attachment): Number missing"

Description

Computes the summary score fc_y_meim__commattach_nm (The Multigroup Ethnic Identity Measure-Revised [Youth] (Commitment and attachment): Number missing)

  • Summarized variables:

    • fc_y_meim__commattach_001

    • fc_y_meim__commattach_002

    • fc_y_meim__commattach_003

  • Excluded values: none

Usage

compute_fc_y_meim__commattach_nm(
  data,
  name = "fc_y_meim__commattach_nm",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_meim__commattach_mean()


Compute "The Multigroup Ethnic Identity Measure-Revised [Youth] (Exploration): Number missing"

Description

Computes the summary score fc_y_meim__explor_nm (The Multigroup Ethnic Identity Measure-Revised [Youth] (Exploration): Number missing)

  • Summarized variables:

    • fc_y_meim__explor_001

    • fc_y_meim__explor_002

    • fc_y_meim__explor_003

  • Excluded values: none

Usage

compute_fc_y_meim__explor_nm(
  data,
  name = "fc_y_meim__explor_nm",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_meim__explor_mean()


Compute all the fc_y_meim summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_meim_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_meim_all(data)

## End(Not run)

Compute "The Multigroup Ethnic Identity Measure-Revised [Youth]: Number missing"

Description

Computes the summary score fc_y_meim_nm (The Multigroup Ethnic Identity Measure-Revised [Youth]: Number missing)

  • Summarized variables:

    • fc_y_meim__commattach_001

    • fc_y_meim__commattach_002

    • fc_y_meim__commattach_003

    • fc_y_meim__explor_001

    • fc_y_meim__explor_002

    • fc_y_meim__explor_003

  • Excluded values: none

Usage

compute_fc_y_meim_nm(data, name = "fc_y_meim_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_meim_mean()


Compute "Multidimensional Neglectful Behavior Scale [Youth] (Education support): Number missing"

Description

Computes the summary score fc_y_mnbs__edusupp_nm (Multidimensional Neglectful Behavior Scale [Youth] (Education support): Number missing)

  • Summarized variables:

    • fc_y_mnbs__edusupp_001

    • fc_y_mnbs__edusupp_002

    • fc_y_mnbs__edusupp_003

  • Excluded values:

    • 777

Usage

compute_fc_y_mnbs__edusupp_nm(
  data,
  name = "fc_y_mnbs__edusupp_nm",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_mnbs__edusupp_mean()


Compute "Multidimensional Neglectful Behavior Scale [Youth] (Supervision): Number missing"

Description

Computes the summary score fc_y_mnbs__superv_nm (Multidimensional Neglectful Behavior Scale [Youth] (Supervision): Number missing)

  • Summarized variables:

    • fc_y_mnbs__superv_001

    • fc_y_mnbs__superv_002

    • fc_y_mnbs__superv_003

    • fc_y_mnbs__superv_004

    • fc_y_mnbs__superv_005

  • Excluded values:

    • 777

Usage

compute_fc_y_mnbs__superv_nm(
  data,
  name = "fc_y_mnbs__superv_nm",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_mnbs__superv_mean()


Compute all the fc_y_mnbs summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_mnbs_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_mnbs_all(data)

## End(Not run)

Compute "Multidimensional Neglectful Behavior Scale [Youth]: Number missing"

Description

Computes the summary score fc_y_mnbs_nm (Multidimensional Neglectful Behavior Scale [Youth]: Number missing)

  • Summarized variables:

    • fc_y_mnbs__edusupp_001

    • fc_y_mnbs__edusupp_002

    • fc_y_mnbs__edusupp_003

    • fc_y_mnbs__superv_001

    • fc_y_mnbs__superv_002

    • fc_y_mnbs__superv_003

    • fc_y_mnbs__superv_004

    • fc_y_mnbs__superv_005

  • Excluded values:

    • 777

Usage

compute_fc_y_mnbs_nm(data, name = "fc_y_mnbs_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_mnbs_mean()


Compute all the fc_y_naa scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_fc_y_naa_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all the fc_y_pm summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_pm_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_pm_all(data)

## End(Not run)

Compute "Parental Monitoring [Youth]: Number missing"

Description

Computes the summary score fc_y_pm_nm (Parental Monitoring [Youth]: Number missing)

  • Summarized variables:

    • fc_y_pm_001

    • fc_y_pm_002

    • fc_y_pm_003

    • fc_y_pm_004

    • fc_y_pm_005

  • Excluded values:

    • 777

Usage

compute_fc_y_pm_nm(data, name = "fc_y_pm_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_pm_mean()


Compute all the fc_y_pnh summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_pnh_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_pnh_all(data)

## End(Not run)

Compute "Peer Network Health [Youth]: Number missing"

Description

Computes the summary score fc_y_pnh_nm (Peer Network Health [Youth]: Number missing)

  • Summarized variables:

    • fc_y_pnh_001

    • fc_y_pnh_002

    • fc_y_pnh_002__01

    • fc_y_pnh_003

    • fc_y_pnh_003__01

  • Excluded values:

    • 777

Usage

compute_fc_y_pnh_nm(
  data,
  name = "fc_y_pnh_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_pnh_sum()


Compute all the fc_y_psb summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_psb_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_psb_all(data)

## End(Not run)

Compute "Prosocial Behavior [Youth]: Number missing"

Description

Computes the summary score fc_y_psb_nm (Prosocial Behavior [Youth]: Number missing)

  • Summarized variables:

    • fc_y_psb_001

    • fc_y_psb_002

    • fc_y_psb_003

  • Excluded values:

    • 777

Usage

compute_fc_y_psb_nm(
  data,
  name = "fc_y_psb_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_psb_mean()


Compute all the fc_y_rpi summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_rpi_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_rpi_all(data)

## End(Not run)

Compute "Resistance to Peer Influence [Youth]: Number missing"

Description

Computes the summary score fc_y_rpi_nm (Resistance to Peer Influence [Youth]: Number missing)

  • Summarized variables:

    • fc_y_rpi_001

    • fc_y_rpi_002

    • fc_y_rpi_003

    • fc_y_rpi_004

    • fc_y_rpi_005

    • fc_y_rpi_006

    • fc_y_rpi_007

    • fc_y_rpi_008

    • fc_y_rpi_009

    • fc_y_rpi_010

  • Excluded values: none

Usage

compute_fc_y_rpi_nm(data, name = "fc_y_rpi_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_rpi_mean()


Compute "School Risk & Protective Factors [Youth] (School disengagement): Number missing"

Description

Computes the summary score fc_y_srpf__dis_nm (School Risk & Protective Factors [Youth] (School disengagement): Number missing)

  • Summarized variables:

    • fc_y_srpf__dis_001

    • fc_y_srpf__dis_002

  • Excluded values:

    • 777

Usage

compute_fc_y_srpf__dis_nm(
  data,
  name = "fc_y_srpf__dis_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_srpf__dis_mean()


Compute "School Risk & Protective Factors [Youth] (School environment): Number missing"

Description

Computes the summary score fc_y_srpf__env_nm (School Risk & Protective Factors [Youth] (School environment): Number missing)

  • Summarized variables:

    • fc_y_srpf__env_001

    • fc_y_srpf__env_002

    • fc_y_srpf__env_003

    • fc_y_srpf__env_004

    • fc_y_srpf__env_005

    • fc_y_srpf__env_006

  • Excluded values:

    • 777

Usage

compute_fc_y_srpf__env_nm(
  data,
  name = "fc_y_srpf__env_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_srpf__env_mean()


Compute "School Risk & Protective Factors [Youth] (School involvement): Number missing"

Description

Computes the summary score fc_y_srpf__involv_nm (School Risk & Protective Factors [Youth] (School involvement): Number missing)

  • Summarized variables:

    • fc_y_srpf__involv_001

    • fc_y_srpf__involv_002

    • fc_y_srpf__involv_003

    • fc_y_srpf__involv_004

  • Excluded values:

    • 777

Usage

compute_fc_y_srpf__involv_nm(
  data,
  name = "fc_y_srpf__involv_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_srpf__involv_mean()


Compute all the fc_y_srpf summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_srpf_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_srpf_all(data)

## End(Not run)

Compute "Values Scale [Youth] (Familism): Number missing - Baseline to Year 5"

Description

Computes the summary score fc_y_vs__famil_nm__v01 (Values Scale [Youth] (Familism): Number missing (Subscales: supp, ref, obl))

  • Summarized variables:

    • fc_y_vs__supp_001

    • fc_y_vs__supp_002

    • fc_y_vs__supp_003

    • fc_y_vs__supp_004

    • fc_y_vs__supp_005

    • fc_y_vs__supp_006

    • fc_y_vs__ref_001

    • fc_y_vs__ref_002

    • fc_y_vs__ref_003

    • fc_y_vs__ref_004

    • fc_y_vs__ref_005

    • fc_y_vs__obl_001

    • fc_y_vs__obl_002

    • fc_y_vs__obl_003

    • fc_y_vs__obl_004

    • fc_y_vs__obl_005

  • Excluded values:

    • 777

Usage

compute_fc_y_vs__famil_nm(
  data,
  name = "fc_y_vs__famil_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_vs__famil_mean()


Compute "Values Scale [Youth] (Familism): Number missing - Version 1 (Year 5 onwards)"

Description

Computes the summary score fc_y_vs__famil_nm__v01 (Values Scale [Youth] (Familism): Number missing - Version 1 (Year 5 onwards))

  • Summarized variables:

    • fc_y_vs__supp_001

    • fc_y_vs__supp_002

    • fc_y_vs__supp_003

    • fc_y_vs__supp_004

    • fc_y_vs__supp_005

    • fc_y_vs__supp_006

    • fc_y_vs__ref_001

    • fc_y_vs__ref_002

    • fc_y_vs__ref_003

    • fc_y_vs__ref_004

    • fc_y_vs__ref_005

  • Excluded values:

    • 777

Usage

compute_fc_y_vs__famil_nm__v01(
  data,
  name = "fc_y_vs__famil_nm__v01",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_vs__famil_mean__v01()


Compute "Values Scale [Youth] (Independence and self-reliance): Number missing"

Description

Computes the summary score fc_y_vs__indselfrel_nm (Values Scale [Youth] (Independence and self-reliance): Number missing)

  • Summarized variables:

    • fc_y_vs__indselfrel_001

    • fc_y_vs__indselfrel_002

    • fc_y_vs__indselfrel_003

    • fc_y_vs__indselfrel_004

    • fc_y_vs__indselfrel_005

  • Excluded values:

    • 777

Usage

compute_fc_y_vs__indselfrel_nm(
  data,
  name = "fc_y_vs__indselfrel_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_vs__indselfrel_mean()


Compute "Values Scale [Youth] (Family obligation): Number missing"

Description

Computes the summary score fc_y_vs__obl_nm (Values Scale [Youth] (Family obligation): Number missing)

  • Summarized variables:

    • fc_y_vs__obl_001

    • fc_y_vs__obl_002

    • fc_y_vs__obl_003

    • fc_y_vs__obl_004

    • fc_y_vs__obl_005

  • Excluded values:

    • 777

Usage

compute_fc_y_vs__obl_nm(
  data,
  name = "fc_y_vs__obl_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_vs__obl_mean()


Compute "Values Scale [Youth] (Family as referent): Number missing"

Description

Computes the summary score fc_y_vs__ref_nm (Values Scale [Youth] (Family as referent): Number missing)

  • Summarized variables:

    • fc_y_vs__ref_001

    • fc_y_vs__ref_002

    • fc_y_vs__ref_003

    • fc_y_vs__ref_004

    • fc_y_vs__ref_005

  • Excluded values:

    • 777

Usage

compute_fc_y_vs__ref_nm(
  data,
  name = "fc_y_vs__ref_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_vs__ref_mean()


Compute "Values Scale [Youth] (Religion): Number missing"

Description

Computes the summary score fc_y_vs__relig_nm (Values Scale [Youth] (Religion): Number missing)

  • Summarized variables:

    • fc_y_vs__relig_001

    • fc_y_vs__relig_002

    • fc_y_vs__relig_003

    • fc_y_vs__relig_004

    • fc_y_vs__relig_005

    • fc_y_vs__relig_006

    • fc_y_vs__relig_007

  • Excluded values:

    • 777

Usage

compute_fc_y_vs__relig_nm(
  data,
  name = "fc_y_vs__relig_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_vs__relig_mean()


Compute "Values Scale [Youth] (Family support): Number missing"

Description

Computes the summary score fc_y_vs__supp_nm (Values Scale [Youth] (Family support): Number missing)

  • Summarized variables:

    • fc_y_vs__supp_001

    • fc_y_vs__supp_002

    • fc_y_vs__supp_003

    • fc_y_vs__supp_004

    • fc_y_vs__supp_005

    • fc_y_vs__supp_006

  • Excluded values:

    • 777

Usage

compute_fc_y_vs__supp_nm(
  data,
  name = "fc_y_vs__supp_nm",
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_vs__supp_mean()


Compute all the fc_y_vs summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_vs_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_vs_all(data)

## End(Not run)

Compute all the fc_y_wpss summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_fc_y_wpss_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_fc_y_wpss_all(data)

## End(Not run)

Compute "Wills Problem Solving Scale [Youth]: Number missing"

Description

Computes the summary score fc_y_wpss_nm (Wills Problem Solving Scale [Youth]: Number missing)

  • Summarized variables:

    • fc_y_wpss_001

    • fc_y_wpss_002

    • fc_y_wpss_003

    • fc_y_wpss_004

    • fc_y_wpss_005

    • fc_y_wpss_006

  • Excluded values: none

Usage

compute_fc_y_wpss_nm(data, name = "fc_y_wpss_nm", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Value

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

See Also

compute_fc_y_wpss_mean()


Computes Daily Activity Summaries

Description

Pipeline wrapper that processes Fitbit minute-level activity data into a daily summary table. Applies heart rate-based exclusions and recovery identification, then aggregates minute totals, exclusion summaries, step counts, intensity scores, and sleep presence into a single day-level data frame. Optionally appends Fitbit-generated daily QC measures.

Usage

compute_fitbit_activity_table(
  data_activity,
  data_daily,
  hr_low = 50,
  hr_high = NULL,
  hr_rep_day = 10,
  hr_rep_sleep = 30,
  bin_minutes = 1440,
  append_daily_fitbit_qc,
  qc_threshold = 0.8,
  offset = "12:00",
  min_actv_minutes
)

Arguments

data_activity

tbl. Data frame with dtt (timestamp), hrate (heart rate), steps, intnst (intensity), mets and is_slp (sleep flag) variables.

data_daily

tbl. Daily-level Fitbit-generated summary data containing hrate_rest_fitb (resting heart rate) and optionally step counts (steps_fitb).

hr_low

numeric. Lower bound threshold for valid heart rate values.

hr_high

numeric or NULL. Optional upper bound threshold for valid heart rate values. If NULL, no upper threshold is applied.

hr_rep_day

numeric. Threshold (number of epochs) for identifying repeated heart rate values during wake/activity periods.

hr_rep_sleep

numeric. Threshold (number of epochs) for identifying repeated heart rate values during sleep periods.

bin_minutes

numeric. Number of minutes used to bin activity data when computing intensity scores (e.g., 1440 for daily aggregation).

append_daily_fitbit_qc

logical. If TRUE, add Fitbit-provided step count and QC measures.

qc_threshold

numeric, between 0 and 1. Minimum percentage of Fitbit step count that must be met by computed active step count for QC to pass (Default: 0.8).

offset

character. Time of day (HH:MM) cutoff.

min_actv_minutes

numeric. Minimum number of active minutes required for a day to pass quality control. Used to create a {qc_Xmin} flag column in the output.

Value

tbl. A daily-level summarized data frame with the following components:

Identifiers and time variables:

  • participant_id, session_id

  • wk: Study week index

  • day: Study day index

  • dt: Calendar date

  • dt_day: Day of week (labeled)

  • dt_wknd: Indicator for weekend days

Activity and sleep measures:

  • min_total: Total valid minutes

  • min_actv: Active (non-sleep) minutes

  • min_slp: Sleep minutes

  • min_nap_slp: Nap sleep minutes

Step count measures:

  • steps_total: Total steps after exclusions

  • steps_actv: Steps during active minutes after exclusions

  • steps: Total steps before exclusions

  • steps_fitb: Fitbit-reported daily steps

Energy expenditure and intensity-based activity measures:

  • mets: Mean METs

  • mets_actv: Mean METs during active minutes

  • ⁠min_intnst_*⁠: Minutes spent in sedentary, light, moderate, and vigorous activity (total and active-only variants)

Heart rate exclusion summaries:

  • ⁠excl_min_*⁠: Minutes excluded due to heart rate criteria (low, high, missing, repeated) for both activity and sleep domains

Heart rate and QC metrics:

  • hrate_rest_fitb: Resting heart rate (Fitbit daily summary)

  • qc_600min: Indicator for >= 600 valid active minutes

  • qc_steps: Indicator for valid step counts based on Fitbit comparison

  • pcnt_steps_fitb: Proportion of calculated steps relative to Fitbit-reported steps

Flags:

  • flg_30sec: Indicator that valid 30-second sleep data exists for the day

  • flg_any: Indicator that any valid data exists for the day


Computes extended daily activity summaries

Description

Computes all daily activity scores (extended).

Usage

compute_fitbit_activity_table_ext(
  data_activity,
  data_daily = NULL,
  hr_low = 50,
  hr_high = NULL,
  hr_rep_day = 10,
  hr_rep_sleep = 30,
  bin_minutes = 1440,
  append_daily_fitbit_qc = TRUE,
  qc_threshold = 0.8,
  offset = "12:00",
  min_actv_minutes,
  main_duration,
  gap = 90
)

Arguments

data_activity

tbl. Data frame with activity data.

data_daily

tbl. Data frame with daily Fitbit summary data.

hr_low

numeric. Lower bound threshold for valid heart rate values.

hr_high

numeric or NULL. Optional upper bound threshold.

hr_rep_day

numeric. Threshold for identifying repeated HR.

hr_rep_sleep

numeric. Threshold for identifying repeated HR.

bin_minutes

numeric. Number of minutes used to bin data.

append_daily_fitbit_qc

logical. If TRUE, add Fitbit-provided steps.

qc_threshold

numeric, between 0 and 1. Minimum percentage of Fitbit step count that must be met by computed active step count for QC to pass.

offset

character. Time of day (HH:MM) cutoff.

min_actv_minutes

numeric. Minimum number of active minutes required for a day to pass quality control. Used to create a {qc_Xmin} flag column in the output.

main_duration

numeric. Minimum duration in minutes.

gap

numeric. Maximum allowed gap.

Value

tbl. A daily-level extended activity summary.

Note

  • data_activity: fitbit_raw_activity or fitbit_covid_raw_activity

  • data_daily: fitbit_raw_metrics or fitbit_covid_raw_metrics

See Also

compute_fitbit_activity_table()


Generates weekly activity summaries

Description

Generates weekly activity summaries from daily Fitbit activity data.

This wrapper function applies a standardized weekly aggregation pipeline using compute_fitbit_weekly_summary() and the summarize_activity() function to compute weekly activity metrics at the participant-session level.

Only days passing minimum quality control thresholds (qc_600min and qc_steps) are included in the weekly aggregation.

Usage

compute_fitbit_activity_week(df, filter_expr = qc_600min & qc_steps)

Arguments

df

tbl. Daily-level Fitbit activity dataset (standard or extended), typically fitbit_ss_activity_day or fitbit_ss_ext_activity_day.

filter_expr

expression. Logical filtering condition applied to the input dataset before summarization (e.g., QC thresholds). which retains only days with at least 600 valid minutes and passing step count quality checks.

Details

This function standardizes weekly activity computation across datasets by enforcing consistent filtering, aggregation, and output structure.

Value

tbl. Weekly activity dataset containing:

  • Week identifiers (wk, wk_type)

  • Day counts (n_day, n_wkdy, n_wknd)

  • Activity summary metrics (steps, METs, intensity minutes, heart rate)

  • Weekly quality control flag (qc_wk)

Note

  • df: fitbit_ss_activity_day or fitbit_ss_ext_activity_day (daily Fitbit activity dataset with QC flags)


Compute daily sleep summaries

Description

Processes Fitbit minute-level data to generate daily sleep summary scores. This function integrates multiple processing steps, including heart rate-based exclusions and calculation of sleep measures, aggregated at the day level.

Usage

compute_fitbit_sleep_table(
  data_activity,
  data_sleep_combined,
  data_daily,
  hr_low = 50,
  hr_high = NULL,
  hr_rep_day = 10,
  hr_rep_sleep = 30,
  bin_minutes = NULL,
  offset = "12:00",
  min_slp_minutes = 300
)

Arguments

data_activity

tbl. Data frame with the following columns with minute-level epoch data with the following columns:

  • participant_id: Participant identifier

  • session_id: Session identifier

  • dtt: POSIXct epoch timestamp

  • dtt POSIXct epoch timestamp.

data_sleep_combined

tbl. Data frame with the following columns in 30-second epoch level with the following columns:

  • participant_id: Participant identifier

  • session_id: Session identifier

  • dtt: POSIXct epoch timestamp

  • stage: Sleep stage classification (e.g., "light", "deep", "rem", "awake").

  • main_slp: logical. Indicates if epoch is associated with 'main' sleep.

data_daily

tbl. Daily-level Fitbit-generated summary data containing:

  • participant_id: Participant identifier

  • session_id: Session identifier

  • dt: Calendar date

  • hrate_rest_fitb: Fitbit-reported resting heart rate in beats per minute.

hr_low

numeric. Lower bound threshold for valid heart rate values.

hr_high

numeric or NULL. Optional upper bound threshold for valid heart rate values. If NULL, no upper threshold is applied.

hr_rep_day

numeric. Threshold (number of epochs) for identifying repeated heart rate values during wake/activity periods.

hr_rep_sleep

numeric. Threshold (number of epochs) for identifying repeated heart rate values during sleep periods.

bin_minutes

numeric. Number of minutes used to bin activity data when computing intensity scores (e.g., 1440 for daily aggregation). Default is NULL. When NULL, it uses offset to split days, which by default is 12:00 (noon).

offset

character. Time of day (HH:MM) used as the cutoff for defining the sleep day. Timestamps occuring after this time are assigned to the next day.

min_slp_minutes

numeric. Minimum number of sleep minutes required for a day to pass quality control. Used to create a qc_Xmin flag column in the output.

Value

tbl. A daily-level summarized data frame with the following components:

Identifiers and time variables:

  • participant_id, session_id

  • wk: Study week index

  • day: Study day index

  • dt: Calendar date

  • dt_day: Day of week (labeled)

  • dt_wknd: Indicator for weekend days

Sleep timing measures:

  • dtt_start_bed, dtt_end_bed: Bed interval start and end times

  • dtt_start_slp, dtt_end_slp: Sleep interval start and end times

Sleep duration measures:

  • min_total_slp: Total sleep duration

  • min_asleep_slp, min_restless_slp, min_light_slp, min_deep_slp, min_rem_slp: Stage-specific sleep durations

  • min_nap_slp: Nap sleep duration

  • min_wake: Wake minutes during sleep intervals

  • min_waso: Wake after sleep onset (WASO)

  • n_waso: Number of WASO episodes

Heart rate summaries by sleep stage:

  • hrate_awake_slp, hrate_restless_slp, hrate_asleep_slp

  • hrate_light_slp, hrate_deep_slp, hrate_rem_slp

  • hrate_nap_slp: Mean heart rate during nap sleep

  • hrate_rest_fitb: Daily resting heart rate from Fitbit

Heart rate exclusion measures:

  • excl_min_total_slp: Total excluded sleep minutes

  • excl_min_lowhrate_slp: Minutes excluded due to low heart rate

  • excl_min_nohrate_slp: Minutes excluded due to missing heart rate

  • excl_min_highhrate_slp: Minutes excluded due to high heart rate

  • excl_min_repeathrate_slp: Minutes excluded due to repeated heart rate

  • min_extra_nohrate_slp: Additional plausible sleep minutes excluded

Quality control and flags:

  • qc_300min: Indicator for >= 300 minutes of valid sleep

  • flg_slp: Indicator for implausible sleep structure

  • flg_any: Indicator that any sleep data are present

Note

flg_slp, sleep timing and WASO variables are only calculated when bin_minutes is NULL. Calculations depend on offset dates and cannot operate on binned intervals. Returns an empty columns otherwise.

  • data_activity: fitbit_raw_activity or fitbit_covid_raw_activity

  • data_sleep_combined: fitbit_raw_sleep or fitbit_covid_raw_sleep

  • data_daily: fitbit_raw_metrics or fitbit_covid_raw_metrics


Computes episode-based daily sleep summary measures.

Description

This function extends the standard sleep pipeline by grouping 30-second sleep epochs into continuous sleep blocks based on a configurable gap threshold, and redefining main sleep periods based on block duration. Heart rate exclusion logic is applied both prior to and after block construction to ensure consistency across raw and reconstructed sleep structures.

Usage

compute_fitbit_sleep_table_ext(
  data_activity,
  data_sleep_combined,
  data_daily,
  hr_low = 50,
  hr_high = NULL,
  hr_rep_day = 10,
  hr_rep_sleep = 30,
  bin_minutes = NULL,
  offset = "12:00",
  min_slp_minutes,
  main_duration = 180,
  gap = 90
)

Arguments

data_activity

tbl. Epoch-level activity data used to derive heart rate exclusion flags.

data_sleep_combined

tbl. 30-second sleep epoch data containing sleep stage and timestamp information.

data_daily

tbl. Daily Fitbit summary data including resting heart rate.

hr_low

numeric. Lower threshold for valid heart rate values.

hr_high

numeric or NULL. Optional upper threshold for valid heart rate values.

hr_rep_day

numeric. Threshold (number of epochs) for repeated heart rate detection in daytime activity.

hr_rep_sleep

numeric. Threshold (number of epochs) for repeated heart rate detection in sleep.

bin_minutes

numeric. Number of minutes used to bin data.

offset

character. Time-of-day cutoff used to define sleep-day boundaries.

min_slp_minutes

numeric. Minimum number of sleep minutes required for a day to pass quality control. Used to create a qc_Xmin flag column in the output.

main_duration

numeric. Minumum duration in minutes for a sleep episode to be qualify as a main sleep episode.

gap

numeric. Maximum allowed gap (in minutes) between consecutive sleep epochs before a new sleep episode is defined.

Details

This extended pipeline differs from the standard sleep table by introducing a episode-based reconstruction step. Sleep epochs are grouped into continuous episodes using a configurable gap threshold, and episode duration is used to define main sleep.

Value

tbl. A daily-level extended sleep summary table containing:

Identifiers and time variables:

  • participant_id, session_id

  • wk: Study week index

  • day: Study day index

  • dt: Sleep-aligned date

  • dt_day: Day of week

  • dt_wknd: Weekend indicator

Sleep timing and block structure:

  • dtt_start_bed, dtt_end_bed

  • dtt_start_slp, dtt_end_slp

Sleep duration metrics:

  • min_total_slp, min_asleep_slp, min_restless_slp, min_light_slp, min_deep_slp, min_rem_slp, min_nap_slp

  • min_waso, min_wake, n_waso

Heart rate summaries by sleep stage:

  • hrate_awake_slp, hrate_restless_slp, hrate_asleep_slp

  • hrate_light_slp, hrate_deep_slp, hrate_rem_slp

  • hrate_nap_slp, hrate_rest_fitb

Heart rate exclusion metrics:

  • excl_min_total_slp, excl_min_lowhrate_slp

  • excl_min_nohrate_slp, excl_min_highhrate_slp

  • excl_min_repeathrate_slp, min_extra_nohrate_slp

Quality control flags:

  • qc_300min: Indicator for >= 300 minutes of sleep

  • flg_slp: Flag for implausible sleep structure

  • flg_any: Indicator for any valid sleep data

Note

  • data_activity: fitbit_raw_activity or fitbit_covid_raw_activity

  • data_sleep_combined: fitbit_raw_sleep or fitbit_covid_raw_sleep

  • data_daily: fitbit_raw_metrics or fitbit_covid_raw_metrics


Generates weekly sleep summaries from daily Fitbit sleep data.

Description

This wrapper function applies a standardized weekly aggregation pipeline using compute_fitbit_weekly_summary() and the summarize_sleep() function to compute weekly sleep metrics at the participant-session level.

Only days passing minimum quality control thresholds (qc_300min) are included in the weekly aggregation.

Usage

compute_fitbit_sleep_week(df, filter_expr = qc_300min)

Arguments

df

tbl. Daily-level Fitbit sleep dataset (standard or extended), typically fitbit_ss_sleep_day or fitbit_ss_ext_sleep_day.

filter_expr

expression. Logical filtering condition applied to the input dataset before summarization (e.g., QC thresholds).

Details

This function ensures consistent weekly aggregation of sleep metrics across standard and extended Fitbit datasets. It inherits QC filtering from the parent pipeline and preserves both total and stage-specific sleep summaries.

Value

tbl. Weekly sleep dataset containing:

  • Week identifiers (wk, wk_type)

  • Day counts (n_day, n_wkdy, n_wknd)

  • Sleep timing metrics (bed/sleep onset and offset)

  • Sleep duration and stage summaries

  • Heart rate–derived sleep metrics

  • Wake-after-sleep-onset metrics

  • Weekly quality control flag (qc_wk)

Note

  • df: fitbit_ss_sleep_day or fitbit_ss_ext_sleep_day (daily Fitbit sleep dataset with QC flags)


Generates weekly summary tables

Description

Generates weekly summary tables using a user-supplied summarization function, with stratification by weekday, weekend, and full-week estimates.

This function standardizes weekly aggregation by: (1) filtering valid records, (2) computing day counts for quality control, (3) applying a user-defined summarization function, and (4) producing three parallel weekly summaries (whole week, weekday-only, and weekend-only).

Usage

compute_fitbit_weekly_summary(
  df,
  wkdy_min = 3,
  wknd_min = 1,
  summarize_fn,
  filter_expr
)

Arguments

df

tbl. Input daily-level dataset containing at minimum: participant_id, session_id, wk, and dt_wknd.

wkdy_min

numeric. Minimum number of weekday observations required for a valid weekly weekday estimate.

wknd_min

numeric. Minimum number of weekend observations required for a valid weekly weekend estimate.

summarize_fn

function. A user-defined function that takes a filtered dataset and returns weekly summaries grouped by participant_id, session_id, and wk.

filter_expr

expression. Logical filtering condition applied to the input dataset before summarization (e.g., QC thresholds).

Details

The function uses stratified counting to ensure that weekly estimates are interpretable in the context of data completeness. The QC rule differs by strata:

  • Whole week: requires both weekday and weekend minimum counts

  • Weekday/weekend: require minimum counts within their respective subsets

The summarize_fn argument allows flexible reuse across sleep and activity pipelines while maintaining consistent weekly structure.

Value

tbl. A combined weekly dataset containing three types of summaries:

  • wk_type = 2: Whole-week estimates (weekday + weekend combined)

  • wk_type = 1: Weekend-only estimates

  • wk_type = 0: Weekday-only estimates

Each row includes:

  • Weekly summary metrics from summarize_fn

  • Day count variables (n_day, n_wkdy, n_wknd)

  • Quality control flag qc_wk indicating sufficient coverage


Compute "Adult Behavior Checklist [Parent] (Adaptive Functioning Scale - Friends): Sum"

Description

Computes the summary score mh_p_abcl__afs__frnd_sum Adult Behavior Checklist [Parent] (Adaptive Functioning Scale - Friends): Sum

  • Summarized variables:

    • mh_p_abcl__frnd_001

    • mh_p_abcl__frnd_002

    • mh_p_abcl__frnd_003

    • mh_p_abcl__frnd_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 4 items missing

Usage

compute_mh_p_abcl__afs__frnd_sum(
  data,
  name = "mh_p_abcl__afs__frnd_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__afs__frnd_nm()

Examples

## Not run: 
compute_mh_p_abcl__afs__frnd_sum(data) |>
  select(
    any_of(c("mh_p_abcl__afs__frnd_sum", vars_mh_p_abcl__afs__frnd))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Adaptive Functioning Scale - Friends): T-score"

Description

Computes the summary score mh_p_abcl__afs__frnd_tscore Adult Behavior Checklist [Parent] (Adaptive Functioning Scale - Friends): T-score

  • Summarized variables:

    • mh_p_abcl__frnd_001

    • mh_p_abcl__frnd_002

    • mh_p_abcl__frnd_003

    • mh_p_abcl__frnd_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 4 items missing

Usage

compute_mh_p_abcl__afs__frnd_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__afs__frnd_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__afs__frnd_nm()

Examples

## Not run: 
compute_mh_p_abcl__afs__frnd_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__afs__frnd_tscore", vars_mh_p_abcl__afs__frnd))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Critical items): Sum"

Description

Computes the summary score mh_p_abcl__critic_sum Adult Behavior Checklist [Parent] (Critical items): Sum

  • Summarized variables:

    • mh_p_abcl__rule_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__tho_001

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__tho_002

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__tho_003

    • mh_p_abcl__tho_004

    • mh_p_abcl__tho_006

    • mh_p_abcl__rule_002

    • mh_p_abcl__tho__dep_002

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__anxdep__dep_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 19 items missing

Usage

compute_mh_p_abcl__critic_sum(
  data,
  name = "mh_p_abcl__critic_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__critic_nm()

Examples

## Not run: 
compute_mh_p_abcl__critic_sum(data) |>
  select(
    any_of(c("mh_p_abcl__critic_sum", vars_mh_p_abcl__critic))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Critical items): T-score"

Description

Computes the summary score mh_p_abcl__critic_tscore Adult Behavior Checklist [Parent] (Critical items): T-score

  • Summarized variables:

    • mh_p_abcl__rule_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__tho_001

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__tho_002

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__tho_003

    • mh_p_abcl__tho_004

    • mh_p_abcl__tho_006

    • mh_p_abcl__rule_002

    • mh_p_abcl__tho__dep_002

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__anxdep__dep_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 19 items missing

Usage

compute_mh_p_abcl__critic_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__critic_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__critic_nm()

Examples

## Not run: 
compute_mh_p_abcl__critic_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__critic_tscore", vars_mh_p_abcl__critic))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): Sum"

Description

Computes the summary score mh_p_abcl__dsm__adhd_sum Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): Sum

  • Summarized variables:

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__attn__adhd_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__attn__adhd_003

    • mh_p_abcl__attn__adhd_004

    • mh_p_abcl__attn__adhd_005

    • mh_p_abcl__attn__adhd_006

    • mh_p_abcl__attn__adhd_007

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__othpr__adhd_002

    • mh_p_abcl__othpr__adhd_003

    • mh_p_abcl__othpr__adhd_004

    • mh_p_abcl__rule__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 13 items missing

Usage

compute_mh_p_abcl__dsm__adhd_sum(
  data,
  name = "mh_p_abcl__dsm__adhd_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__adhd_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__adhd_sum(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__adhd_sum", vars_mh_p_abcl__dsm__adhd))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): T-score"

Description

Computes the summary score mh_p_abcl__dsm__adhd_tscore Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): T-score

  • Summarized variables:

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__attn__adhd_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__attn__adhd_003

    • mh_p_abcl__attn__adhd_004

    • mh_p_abcl__attn__adhd_005

    • mh_p_abcl__attn__adhd_006

    • mh_p_abcl__attn__adhd_007

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__othpr__adhd_002

    • mh_p_abcl__othpr__adhd_003

    • mh_p_abcl__othpr__adhd_004

    • mh_p_abcl__rule__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 13 items missing

Usage

compute_mh_p_abcl__dsm__adhd_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__dsm__adhd_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__adhd_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__adhd_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__adhd_tscore", vars_mh_p_abcl__dsm__adhd))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): Sum"

Description

Computes the summary score mh_p_abcl__dsm__antsoc_sum Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): Sum

  • Summarized variables:

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__attn__antsoc_001

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__othpr__antsoc_002

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 20 items missing

Usage

compute_mh_p_abcl__dsm__antsoc_sum(
  data,
  name = "mh_p_abcl__dsm__antsoc_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__antsoc_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__antsoc_sum(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__antsoc_sum", vars_mh_p_abcl__dsm__antsoc))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): T-score"

Description

Computes the summary score mh_p_abcl__dsm__antsoc_tscore Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): T-score

  • Summarized variables:

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__attn__antsoc_001

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__othpr__antsoc_002

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 20 items missing

Usage

compute_mh_p_abcl__dsm__antsoc_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__dsm__antsoc_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__antsoc_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__antsoc_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__antsoc_tscore", vars_mh_p_abcl__dsm__antsoc))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety problems): Sum"

Description

Computes the summary score mh_p_abcl__dsm__anx_sum Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety problems): Sum

  • Summarized variables:

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__othpr__anx_001

    • mh_p_abcl__othpr__anx_002

    • mh_p_abcl__othpr__anx_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_p_abcl__dsm__anx_sum(
  data,
  name = "mh_p_abcl__dsm__anx_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__anx_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__anx_sum(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__anx_sum", vars_mh_p_abcl__dsm__anx))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety problems): T-score"

Description

Computes the summary score mh_p_abcl__dsm__anx_tscore Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety problems): T-score

  • Summarized variables:

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__othpr__anx_001

    • mh_p_abcl__othpr__anx_002

    • mh_p_abcl__othpr__anx_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_p_abcl__dsm__anx_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__dsm__anx_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__anx_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__anx_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__anx_tscore", vars_mh_p_abcl__dsm__anx))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): Sum"

Description

Computes the summary score mh_p_abcl__dsm__avoid_sum Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): Sum

  • Summarized variables:

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__othpr__avoid_001

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_abcl__dsm__avoid_sum(
  data,
  name = "mh_p_abcl__dsm__avoid_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__avoid_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__avoid_sum(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__avoid_sum", vars_mh_p_abcl__dsm__avoid))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): T-score"

Description

Computes the summary score mh_p_abcl__dsm__avoid_tscore Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): T-score

  • Summarized variables:

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__othpr__avoid_001

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_abcl__dsm__avoid_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__dsm__avoid_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__avoid_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__avoid_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__avoid_tscore", vars_mh_p_abcl__dsm__avoid))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): Sum"

Description

Computes the summary score mh_p_abcl__dsm__dep_sum Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): Sum

  • Summarized variables:

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__anxdep__dep_005

    • mh_p_abcl__attn__dep_001

    • mh_p_abcl__attn__dep_002

    • mh_p_abcl__attn__dep_003

    • mh_p_abcl__othpr__dep_001

    • mh_p_abcl__othpr__dep_002

    • mh_p_abcl__othpr__dep_003

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__tho__dep_002

    • mh_p_abcl__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 15 items missing

Usage

compute_mh_p_abcl__dsm__dep_sum(
  data,
  name = "mh_p_abcl__dsm__dep_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__dep_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__dep_sum(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__dep_sum", vars_mh_p_abcl__dsm__dep))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): T-score"

Description

Computes the summary score mh_p_abcl__dsm__dep_tscore Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): T-score

  • Summarized variables:

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__anxdep__dep_005

    • mh_p_abcl__attn__dep_001

    • mh_p_abcl__attn__dep_002

    • mh_p_abcl__attn__dep_003

    • mh_p_abcl__othpr__dep_001

    • mh_p_abcl__othpr__dep_002

    • mh_p_abcl__othpr__dep_003

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__tho__dep_002

    • mh_p_abcl__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 15 items missing

Usage

compute_mh_p_abcl__dsm__dep_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__dsm__dep_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__dep_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__dep_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__dep_tscore", vars_mh_p_abcl__dsm__dep))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): Sum"

Description

Computes the summary score mh_p_abcl__dsm__somat_sum Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): Sum

  • Summarized variables:

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_abcl__dsm__somat_sum(
  data,
  name = "mh_p_abcl__dsm__somat_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__somat_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__somat_sum(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__somat_sum", vars_mh_p_abcl__dsm__somat))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): T-score"

Description

Computes the summary score mh_p_abcl__dsm__somat_tscore Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): T-score

  • Summarized variables:

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_abcl__dsm__somat_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__dsm__somat_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__dsm__somat_nm()

Examples

## Not run: 
compute_mh_p_abcl__dsm__somat_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__somat_tscore", vars_mh_p_abcl__dsm__somat))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Days drug use): Sum"

Description

Computes the summary score mh_p_abcl__su__drg_sum Adult Behavior Checklist [Parent] (Days drug use): Sum

  • Summarized variables:

    • mh_p_abcl__drg_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 1 items missing

Usage

compute_mh_p_abcl__su__drg_sum(
  data,
  name = "mh_p_abcl__su__drg_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__su__drg_nm()

Examples

## Not run: 
compute_mh_p_abcl__su__drg_sum(data) |>
  select(
    any_of(c("mh_p_abcl__su__drg_sum", vars_mh_p_abcl__su__drg))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Days drug use): T-score"

Description

Computes the summary score mh_p_abcl__su__drg_tscore Adult Behavior Checklist [Parent] (Days drug use): T-score

  • Summarized variables:

    • mh_p_abcl__drg_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 1 items missing

Usage

compute_mh_p_abcl__su__drg_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__su__drg_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__su__drg_nm()

Examples

## Not run: 
compute_mh_p_abcl__su__drg_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__su__drg_tscore", vars_mh_p_abcl__su__drg))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Days Drunk): Sum"

Description

Computes the summary score mh_p_abcl__su__drunk_sum Adult Behavior Checklist [Parent] (Days Drunk): Sum

  • Summarized variables:

    • mh_p_abcl__drunk_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 1 items missing

Usage

compute_mh_p_abcl__su__drunk_sum(
  data,
  name = "mh_p_abcl__su__drunk_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__su__drunk_nm()

Examples

## Not run: 
compute_mh_p_abcl__su__drunk_sum(data) |>
  select(
    any_of(c("mh_p_abcl__su__drunk_sum", vars_mh_p_abcl__su__drunk))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Days Drunk): T-score"

Description

Computes the summary score mh_p_abcl__su__drunk_tscore Adult Behavior Checklist [Parent] (Days Drunk): T-score

  • Summarized variables:

    • mh_p_abcl__drunk_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 1 items missing

Usage

compute_mh_p_abcl__su__drunk_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__su__drunk_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__su__drunk_nm()

Examples

## Not run: 
compute_mh_p_abcl__su__drunk_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__su__drunk_tscore", vars_mh_p_abcl__su__drunk))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Tobacco per day): Sum"

Description

Computes the summary score mh_p_abcl__su__nic_sum Adult Behavior Checklist [Parent] (Tobacco per day): Sum

  • Summarized variables:

    • mh_p_abcl__nic_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 1 items missing

Usage

compute_mh_p_abcl__su__nic_sum(
  data,
  name = "mh_p_abcl__su__nic_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__su__nic_nm()

Examples

## Not run: 
compute_mh_p_abcl__su__nic_sum(data) |>
  select(
    any_of(c("mh_p_abcl__su__nic_sum", vars_mh_p_abcl__su__nic))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Tobacco per day): T-score"

Description

Computes the summary score mh_p_abcl__su__nic_tscore Adult Behavior Checklist [Parent] (Tobacco per day): T-score

  • Summarized variables:

    • mh_p_abcl__nic_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 1 items missing

Usage

compute_mh_p_abcl__su__nic_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__su__nic_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__su__nic_nm()

Examples

## Not run: 
compute_mh_p_abcl__su__nic_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__su__nic_tscore", vars_mh_p_abcl__su__nic))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Substance use): Sum"

Description

Computes the summary score mh_p_abcl__su_sum Adult Behavior Checklist [Parent] (Substance use): Sum

  • Summarized variables:

    • mh_p_abcl__drg_001

    • mh_p_abcl__drunk_001

    • mh_p_abcl__nic_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 3 items missing

Usage

compute_mh_p_abcl__su_sum(
  data,
  name = "mh_p_abcl__su_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__su_nm()

Examples

## Not run: 
compute_mh_p_abcl__su_sum(data) |>
  select(
    any_of(c("mh_p_abcl__su_sum", vars_mh_p_abcl__su))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Substance use): T-score"

Description

Computes the summary score mh_p_abcl__su_tscore Adult Behavior Checklist [Parent] (Substance use): T-score

  • Summarized variables:

    • mh_p_abcl__drg_001

    • mh_p_abcl__drunk_001

    • mh_p_abcl__nic_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 3 items missing

Usage

compute_mh_p_abcl__su_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__su_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__su_nm()

Examples

## Not run: 
compute_mh_p_abcl__su_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__su_tscore", vars_mh_p_abcl__su))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): Sum"

Description

Computes the summary score mh_p_abcl__synd__aggr_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): Sum

  • Summarized variables:

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr_002

    • mh_p_abcl__aggr_003

    • mh_p_abcl__aggr_004

    • mh_p_abcl__aggr_005

    • mh_p_abcl__aggr_006

    • mh_p_abcl__aggr_007

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 16 items missing

Usage

compute_mh_p_abcl__synd__aggr_sum(
  data,
  name = "mh_p_abcl__synd__aggr_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__aggr_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__aggr_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__aggr_sum", vars_mh_p_abcl__synd__aggr))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): T-score"

Description

Computes the summary score mh_p_abcl__synd__aggr_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): T-score

  • Summarized variables:

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr_002

    • mh_p_abcl__aggr_003

    • mh_p_abcl__aggr_004

    • mh_p_abcl__aggr_005

    • mh_p_abcl__aggr_006

    • mh_p_abcl__aggr_007

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 16 items missing

Usage

compute_mh_p_abcl__synd__aggr_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__aggr_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__aggr_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__aggr_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__aggr_tscore", vars_mh_p_abcl__synd__aggr))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): Sum"

Description

Computes the summary score mh_p_abcl__synd__anxdep_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): Sum

  • Summarized variables:

    • mh_p_abcl__anxdep_001

    • mh_p_abcl__anxdep_002

    • mh_p_abcl__anxdep_003

    • mh_p_abcl__anxdep_004

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__anxdep__dep_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 14 items missing

Usage

compute_mh_p_abcl__synd__anxdep_sum(
  data,
  name = "mh_p_abcl__synd__anxdep_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__anxdep_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__anxdep_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__anxdep_sum", vars_mh_p_abcl__synd__anxdep))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): T-score"

Description

Computes the summary score mh_p_abcl__synd__anxdep_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): T-score

  • Summarized variables:

    • mh_p_abcl__anxdep_001

    • mh_p_abcl__anxdep_002

    • mh_p_abcl__anxdep_003

    • mh_p_abcl__anxdep_004

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__anxdep__dep_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 14 items missing

Usage

compute_mh_p_abcl__synd__anxdep_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__anxdep_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__anxdep_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__anxdep_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__anxdep_tscore", vars_mh_p_abcl__synd__anxdep))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Attention problems): Sum"

Description

Computes the summary score mh_p_abcl__synd__attn_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Attention problems): Sum

  • Summarized variables:

    • mh_p_abcl__attn_001

    • mh_p_abcl__attn_002

    • mh_p_abcl__attn_003

    • mh_p_abcl__attn_004

    • mh_p_abcl__attn_005

    • mh_p_abcl__attn_006

    • mh_p_abcl__attn__adhd_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__attn__adhd_003

    • mh_p_abcl__attn__adhd_004

    • mh_p_abcl__attn__adhd_005

    • mh_p_abcl__attn__adhd_006

    • mh_p_abcl__attn__adhd_007

    • mh_p_abcl__attn__antsoc_001

    • mh_p_abcl__attn__dep_001

    • mh_p_abcl__attn__dep_002

    • mh_p_abcl__attn__dep_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 17 items missing

Usage

compute_mh_p_abcl__synd__attn_sum(
  data,
  name = "mh_p_abcl__synd__attn_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__attn_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__attn_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__attn_sum", vars_mh_p_abcl__synd__attn))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Attention problems): T-score"

Description

Computes the summary score mh_p_abcl__synd__attn_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - Attention problems): T-score

  • Summarized variables:

    • mh_p_abcl__attn_001

    • mh_p_abcl__attn_002

    • mh_p_abcl__attn_003

    • mh_p_abcl__attn_004

    • mh_p_abcl__attn_005

    • mh_p_abcl__attn_006

    • mh_p_abcl__attn__adhd_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__attn__adhd_003

    • mh_p_abcl__attn__adhd_004

    • mh_p_abcl__attn__adhd_005

    • mh_p_abcl__attn__adhd_006

    • mh_p_abcl__attn__adhd_007

    • mh_p_abcl__attn__antsoc_001

    • mh_p_abcl__attn__dep_001

    • mh_p_abcl__attn__dep_002

    • mh_p_abcl__attn__dep_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 17 items missing

Usage

compute_mh_p_abcl__synd__attn_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__attn_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__attn_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__attn_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__attn_tscore", vars_mh_p_abcl__synd__attn))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - External): Sum"

Description

Computes the summary score mh_p_abcl__synd__ext_sum Adult Behavior Checklist [Parent] (Syndrome Scale - External): Sum

  • Summarized variables:

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr_002

    • mh_p_abcl__aggr_003

    • mh_p_abcl__aggr_004

    • mh_p_abcl__aggr_005

    • mh_p_abcl__aggr_006

    • mh_p_abcl__aggr_007

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__rule_001

    • mh_p_abcl__rule_002

    • mh_p_abcl__rule_003

    • mh_p_abcl__rule__adhd_001

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

    • mh_p_abcl__intru_001

    • mh_p_abcl__intru_002

    • mh_p_abcl__intru_003

    • mh_p_abcl__intru_004

    • mh_p_abcl__intru_005

    • mh_p_abcl__intru_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 35 items missing

Usage

compute_mh_p_abcl__synd__ext_sum(
  data,
  name = "mh_p_abcl__synd__ext_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__ext_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__ext_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__ext_sum", vars_mh_p_abcl__synd__ext))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - External): T-score"

Description

Computes the summary score mh_p_abcl__synd__ext_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - External): T-score

  • Summarized variables:

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr_002

    • mh_p_abcl__aggr_003

    • mh_p_abcl__aggr_004

    • mh_p_abcl__aggr_005

    • mh_p_abcl__aggr_006

    • mh_p_abcl__aggr_007

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__rule_001

    • mh_p_abcl__rule_002

    • mh_p_abcl__rule_003

    • mh_p_abcl__rule__adhd_001

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

    • mh_p_abcl__intru_001

    • mh_p_abcl__intru_002

    • mh_p_abcl__intru_003

    • mh_p_abcl__intru_004

    • mh_p_abcl__intru_005

    • mh_p_abcl__intru_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 35 items missing

Usage

compute_mh_p_abcl__synd__ext_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__ext_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__ext_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__ext_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__ext_tscore", vars_mh_p_abcl__synd__ext))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Internalizing): Sum"

Description

Computes the summary score mh_p_abcl__synd__int_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Internalizing): Sum

  • Summarized variables:

    • mh_p_abcl__anxdep_001

    • mh_p_abcl__anxdep_002

    • mh_p_abcl__anxdep_003

    • mh_p_abcl__anxdep_004

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__anxdep__dep_005

    • mh_p_abcl__wthdr_001

    • mh_p_abcl__wthdr_002

    • mh_p_abcl__wthdr_003

    • mh_p_abcl__wthdr_004

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

    • mh_p_abcl__wthdr__dep_001

    • mh_p_abcl__som_001

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 32 items missing

Usage

compute_mh_p_abcl__synd__int_sum(
  data,
  name = "mh_p_abcl__synd__int_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__int_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__int_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__int_sum", vars_mh_p_abcl__synd__int))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Internalizing): T-score"

Description

Computes the summary score mh_p_abcl__synd__int_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - Internalizing): T-score

  • Summarized variables:

    • mh_p_abcl__anxdep_001

    • mh_p_abcl__anxdep_002

    • mh_p_abcl__anxdep_003

    • mh_p_abcl__anxdep_004

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__anxdep__dep_005

    • mh_p_abcl__wthdr_001

    • mh_p_abcl__wthdr_002

    • mh_p_abcl__wthdr_003

    • mh_p_abcl__wthdr_004

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

    • mh_p_abcl__wthdr__dep_001

    • mh_p_abcl__som_001

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 32 items missing

Usage

compute_mh_p_abcl__synd__int_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__int_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__int_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__int_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__int_tscore", vars_mh_p_abcl__synd__int))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Intrusive): Sum"

Description

Computes the summary score mh_p_abcl__synd__intru_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Intrusive): Sum

  • Summarized variables:

    • mh_p_abcl__intru_001

    • mh_p_abcl__intru_002

    • mh_p_abcl__intru_003

    • mh_p_abcl__intru_004

    • mh_p_abcl__intru_005

    • mh_p_abcl__intru_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_p_abcl__synd__intru_sum(
  data,
  name = "mh_p_abcl__synd__intru_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__intru_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__intru_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__intru_sum", vars_mh_p_abcl__synd__intru))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Intrusive): T-score"

Description

Computes the summary score mh_p_abcl__synd__intru_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - Intrusive): T-score

  • Summarized variables:

    • mh_p_abcl__intru_001

    • mh_p_abcl__intru_002

    • mh_p_abcl__intru_003

    • mh_p_abcl__intru_004

    • mh_p_abcl__intru_005

    • mh_p_abcl__intru_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_p_abcl__synd__intru_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__intru_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__intru_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__intru_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__intru_tscore", vars_mh_p_abcl__synd__intru))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Other problems): Sum"

Description

Computes the summary score mh_p_abcl__synd__othpr_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Other problems): Sum

  • Summarized variables:

    • mh_p_abcl__othpr_001

    • mh_p_abcl__othpr_002

    • mh_p_abcl__othpr_003

    • mh_p_abcl__othpr_004

    • mh_p_abcl__othpr_005

    • mh_p_abcl__othpr_006

    • mh_p_abcl__othpr_007

    • mh_p_abcl__othpr_008

    • mh_p_abcl__othpr_009

    • mh_p_abcl__othpr_010

    • mh_p_abcl__othpr_011

    • mh_p_abcl__othpr_012

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__othpr__adhd_002

    • mh_p_abcl__othpr__adhd_003

    • mh_p_abcl__othpr__adhd_004

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__othpr__antsoc_002

    • mh_p_abcl__othpr__anx_001

    • mh_p_abcl__othpr__anx_002

    • mh_p_abcl__othpr__anx_003

    • mh_p_abcl__othpr__avoid_001

    • mh_p_abcl__othpr__dep_001

    • mh_p_abcl__othpr__dep_002

    • mh_p_abcl__othpr__dep_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 25 items missing

Usage

compute_mh_p_abcl__synd__othpr_sum(
  data,
  name = "mh_p_abcl__synd__othpr_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__othpr_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__othpr_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__othpr_sum", vars_mh_p_abcl__synd__othpr))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): Sum"

Description

Computes the summary score mh_p_abcl__synd__rule_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): Sum

  • Summarized variables:

    • mh_p_abcl__rule_001

    • mh_p_abcl__rule_002

    • mh_p_abcl__rule_003

    • mh_p_abcl__rule__adhd_001

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 13 items missing

Usage

compute_mh_p_abcl__synd__rule_sum(
  data,
  name = "mh_p_abcl__synd__rule_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__rule_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__rule_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__rule_sum", vars_mh_p_abcl__synd__rule))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): T-score"

Description

Computes the summary score mh_p_abcl__synd__rule_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): T-score

  • Summarized variables:

    • mh_p_abcl__rule_001

    • mh_p_abcl__rule_002

    • mh_p_abcl__rule_003

    • mh_p_abcl__rule__adhd_001

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 13 items missing

Usage

compute_mh_p_abcl__synd__rule_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__rule_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__rule_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__rule_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__rule_tscore", vars_mh_p_abcl__synd__rule))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): Sum"

Description

Computes the summary score mh_p_abcl__synd__som_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): Sum

  • Summarized variables:

    • mh_p_abcl__som_001

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_abcl__synd__som_sum(
  data,
  name = "mh_p_abcl__synd__som_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__som_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__som_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__som_sum", vars_mh_p_abcl__synd__som))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): T-score"

Description

Computes the summary score mh_p_abcl__synd__som_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): T-score

  • Summarized variables:

    • mh_p_abcl__som_001

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_abcl__synd__som_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__som_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__som_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__som_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__som_tscore", vars_mh_p_abcl__synd__som))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Thought problems): Sum"

Description

Computes the summary score mh_p_abcl__synd__tho_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Thought problems): Sum

  • Summarized variables:

    • mh_p_abcl__tho_001

    • mh_p_abcl__tho_002

    • mh_p_abcl__tho_003

    • mh_p_abcl__tho_004

    • mh_p_abcl__tho_005

    • mh_p_abcl__tho_006

    • mh_p_abcl__tho_007

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__tho__dep_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_abcl__synd__tho_sum(
  data,
  name = "mh_p_abcl__synd__tho_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__tho_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__tho_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__tho_sum", vars_mh_p_abcl__synd__tho))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Thought problems): T-score"

Description

Computes the summary score mh_p_abcl__synd__tho_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - Thought problems): T-score

  • Summarized variables:

    • mh_p_abcl__tho_001

    • mh_p_abcl__tho_002

    • mh_p_abcl__tho_003

    • mh_p_abcl__tho_004

    • mh_p_abcl__tho_005

    • mh_p_abcl__tho_006

    • mh_p_abcl__tho_007

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__tho__dep_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_abcl__synd__tho_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__tho_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__tho_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__tho_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__tho_tscore", vars_mh_p_abcl__synd__tho))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Withdrawn): Sum"

Description

Computes the summary score mh_p_abcl__synd__wthdr_sum Adult Behavior Checklist [Parent] (Syndrome Scale - Withdrawn): Sum

  • Summarized variables:

    • mh_p_abcl__wthdr_001

    • mh_p_abcl__wthdr_002

    • mh_p_abcl__wthdr_003

    • mh_p_abcl__wthdr_004

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

    • mh_p_abcl__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_abcl__synd__wthdr_sum(
  data,
  name = "mh_p_abcl__synd__wthdr_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__wthdr_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__wthdr_sum(data) |>
  select(
    any_of(c("mh_p_abcl__synd__wthdr_sum", vars_mh_p_abcl__synd__wthdr))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Withdrawn): T-score"

Description

Computes the summary score mh_p_abcl__synd__wthdr_tscore Adult Behavior Checklist [Parent] (Syndrome Scale - Withdrawn): T-score

  • Summarized variables:

    • mh_p_abcl__wthdr_001

    • mh_p_abcl__wthdr_002

    • mh_p_abcl__wthdr_003

    • mh_p_abcl__wthdr_004

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

    • mh_p_abcl__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_abcl__synd__wthdr_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl__synd__wthdr_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl__synd__wthdr_nm()

Examples

## Not run: 
compute_mh_p_abcl__synd__wthdr_tscore(data) |>
  select(
    any_of(c("mh_p_abcl__synd__wthdr_tscore", vars_mh_p_abcl__synd__wthdr))
  )

## End(Not run)

Compute all summary scores for mh_p_abcl.

Description

This function computes all summary scores for the mh_p_abcl form. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_abcl_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_p_abcl_all(data)

## End(Not run)

Compute "Adult Behavior Checklist [Parent]: Sum"

Description

Computes the summary score mh_p_abcl_sum Adult Behavior Checklist [Parent]: Sum

  • Summarized variables:

    • mh_p_abcl__rule_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__tho_001

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__tho_002

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__tho_003

    • mh_p_abcl__tho_004

    • mh_p_abcl__tho_006

    • mh_p_abcl__rule_002

    • mh_p_abcl__tho__dep_002

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__attn__adhd_001

    • mh_p_abcl__attn__adhd_003

    • mh_p_abcl__attn__adhd_004

    • mh_p_abcl__attn__adhd_005

    • mh_p_abcl__attn__adhd_006

    • mh_p_abcl__attn__adhd_007

    • mh_p_abcl__othpr__adhd_002

    • mh_p_abcl__othpr__adhd_003

    • mh_p_abcl__othpr__adhd_004

    • mh_p_abcl__rule__adhd_001

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__attn__antsoc_001

    • mh_p_abcl__othpr__antsoc_002

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__othpr__anx_001

    • mh_p_abcl__othpr__anx_002

    • mh_p_abcl__othpr__anx_003

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__othpr__avoid_001

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_005

    • mh_p_abcl__attn__dep_001

    • mh_p_abcl__attn__dep_002

    • mh_p_abcl__attn__dep_003

    • mh_p_abcl__othpr__dep_001

    • mh_p_abcl__othpr__dep_002

    • mh_p_abcl__othpr__dep_003

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__wthdr__dep_001

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

    • mh_p_abcl__aggr_002

    • mh_p_abcl__aggr_003

    • mh_p_abcl__aggr_004

    • mh_p_abcl__aggr_005

    • mh_p_abcl__aggr_006

    • mh_p_abcl__aggr_007

    • mh_p_abcl__anxdep_001

    • mh_p_abcl__anxdep_002

    • mh_p_abcl__anxdep_003

    • mh_p_abcl__anxdep_004

    • mh_p_abcl__attn_001

    • mh_p_abcl__attn_002

    • mh_p_abcl__attn_003

    • mh_p_abcl__attn_004

    • mh_p_abcl__attn_005

    • mh_p_abcl__attn_006

    • mh_p_abcl__rule_003

    • mh_p_abcl__intru_001

    • mh_p_abcl__intru_002

    • mh_p_abcl__intru_003

    • mh_p_abcl__intru_004

    • mh_p_abcl__intru_005

    • mh_p_abcl__intru_006

    • mh_p_abcl__wthdr_001

    • mh_p_abcl__wthdr_002

    • mh_p_abcl__wthdr_003

    • mh_p_abcl__wthdr_004

    • mh_p_abcl__som_001

    • mh_p_abcl__othpr_001

    • mh_p_abcl__othpr_002

    • mh_p_abcl__othpr_003

    • mh_p_abcl__othpr_004

    • mh_p_abcl__othpr_005

    • mh_p_abcl__othpr_006

    • mh_p_abcl__othpr_007

    • mh_p_abcl__othpr_008

    • mh_p_abcl__othpr_009

    • mh_p_abcl__othpr_010

    • mh_p_abcl__othpr_011

    • mh_p_abcl__othpr_012

    • mh_p_abcl__tho_005

    • mh_p_abcl__tho_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 8 of 118 items missing

Usage

compute_mh_p_abcl_sum(
  data,
  name = "mh_p_abcl_sum",
  max_na = 8,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl_nm()

Examples

## Not run: 
compute_mh_p_abcl_sum(data) |>
  select(
    any_of(c("mh_p_abcl_sum", vars_mh_p_abcl))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent]: T-score"

Description

Computes the summary score mh_p_abcl_tscore Adult Behavior Checklist [Parent]: T-score

  • Summarized variables:

    • mh_p_abcl__rule_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__tho_001

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__tho_002

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__tho_003

    • mh_p_abcl__tho_004

    • mh_p_abcl__tho_006

    • mh_p_abcl__rule_002

    • mh_p_abcl__tho__dep_002

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__attn__adhd_001

    • mh_p_abcl__attn__adhd_003

    • mh_p_abcl__attn__adhd_004

    • mh_p_abcl__attn__adhd_005

    • mh_p_abcl__attn__adhd_006

    • mh_p_abcl__attn__adhd_007

    • mh_p_abcl__othpr__adhd_002

    • mh_p_abcl__othpr__adhd_003

    • mh_p_abcl__othpr__adhd_004

    • mh_p_abcl__rule__adhd_001

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__attn__antsoc_001

    • mh_p_abcl__othpr__antsoc_002

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__othpr__anx_001

    • mh_p_abcl__othpr__anx_002

    • mh_p_abcl__othpr__anx_003

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__othpr__avoid_001

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_005

    • mh_p_abcl__attn__dep_001

    • mh_p_abcl__attn__dep_002

    • mh_p_abcl__attn__dep_003

    • mh_p_abcl__othpr__dep_001

    • mh_p_abcl__othpr__dep_002

    • mh_p_abcl__othpr__dep_003

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__wthdr__dep_001

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

    • mh_p_abcl__aggr_002

    • mh_p_abcl__aggr_003

    • mh_p_abcl__aggr_004

    • mh_p_abcl__aggr_005

    • mh_p_abcl__aggr_006

    • mh_p_abcl__aggr_007

    • mh_p_abcl__anxdep_001

    • mh_p_abcl__anxdep_002

    • mh_p_abcl__anxdep_003

    • mh_p_abcl__anxdep_004

    • mh_p_abcl__attn_001

    • mh_p_abcl__attn_002

    • mh_p_abcl__attn_003

    • mh_p_abcl__attn_004

    • mh_p_abcl__attn_005

    • mh_p_abcl__attn_006

    • mh_p_abcl__rule_003

    • mh_p_abcl__intru_001

    • mh_p_abcl__intru_002

    • mh_p_abcl__intru_003

    • mh_p_abcl__intru_004

    • mh_p_abcl__intru_005

    • mh_p_abcl__intru_006

    • mh_p_abcl__wthdr_001

    • mh_p_abcl__wthdr_002

    • mh_p_abcl__wthdr_003

    • mh_p_abcl__wthdr_004

    • mh_p_abcl__som_001

    • mh_p_abcl__othpr_001

    • mh_p_abcl__othpr_002

    • mh_p_abcl__othpr_003

    • mh_p_abcl__othpr_004

    • mh_p_abcl__othpr_005

    • mh_p_abcl__othpr_006

    • mh_p_abcl__othpr_007

    • mh_p_abcl__othpr_008

    • mh_p_abcl__othpr_009

    • mh_p_abcl__othpr_010

    • mh_p_abcl__othpr_011

    • mh_p_abcl__othpr_012

    • mh_p_abcl__tho_005

    • mh_p_abcl__tho_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 8 of 118 items missing

Usage

compute_mh_p_abcl_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_abcl_tscore",
  col_age = "mh_p_abcl__cg2__age_001",
  col_sex = "mh_p_abcl__cg2_sex",
  max_na = 8,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_abcl_nm()

Examples

## Not run: 
compute_mh_p_abcl_tscore(data) |>
  select(
    any_of(c("mh_p_abcl_tscore", vars_mh_p_abcl))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Adaptive Functioning Scale - Personal strength): Sum"

Description

Computes the summary score mh_p_asr__afs__strng_sum Adult Self Report [Parent] (Adaptive Functioning Scale - Personal strength): Sum

  • Summarized variables:

    • mh_p_asr__strng_001

    • mh_p_asr__strng_002

    • mh_p_asr__strng_003

    • mh_p_asr__strng_004

    • mh_p_asr__strng_005

    • mh_p_asr__strng_006

    • mh_p_asr__strng_007

    • mh_p_asr__strng_008

    • mh_p_asr__strng_009

    • mh_p_asr__strng_010

    • mh_p_asr__strng_011

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 11 items missing

Usage

compute_mh_p_asr__afs__strng_sum(
  data,
  name = "mh_p_asr__afs__strng_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__afs__strng_nm()

Examples

## Not run: 
compute_mh_p_asr__afs__strng_sum(data) |>
  select(
    any_of(c("mh_p_asr__afs__strng_sum", vars_mh_p_asr__afs__strng))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Critical Items): Sum"

Description

Computes the summary score mh_p_asr__critic_sum Adult Self Report [Parent] (Critical Items): Sum

  • Summarized variables:

    • mh_p_asr__aggr_001

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_008

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__antsoc_001

    • mh_p_asr__rule_001

    • mh_p_asr__rule_003

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__tho_001

    • mh_p_asr__tho_002

    • mh_p_asr__tho_005

    • mh_p_asr__tho_006

    • mh_p_asr__tho_007

    • mh_p_asr__tho__dep_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 19 items missing

Usage

compute_mh_p_asr__critic_sum(
  data,
  name = "mh_p_asr__critic_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__critic_nm()

Examples

## Not run: 
compute_mh_p_asr__critic_sum(data) |>
  select(
    any_of(c("mh_p_asr__critic_sum", vars_mh_p_asr__critic))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD Hyperactivity-Impulsivity): Sum"

Description

Computes the summary score mh_p_asr__dsm__adhd__hypimp_sum Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD Hyperactivity-Impulsivity): Sum

  • Summarized variables:

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__hypimp_002

    • mh_p_asr__othpr__hypimp_003

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__tho__hypimp_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_p_asr__dsm__adhd__hypimp_sum(
  data,
  name = "mh_p_asr__dsm__adhd__hypimp_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__dsm__adhd__hypimp_nm()

Examples

## Not run: 
compute_mh_p_asr__dsm__adhd__hypimp_sum(data) |>
  select(
    any_of(c("mh_p_asr__dsm__adhd__hypimp_sum", vars_mh_p_asr__dsm__adhd__hypimp))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD Inattention): Sum"

Description

Computes the summary score mh_p_asr__dsm__adhd__inatt_sum Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD Inattention): Sum

  • Summarized variables:

    • mh_p_asr__attn__inatt_001

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__attn__inatt_003

    • mh_p_asr__attn__inatt_004

    • mh_p_asr__attn__inatt_005

    • mh_p_asr__attn__inatt_006

    • mh_p_asr__attn__inatt_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_asr__dsm__adhd__inatt_sum(
  data,
  name = "mh_p_asr__dsm__adhd__inatt_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__dsm__adhd__inatt_nm()

Examples

## Not run: 
compute_mh_p_asr__dsm__adhd__inatt_sum(data) |>
  select(
    any_of(c("mh_p_asr__dsm__adhd__inatt_sum", vars_mh_p_asr__dsm__adhd__inatt))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD): Sum"

Description

Computes the summary score mh_p_asr__dsm__adhd_sum Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD): Sum

  • Summarized variables:

    • mh_p_asr__attn__inatt_001

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__attn__inatt_003

    • mh_p_asr__attn__inatt_004

    • mh_p_asr__attn__inatt_005

    • mh_p_asr__attn__inatt_006

    • mh_p_asr__attn__inatt_007

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__hypimp_002

    • mh_p_asr__othpr__hypimp_003

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__tho__hypimp_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 13 items missing

Usage

compute_mh_p_asr__dsm__adhd_sum(
  data,
  name = "mh_p_asr__dsm__adhd_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__dsm__adhd_nm()

Examples

## Not run: 
compute_mh_p_asr__dsm__adhd_sum(data) |>
  select(
    any_of(c("mh_p_asr__dsm__adhd_sum", vars_mh_p_asr__dsm__adhd))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): Sum"

Description

Computes the summary score mh_p_asr__dsm__antsoc_sum Adult Self Report [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): Sum

  • Summarized variables:

    • mh_p_asr__aggr__antsoc_001

    • mh_p_asr__aggr__antsoc_002

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_004

    • mh_p_asr__aggr__antsoc_005

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_007

    • mh_p_asr__aggr__antsoc_008

    • mh_p_asr__attn__antsoc_001

    • mh_p_asr__othpr__antsoc_001

    • mh_p_asr__othpr__antsoc_002

    • mh_p_asr__rule__antsoc_001

    • mh_p_asr__rule__antsoc_002

    • mh_p_asr__rule__antsoc_003

    • mh_p_asr__rule__antsoc_004

    • mh_p_asr__rule__antsoc_005

    • mh_p_asr__rule__antsoc_006

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__rule__antsoc_008

    • mh_p_asr__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 20 items missing

Usage

compute_mh_p_asr__dsm__antsoc_sum(
  data,
  name = "mh_p_asr__dsm__antsoc_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__dsm__antsoc_nm()

Examples

## Not run: 
compute_mh_p_asr__dsm__antsoc_sum(data) |>
  select(
    any_of(c("mh_p_asr__dsm__antsoc_sum", vars_mh_p_asr__dsm__antsoc))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Anxiety problems): Sum"

Description

Computes the summary score mh_p_asr__dsm__anx_sum Adult Self Report [Parent] (DSM-5 Oriented Scale - Anxiety problems): Sum

  • Summarized variables:

    • mh_p_asr__anxdep__anx_001

    • mh_p_asr__anxdep__anx_002

    • mh_p_asr__anxdep__anx_003

    • mh_p_asr__anxdep__anx_004

    • mh_p_asr__othpr__anx_001

    • mh_p_asr__othpr__anx_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_p_asr__dsm__anx_sum(
  data,
  name = "mh_p_asr__dsm__anx_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__dsm__anx_nm()

Examples

## Not run: 
compute_mh_p_asr__dsm__anx_sum(data) |>
  select(
    any_of(c("mh_p_asr__dsm__anx_sum", vars_mh_p_asr__dsm__anx))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): Sum"

Description

Computes the summary score mh_p_asr__dsm__avoid_sum Adult Self Report [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): Sum

  • Summarized variables:

    • mh_p_asr__anxdep__avoid_001

    • mh_p_asr__anxdep__avoid_002

    • mh_p_asr__othpr__avoid_001

    • mh_p_asr__wthdr__avoid_001

    • mh_p_asr__wthdr__avoid_002

    • mh_p_asr__wthdr__avoid_003

    • mh_p_asr__wthdr__avoid_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_asr__dsm__avoid_sum(
  data,
  name = "mh_p_asr__dsm__avoid_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__dsm__avoid_nm()

Examples

## Not run: 
compute_mh_p_asr__dsm__avoid_sum(data) |>
  select(
    any_of(c("mh_p_asr__dsm__avoid_sum", vars_mh_p_asr__dsm__avoid))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Depresssive problems): Sum"

Description

Computes the summary score mh_p_asr__dsm__dep_sum Adult Self Report [Parent] (DSM-5 Oriented Scale - Depresssive problems): Sum

  • Summarized variables:

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_002

    • mh_p_asr__anxdep__dep_003

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__anxdep__dep_006

    • mh_p_asr__attn__dep_001

    • mh_p_asr__attn__dep_002

    • mh_p_asr__othpr__dep_001

    • mh_p_asr__othpr__dep_002

    • mh_p_asr__som__dep_001

    • mh_p_asr__som__dep_002

    • mh_p_asr__tho__dep_001

    • mh_p_asr__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 14 items missing

Usage

compute_mh_p_asr__dsm__dep_sum(
  data,
  name = "mh_p_asr__dsm__dep_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__dsm__dep_nm()

Examples

## Not run: 
compute_mh_p_asr__dsm__dep_sum(data) |>
  select(
    any_of(c("mh_p_asr__dsm__dep_sum", vars_mh_p_asr__dsm__dep))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Somatic complaints): Sum"

Description

Computes the summary score mh_p_asr__dsm__somat_sum Adult Self Report [Parent] (DSM-5 Oriented Scale - Somatic complaints): Sum

  • Summarized variables:

    • mh_p_asr__som__somat_001

    • mh_p_asr__som__somat_002

    • mh_p_asr__som__somat_003

    • mh_p_asr__som__somat_004

    • mh_p_asr__som__somat_005

    • mh_p_asr__som__somat_006

    • mh_p_asr__som__somat_007

    • mh_p_asr__som__somat_008

    • mh_p_asr__som__somat_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_asr__dsm__somat_sum(
  data,
  name = "mh_p_asr__dsm__somat_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__dsm__somat_nm()

Examples

## Not run: 
compute_mh_p_asr__dsm__somat_sum(data) |>
  select(
    any_of(c("mh_p_asr__dsm__somat_sum", vars_mh_p_asr__dsm__somat))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Aggressive Behavior): Sum"

Description

Computes the summary score mh_p_asr__synd__aggr_sum Adult Self Report [Parent] (Syndrome Scale - Aggressive Behavior): Sum

  • Summarized variables:

    • mh_p_asr__aggr_001

    • mh_p_asr__aggr_002

    • mh_p_asr__aggr_003

    • mh_p_asr__aggr_004

    • mh_p_asr__aggr_005

    • mh_p_asr__aggr_006

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__aggr__antsoc_001

    • mh_p_asr__aggr__antsoc_002

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_004

    • mh_p_asr__aggr__antsoc_005

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_007

    • mh_p_asr__aggr__antsoc_008

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 15 items missing

Usage

compute_mh_p_asr__synd__aggr_sum(
  data,
  name = "mh_p_asr__synd__aggr_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__aggr_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__aggr_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__aggr_sum", vars_mh_p_asr__synd__aggr))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Anxious/Depressed): Sum"

Description

Computes the summary score mh_p_asr__synd__anxdep_sum Adult Self Report [Parent] (Syndrome Scale - Anxious/Depressed): Sum

  • Summarized variables:

    • mh_p_asr__anxdep_001

    • mh_p_asr__anxdep_002

    • mh_p_asr__anxdep_003

    • mh_p_asr__anxdep_004

    • mh_p_asr__anxdep_005

    • mh_p_asr__anxdep_006

    • mh_p_asr__anxdep__anx_001

    • mh_p_asr__anxdep__anx_002

    • mh_p_asr__anxdep__anx_003

    • mh_p_asr__anxdep__anx_004

    • mh_p_asr__anxdep__avoid_001

    • mh_p_asr__anxdep__avoid_002

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_002

    • mh_p_asr__anxdep__dep_003

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__anxdep__dep_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 18 items missing

Usage

compute_mh_p_asr__synd__anxdep_sum(
  data,
  name = "mh_p_asr__synd__anxdep_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__anxdep_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__anxdep_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__anxdep_sum", vars_mh_p_asr__synd__anxdep))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Attention problems): Sum"

Description

Computes the summary score mh_p_asr__synd__attn_sum Adult Self Report [Parent] (Syndrome Scale - Attention problems): Sum

  • Summarized variables:

    • mh_p_asr__attn_001

    • mh_p_asr__attn_002

    • mh_p_asr__attn_003

    • mh_p_asr__attn_004

    • mh_p_asr__attn_005

    • mh_p_asr__attn__inatt_001

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__attn__inatt_003

    • mh_p_asr__attn__inatt_004

    • mh_p_asr__attn__inatt_005

    • mh_p_asr__attn__inatt_006

    • mh_p_asr__attn__inatt_007

    • mh_p_asr__attn__antsoc_001

    • mh_p_asr__attn__dep_001

    • mh_p_asr__attn__dep_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 15 items missing

Usage

compute_mh_p_asr__synd__attn_sum(
  data,
  name = "mh_p_asr__synd__attn_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__attn_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__attn_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__attn_sum", vars_mh_p_asr__synd__attn))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Externalizing): Sum"

Description

Computes the summary score mh_p_asr__synd__ext_sum Adult Self Report [Parent] (Syndrome Scale - Externalizing): Sum

  • Summarized variables:

    • mh_p_asr__intru_001

    • mh_p_asr__intru_002

    • mh_p_asr__intru_003

    • mh_p_asr__intru_004

    • mh_p_asr__intru_005

    • mh_p_asr__intru_006

    • mh_p_asr__rule_001

    • mh_p_asr__rule_002

    • mh_p_asr__rule_003

    • mh_p_asr__rule_004

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__rule__antsoc_001

    • mh_p_asr__rule__antsoc_002

    • mh_p_asr__rule__antsoc_003

    • mh_p_asr__rule__antsoc_004

    • mh_p_asr__rule__antsoc_005

    • mh_p_asr__rule__antsoc_006

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__rule__antsoc_008

    • mh_p_asr__rule__antsoc_009

    • mh_p_asr__aggr_001

    • mh_p_asr__aggr_002

    • mh_p_asr__aggr_003

    • mh_p_asr__aggr_004

    • mh_p_asr__aggr_005

    • mh_p_asr__aggr_006

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__aggr__antsoc_001

    • mh_p_asr__aggr__antsoc_002

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_004

    • mh_p_asr__aggr__antsoc_005

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_007

    • mh_p_asr__aggr__antsoc_008

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 35 items missing

Usage

compute_mh_p_asr__synd__ext_sum(
  data,
  name = "mh_p_asr__synd__ext_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__ext_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__ext_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__ext_sum", vars_mh_p_asr__synd__ext))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Internalizing): Sum"

Description

Computes the summary score mh_p_asr__synd__int_sum Adult Self Report [Parent] (Syndrome Scale - Internalizing): Sum

  • Summarized variables:

    • mh_p_asr__anxdep_001

    • mh_p_asr__anxdep_002

    • mh_p_asr__anxdep_003

    • mh_p_asr__anxdep_004

    • mh_p_asr__anxdep_005

    • mh_p_asr__anxdep_006

    • mh_p_asr__anxdep__anx_001

    • mh_p_asr__anxdep__anx_002

    • mh_p_asr__anxdep__anx_003

    • mh_p_asr__anxdep__anx_004

    • mh_p_asr__anxdep__avoid_001

    • mh_p_asr__anxdep__avoid_002

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_002

    • mh_p_asr__anxdep__dep_003

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__anxdep__dep_006

    • mh_p_asr__som_001

    • mh_p_asr__som__dep_001

    • mh_p_asr__som__dep_002

    • mh_p_asr__som__somat_001

    • mh_p_asr__som__somat_002

    • mh_p_asr__som__somat_003

    • mh_p_asr__som__somat_004

    • mh_p_asr__som__somat_005

    • mh_p_asr__som__somat_006

    • mh_p_asr__som__somat_007

    • mh_p_asr__som__somat_008

    • mh_p_asr__som__somat_009

    • mh_p_asr__wthdr_001

    • mh_p_asr__wthdr_002

    • mh_p_asr__wthdr_003

    • mh_p_asr__wthdr_004

    • mh_p_asr__wthdr__avoid_001

    • mh_p_asr__wthdr__avoid_002

    • mh_p_asr__wthdr__avoid_003

    • mh_p_asr__wthdr__avoid_004

    • mh_p_asr__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 39 items missing

Usage

compute_mh_p_asr__synd__int_sum(
  data,
  name = "mh_p_asr__synd__int_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__int_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__int_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__int_sum", vars_mh_p_asr__synd__int))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Intrusive): Sum"

Description

Computes the summary score mh_p_asr__synd__intru_sum Adult Self Report [Parent] (Syndrome Scale - Intrusive): Sum

  • Summarized variables:

    • mh_p_asr__intru_001

    • mh_p_asr__intru_002

    • mh_p_asr__intru_003

    • mh_p_asr__intru_004

    • mh_p_asr__intru_005

    • mh_p_asr__intru_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_p_asr__synd__intru_sum(
  data,
  name = "mh_p_asr__synd__intru_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__intru_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__intru_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__intru_sum", vars_mh_p_asr__synd__intru))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Other problems): Sum"

Description

Computes the summary score mh_p_asr__synd__othpr_sum Adult Self Report [Parent] (Syndrome Scale - Other problems): Sum

  • Summarized variables:

    • mh_p_asr__othpr_001

    • mh_p_asr__othpr_002

    • mh_p_asr__othpr_003

    • mh_p_asr__othpr_004

    • mh_p_asr__othpr_005

    • mh_p_asr__othpr_006

    • mh_p_asr__othpr_007

    • mh_p_asr__othpr_008

    • mh_p_asr__othpr_009

    • mh_p_asr__othpr_010

    • mh_p_asr__othpr_011

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__hypimp_002

    • mh_p_asr__othpr__hypimp_003

    • mh_p_asr__othpr__antsoc_001

    • mh_p_asr__othpr__antsoc_002

    • mh_p_asr__othpr__anx_001

    • mh_p_asr__othpr__anx_002

    • mh_p_asr__othpr__avoid_001

    • mh_p_asr__othpr__dep_001

    • mh_p_asr__othpr__dep_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 21 items missing

Usage

compute_mh_p_asr__synd__othpr_sum(
  data,
  name = "mh_p_asr__synd__othpr_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__othpr_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__othpr_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__othpr_sum", vars_mh_p_asr__synd__othpr))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Rule breaking behavior): Sum"

Description

Computes the summary score mh_p_asr__synd__rule_sum Adult Self Report [Parent] (Syndrome Scale - Rule breaking behavior): Sum

  • Summarized variables:

    • mh_p_asr__rule_001

    • mh_p_asr__rule_002

    • mh_p_asr__rule_003

    • mh_p_asr__rule_004

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__rule__antsoc_001

    • mh_p_asr__rule__antsoc_002

    • mh_p_asr__rule__antsoc_003

    • mh_p_asr__rule__antsoc_004

    • mh_p_asr__rule__antsoc_005

    • mh_p_asr__rule__antsoc_006

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__rule__antsoc_008

    • mh_p_asr__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 14 items missing

Usage

compute_mh_p_asr__synd__rule_sum(
  data,
  name = "mh_p_asr__synd__rule_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__rule_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__rule_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__rule_sum", vars_mh_p_asr__synd__rule))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Somatic complaints): Sum"

Description

Computes the summary score mh_p_asr__synd__som_sum Adult Self Report [Parent] (Syndrome Scale - Somatic complaints): Sum

  • Summarized variables:

    • mh_p_asr__som_001

    • mh_p_asr__som__dep_001

    • mh_p_asr__som__dep_002

    • mh_p_asr__som__somat_001

    • mh_p_asr__som__somat_002

    • mh_p_asr__som__somat_003

    • mh_p_asr__som__somat_004

    • mh_p_asr__som__somat_005

    • mh_p_asr__som__somat_006

    • mh_p_asr__som__somat_007

    • mh_p_asr__som__somat_008

    • mh_p_asr__som__somat_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 12 items missing

Usage

compute_mh_p_asr__synd__som_sum(
  data,
  name = "mh_p_asr__synd__som_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__som_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__som_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__som_sum", vars_mh_p_asr__synd__som))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Thought problems): Sum"

Description

Computes the summary score mh_p_asr__synd__tho_sum Adult Self Report [Parent] (Syndrome Scale - Thought problems): Sum

  • Summarized variables:

    • mh_p_asr__tho_001

    • mh_p_asr__tho_002

    • mh_p_asr__tho_003

    • mh_p_asr__tho_004

    • mh_p_asr__tho_005

    • mh_p_asr__tho_006

    • mh_p_asr__tho_007

    • mh_p_asr__tho_008

    • mh_p_asr__tho__hypimp_001

    • mh_p_asr__tho__dep_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 10 items missing

Usage

compute_mh_p_asr__synd__tho_sum(
  data,
  name = "mh_p_asr__synd__tho_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__tho_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__tho_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__tho_sum", vars_mh_p_asr__synd__tho))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Withdrawn): Sum"

Description

Computes the summary score mh_p_asr__synd__wthdr_sum Adult Self Report [Parent] (Syndrome Scale - Withdrawn): Sum

  • Summarized variables:

    • mh_p_asr__wthdr_001

    • mh_p_asr__wthdr_002

    • mh_p_asr__wthdr_003

    • mh_p_asr__wthdr_004

    • mh_p_asr__wthdr__avoid_001

    • mh_p_asr__wthdr__avoid_002

    • mh_p_asr__wthdr__avoid_003

    • mh_p_asr__wthdr__avoid_004

    • mh_p_asr__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_asr__synd__wthdr_sum(
  data,
  name = "mh_p_asr__synd__wthdr_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr__synd__wthdr_nm()

Examples

## Not run: 
compute_mh_p_asr__synd__wthdr_sum(data) |>
  select(
    any_of(c("mh_p_asr__synd__wthdr_sum", vars_mh_p_asr__synd__wthdr))
  )

## End(Not run)

Compute all summary scores for mh_p_asr.

Description

This function computes all summary scores for the mh_p_asr form. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_asr_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_p_asr_all(data)

## End(Not run)

Compute "Adult Self Report [Parent]: Sum"

Description

Computes the summary score mh_p_asr_sum Adult Self Report [Parent]: Sum

  • Summarized variables:

    • mh_p_asr__aggr_001

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_008

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__antsoc_001

    • mh_p_asr__rule_001

    • mh_p_asr__rule_003

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__tho_001

    • mh_p_asr__tho_002

    • mh_p_asr__tho_005

    • mh_p_asr__tho_006

    • mh_p_asr__tho_007

    • mh_p_asr__tho__dep_001

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__othpr__hypimp_002

    • mh_p_asr__othpr__hypimp_003

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__tho__hypimp_001

    • mh_p_asr__attn__inatt_001

    • mh_p_asr__attn__inatt_003

    • mh_p_asr__attn__inatt_004

    • mh_p_asr__attn__inatt_005

    • mh_p_asr__attn__inatt_006

    • mh_p_asr__attn__inatt_007

    • mh_p_asr__aggr__antsoc_001

    • mh_p_asr__aggr__antsoc_002

    • mh_p_asr__aggr__antsoc_004

    • mh_p_asr__aggr__antsoc_005

    • mh_p_asr__aggr__antsoc_007

    • mh_p_asr__attn__antsoc_001

    • mh_p_asr__othpr__antsoc_002

    • mh_p_asr__rule__antsoc_001

    • mh_p_asr__rule__antsoc_002

    • mh_p_asr__rule__antsoc_003

    • mh_p_asr__rule__antsoc_004

    • mh_p_asr__rule__antsoc_005

    • mh_p_asr__rule__antsoc_006

    • mh_p_asr__rule__antsoc_008

    • mh_p_asr__rule__antsoc_009

    • mh_p_asr__anxdep__anx_001

    • mh_p_asr__anxdep__anx_002

    • mh_p_asr__anxdep__anx_003

    • mh_p_asr__anxdep__anx_004

    • mh_p_asr__othpr__anx_001

    • mh_p_asr__othpr__anx_002

    • mh_p_asr__anxdep__avoid_001

    • mh_p_asr__anxdep__avoid_002

    • mh_p_asr__othpr__avoid_001

    • mh_p_asr__wthdr__avoid_001

    • mh_p_asr__wthdr__avoid_002

    • mh_p_asr__wthdr__avoid_003

    • mh_p_asr__wthdr__avoid_004

    • mh_p_asr__anxdep__dep_002

    • mh_p_asr__anxdep__dep_003

    • mh_p_asr__anxdep__dep_006

    • mh_p_asr__attn__dep_001

    • mh_p_asr__attn__dep_002

    • mh_p_asr__othpr__dep_001

    • mh_p_asr__othpr__dep_002

    • mh_p_asr__som__dep_001

    • mh_p_asr__som__dep_002

    • mh_p_asr__wthdr__dep_001

    • mh_p_asr__som__somat_001

    • mh_p_asr__som__somat_002

    • mh_p_asr__som__somat_003

    • mh_p_asr__som__somat_004

    • mh_p_asr__som__somat_005

    • mh_p_asr__som__somat_006

    • mh_p_asr__som__somat_007

    • mh_p_asr__som__somat_008

    • mh_p_asr__som__somat_009

    • mh_p_asr__aggr_002

    • mh_p_asr__aggr_003

    • mh_p_asr__aggr_004

    • mh_p_asr__aggr_005

    • mh_p_asr__aggr_006

    • mh_p_asr__anxdep_001

    • mh_p_asr__anxdep_002

    • mh_p_asr__anxdep_003

    • mh_p_asr__anxdep_004

    • mh_p_asr__anxdep_005

    • mh_p_asr__anxdep_006

    • mh_p_asr__attn_001

    • mh_p_asr__attn_002

    • mh_p_asr__attn_003

    • mh_p_asr__attn_004

    • mh_p_asr__attn_005

    • mh_p_asr__intru_001

    • mh_p_asr__intru_002

    • mh_p_asr__intru_003

    • mh_p_asr__intru_004

    • mh_p_asr__intru_005

    • mh_p_asr__intru_006

    • mh_p_asr__rule_002

    • mh_p_asr__rule_004

    • mh_p_asr__som_001

    • mh_p_asr__wthdr_001

    • mh_p_asr__wthdr_002

    • mh_p_asr__wthdr_003

    • mh_p_asr__wthdr_004

    • mh_p_asr__othpr_001

    • mh_p_asr__othpr_002

    • mh_p_asr__othpr_003

    • mh_p_asr__othpr_004

    • mh_p_asr__othpr_005

    • mh_p_asr__othpr_006

    • mh_p_asr__othpr_007

    • mh_p_asr__othpr_008

    • mh_p_asr__othpr_009

    • mh_p_asr__othpr_010

    • mh_p_asr__othpr_011

    • mh_p_asr__tho_003

    • mh_p_asr__tho_004

    • mh_p_asr__tho_008

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 8 of 120 items missing

Usage

compute_mh_p_asr_sum(
  data,
  name = "mh_p_asr_sum",
  max_na = 8,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_asr_nm()

Examples

## Not run: 
compute_mh_p_asr_sum(data) |>
  select(
    any_of(c("mh_p_asr_sum", vars_mh_p_asr))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): Sum"

Description

Computes the summary score mh_p_cbcl__dsm__adhd_sum Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): Sum

  • Summarized variables:

    • mh_p_cbcl__attn__adhd_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__attn__adhd_003

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__attn__adhd_004

    • mh_p_cbcl__attn__adhd_005

    • mh_p_cbcl__othpr__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_cbcl__dsm__adhd_sum(
  data,
  name = "mh_p_cbcl__dsm__adhd_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__adhd_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__adhd_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__adhd_sum", vars_mh_p_cbcl__dsm__adhd))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): T-score"

Description

Computes the summary score mh_p_cbcl__dsm__adhd_tscore Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): T-score

  • Summarized variables:

    • mh_p_cbcl__attn__adhd_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__attn__adhd_003

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__attn__adhd_004

    • mh_p_cbcl__attn__adhd_005

    • mh_p_cbcl__othpr__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_cbcl__dsm__adhd_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__dsm__adhd_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__adhd_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__adhd_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__adhd_tscore", vars_mh_p_cbcl__dsm__adhd))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety): Sum"

Description

Computes the summary score mh_p_cbcl__dsm__anx_sum Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety): Sum

  • Summarized variables:

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__anx_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_cbcl__dsm__anx_sum(
  data,
  name = "mh_p_cbcl__dsm__anx_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__anx_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__anx_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__anx_sum", vars_mh_p_cbcl__dsm__anx))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety): T-score"

Description

Computes the summary score mh_p_cbcl__dsm__anx_tscore Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety): T-score

  • Summarized variables:

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__anx_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 9 items missing

Usage

compute_mh_p_cbcl__dsm__anx_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__dsm__anx_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__anx_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__anx_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__anx_tscore", vars_mh_p_cbcl__dsm__anx))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Conduct problems): Sum"

Description

Computes the summary score mh_p_cbcl__dsm__cond_sum Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Conduct problems): Sum

  • Summarized variables:

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__othpr__cond_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__aggr__cond_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 17 items missing

Usage

compute_mh_p_cbcl__dsm__cond_sum(
  data,
  name = "mh_p_cbcl__dsm__cond_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__cond_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__cond_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__cond_sum", vars_mh_p_cbcl__dsm__cond))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Conduct problems): T-score"

Description

Computes the summary score mh_p_cbcl__dsm__cond_tscore Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Conduct problems): T-score

  • Summarized variables:

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__othpr__cond_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__aggr__cond_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 17 items missing

Usage

compute_mh_p_cbcl__dsm__cond_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__dsm__cond_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__cond_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__cond_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__cond_tscore", vars_mh_p_cbcl__dsm__cond))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): Sum"

Description

Computes the summary score mh_p_cbcl__dsm__dep_sum Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): Sum

  • Summarized variables:

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__tho__dep_003

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__tho__dep_001

    • mh_p_cbcl__othpr__dep_001

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__tho__dep_002

    • mh_p_cbcl__othpr__dep_002

    • mh_p_cbcl__anxdep__dep_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 13 items missing

Usage

compute_mh_p_cbcl__dsm__dep_sum(
  data,
  name = "mh_p_cbcl__dsm__dep_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__dep_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__dep_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__dep_sum", vars_mh_p_cbcl__dsm__dep))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): T-score"

Description

Computes the summary score mh_p_cbcl__dsm__dep_tscore Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): T-score

  • Summarized variables:

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__tho__dep_003

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__tho__dep_001

    • mh_p_cbcl__othpr__dep_001

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__tho__dep_002

    • mh_p_cbcl__othpr__dep_002

    • mh_p_cbcl__anxdep__dep_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 13 items missing

Usage

compute_mh_p_cbcl__dsm__dep_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__dsm__dep_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__dep_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__dep_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__dep_tscore", vars_mh_p_cbcl__dsm__dep))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Oppositional Defiant problems): Sum"

Description

Computes the summary score mh_p_cbcl__dsm__opp_sum Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Oppositional Defiant problems): Sum

  • Summarized variables:

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr__opp_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 5 items missing

Usage

compute_mh_p_cbcl__dsm__opp_sum(
  data,
  name = "mh_p_cbcl__dsm__opp_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__opp_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__opp_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__opp_sum", vars_mh_p_cbcl__dsm__opp))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Oppositional Defiant problems): T-score"

Description

Computes the summary score mh_p_cbcl__dsm__opp_tscore Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Oppositional Defiant problems): T-score

  • Summarized variables:

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr__opp_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 5 items missing

Usage

compute_mh_p_cbcl__dsm__opp_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__dsm__opp_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__opp_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__opp_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__opp_tscore", vars_mh_p_cbcl__dsm__opp))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): Sum"

Description

Computes the summary score mh_p_cbcl__dsm__somat_sum Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): Sum

  • Summarized variables:

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_cbcl__dsm__somat_sum(
  data,
  name = "mh_p_cbcl__dsm__somat_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__somat_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__somat_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__somat_sum", vars_mh_p_cbcl__dsm__somat))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): T-score"

Description

Computes the summary score mh_p_cbcl__dsm__somat_tscore Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): T-score

  • Summarized variables:

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_p_cbcl__dsm__somat_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__dsm__somat_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__dsm__somat_nm()

Examples

## Not run: 
compute_mh_p_cbcl__dsm__somat_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__somat_tscore", vars_mh_p_cbcl__dsm__somat))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Obsessive-Compulsive Problems): Sum"

Description

Computes the summary score mh_p_cbcl__ocd_sum Child Behavior Checklist [Parent] (Obsessive-Compulsive Problems): Sum

  • Summarized variables:

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__tho_007

    • mh_p_cbcl__tho_010

    • mh_p_cbcl__tho_011

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 8 items missing

Usage

compute_mh_p_cbcl__ocd_sum(
  data,
  name = "mh_p_cbcl__ocd_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__ocd_nm()

Examples

## Not run: 
compute_mh_p_cbcl__ocd_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__ocd_sum", vars_mh_p_cbcl__ocd))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Obsessive-Compulsive Problems): T-score"

Description

Computes the summary score mh_p_cbcl__ocd_tscore Child Behavior Checklist [Parent] (Obsessive-Compulsive Problems): T-score

  • Summarized variables:

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__tho_007

    • mh_p_cbcl__tho_010

    • mh_p_cbcl__tho_011

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 8 items missing

Usage

compute_mh_p_cbcl__ocd_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__ocd_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__ocd_nm()

Examples

## Not run: 
compute_mh_p_cbcl__ocd_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__ocd_tscore", vars_mh_p_cbcl__ocd))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Sluggish Cognitive Tempo): Sum"

Description

Computes the summary score mh_p_cbcl__sct_sum Child Behavior Checklist [Parent] (Sluggish Cognitive Tempo): Sum

  • Summarized variables:

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__attn_002

    • mh_p_cbcl__attn_003

    • mh_p_cbcl__attn_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 4 items missing

Usage

compute_mh_p_cbcl__sct_sum(
  data,
  name = "mh_p_cbcl__sct_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__sct_nm()

Examples

## Not run: 
compute_mh_p_cbcl__sct_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__sct_sum", vars_mh_p_cbcl__sct))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Sluggish Cognitive Tempo): T-score"

Description

Computes the summary score mh_p_cbcl__sct_tscore Child Behavior Checklist [Parent] (Sluggish Cognitive Tempo): T-score

  • Summarized variables:

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__attn_002

    • mh_p_cbcl__attn_003

    • mh_p_cbcl__attn_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 4 items missing

Usage

compute_mh_p_cbcl__sct_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__sct_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__sct_nm()

Examples

## Not run: 
compute_mh_p_cbcl__sct_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__sct_tscore", vars_mh_p_cbcl__sct))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Stress): Sum"

Description

Computes the summary score mh_p_cbcl__strs_sum Child Behavior Checklist [Parent] (Stress): Sum

  • Summarized variables:

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__soc_004

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__aggr_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 14 items missing

Usage

compute_mh_p_cbcl__strs_sum(
  data,
  name = "mh_p_cbcl__strs_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__strs_nm()

Examples

## Not run: 
compute_mh_p_cbcl__strs_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__strs_sum", vars_mh_p_cbcl__strs))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Stress): T-score"

Description

Computes the summary score mh_p_cbcl__strs_tscore Child Behavior Checklist [Parent] (Stress): T-score

  • Summarized variables:

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__soc_004

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__aggr_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 14 items missing

Usage

compute_mh_p_cbcl__strs_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__strs_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__strs_nm()

Examples

## Not run: 
compute_mh_p_cbcl__strs_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__strs_tscore", vars_mh_p_cbcl__strs))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): Sum"

Description

Computes the summary score mh_p_cbcl__synd__aggr_sum Child Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): Sum

  • Summarized variables:

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr_001

    • mh_p_cbcl__aggr_002

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__aggr_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr_004

    • mh_p_cbcl__aggr_005

    • mh_p_cbcl__aggr_006

    • mh_p_cbcl__aggr_007

    • mh_p_cbcl__aggr__opp_005

    • mh_p_cbcl__aggr__cond_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 18 items missing

Usage

compute_mh_p_cbcl__synd__aggr_sum(
  data,
  name = "mh_p_cbcl__synd__aggr_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__aggr_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__aggr_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__aggr_sum", vars_mh_p_cbcl__synd__aggr))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): T-score"

Description

Computes the summary score mh_p_cbcl__synd__aggr_tscore Child Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): T-score

  • Summarized variables:

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr_001

    • mh_p_cbcl__aggr_002

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__aggr_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr_004

    • mh_p_cbcl__aggr_005

    • mh_p_cbcl__aggr_006

    • mh_p_cbcl__aggr_007

    • mh_p_cbcl__aggr__opp_005

    • mh_p_cbcl__aggr__cond_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 18 items missing

Usage

compute_mh_p_cbcl__synd__aggr_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__aggr_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__aggr_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__aggr_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__aggr_tscore", vars_mh_p_cbcl__synd__aggr))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): Sum"

Description

Computes the summary score mh_p_cbcl__synd__anxdep_sum Child Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): Sum

  • Summarized variables:

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__anxdep_002

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__anxdep__anx_006

    • mh_p_cbcl__anxdep__dep_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 13 items missing

Usage

compute_mh_p_cbcl__synd__anxdep_sum(
  data,
  name = "mh_p_cbcl__synd__anxdep_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__anxdep_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__anxdep_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__anxdep_sum", vars_mh_p_cbcl__synd__anxdep))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): T-score"

Description

Computes the summary score mh_p_cbcl__synd__anxdep_tscore Child Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): T-score

  • Summarized variables:

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__anxdep_002

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__anxdep__anx_006

    • mh_p_cbcl__anxdep__dep_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 13 items missing

Usage

compute_mh_p_cbcl__synd__anxdep_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__anxdep_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__anxdep_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__anxdep_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__anxdep_tscore", vars_mh_p_cbcl__synd__anxdep))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Attention problems): Sum"

Description

Computes the summary score mh_p_cbcl__synd__attn_sum Child Behavior Checklist [Parent] (Syndrome Scale - Attention problems): Sum

  • Summarized variables:

    • mh_p_cbcl__attn_001

    • mh_p_cbcl__attn__adhd_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__attn__adhd_003

    • mh_p_cbcl__attn_002

    • mh_p_cbcl__attn_003

    • mh_p_cbcl__attn__adhd_004

    • mh_p_cbcl__attn_004

    • mh_p_cbcl__attn__adhd_005

    • mh_p_cbcl__attn_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 10 items missing

Usage

compute_mh_p_cbcl__synd__attn_sum(
  data,
  name = "mh_p_cbcl__synd__attn_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__attn_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__attn_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__attn_sum", vars_mh_p_cbcl__synd__attn))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Attention problems): T-score"

Description

Computes the summary score mh_p_cbcl__synd__attn_tscore Child Behavior Checklist [Parent] (Syndrome Scale - Attention problems): T-score

  • Summarized variables:

    • mh_p_cbcl__attn_001

    • mh_p_cbcl__attn__adhd_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__attn__adhd_003

    • mh_p_cbcl__attn_002

    • mh_p_cbcl__attn_003

    • mh_p_cbcl__attn__adhd_004

    • mh_p_cbcl__attn_004

    • mh_p_cbcl__attn__adhd_005

    • mh_p_cbcl__attn_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 10 items missing

Usage

compute_mh_p_cbcl__synd__attn_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__attn_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__attn_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__attn_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__attn_tscore", vars_mh_p_cbcl__synd__attn))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Externalizing): Sum"

Description

Computes the summary score mh_p_cbcl__synd__ext_sum Child Behavior Checklist [Parent] (Syndrome Scale - Externalizing): Sum

  • Summarized variables:

    • mh_p_cbcl__rule_001

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule_006

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__rule_002

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule_003

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__rule_004

    • mh_p_cbcl__rule_005

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr_001

    • mh_p_cbcl__aggr_002

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__aggr_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr_004

    • mh_p_cbcl__aggr_005

    • mh_p_cbcl__aggr_006

    • mh_p_cbcl__aggr_007

    • mh_p_cbcl__aggr__opp_005

    • mh_p_cbcl__aggr__cond_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 35 items missing

Usage

compute_mh_p_cbcl__synd__ext_sum(
  data,
  name = "mh_p_cbcl__synd__ext_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__ext_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__ext_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__ext_sum", vars_mh_p_cbcl__synd__ext))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Externalizing): T-score"

Description

Computes the summary score mh_p_cbcl__synd__ext_tscore Child Behavior Checklist [Parent] (Syndrome Scale - Externalizing): T-score

  • Summarized variables:

    • mh_p_cbcl__rule_001

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule_006

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__rule_002

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule_003

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__rule_004

    • mh_p_cbcl__rule_005

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr_001

    • mh_p_cbcl__aggr_002

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__aggr_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr_004

    • mh_p_cbcl__aggr_005

    • mh_p_cbcl__aggr_006

    • mh_p_cbcl__aggr_007

    • mh_p_cbcl__aggr__opp_005

    • mh_p_cbcl__aggr__cond_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 35 items missing

Usage

compute_mh_p_cbcl__synd__ext_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__ext_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__ext_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__ext_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__ext_tscore", vars_mh_p_cbcl__synd__ext))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Internalizing): Sum"

Description

Computes the summary score mh_p_cbcl__synd__int_sum Child Behavior Checklist [Parent] (Syndrome Scale - Internalizing): Sum

  • Summarized variables:

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__anxdep_002

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__anxdep__anx_006

    • mh_p_cbcl__anxdep__dep_004

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__wthdep_001

    • mh_p_cbcl__wthdep_002

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__wthdep_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__som_001

    • mh_p_cbcl__som_002

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 32 items missing

Usage

compute_mh_p_cbcl__synd__int_sum(
  data,
  name = "mh_p_cbcl__synd__int_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__int_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__int_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__int_sum", vars_mh_p_cbcl__synd__int))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Internalizing): T-score"

Description

Computes the summary score mh_p_cbcl__synd__int_tscore Child Behavior Checklist [Parent] (Syndrome Scale - Internalizing): T-score

  • Summarized variables:

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__anxdep_002

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__anxdep__anx_006

    • mh_p_cbcl__anxdep__dep_004

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__wthdep_001

    • mh_p_cbcl__wthdep_002

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__wthdep_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__som_001

    • mh_p_cbcl__som_002

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 32 items missing

Usage

compute_mh_p_cbcl__synd__int_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__int_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__int_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__int_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__int_tscore", vars_mh_p_cbcl__synd__int))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Other problems): Sum"

Description

Computes the summary score mh_p_cbcl__synd__othpr_sum Child Behavior Checklist [Parent] (Syndrome Scale - Other problems): Sum

  • Summarized variables:

    • mh_p_cbcl__othpr_001

    • mh_p_cbcl__othpr_002

    • mh_p_cbcl__othpr_009

    • mh_p_cbcl__othpr_010

    • mh_p_cbcl__othpr_011

    • mh_p_cbcl__othpr_012

    • mh_p_cbcl__othpr__cond_001

    • mh_p_cbcl__othpr__dep_001

    • mh_p_cbcl__othpr_003

    • mh_p_cbcl__othpr_004

    • mh_p_cbcl__othpr_005

    • mh_p_cbcl__othpr_006

    • mh_p_cbcl__othpr_007

    • mh_p_cbcl__othpr__dep_002

    • mh_p_cbcl__othpr__adhd_001

    • mh_p_cbcl__othpr_008

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 16 items missing

Usage

compute_mh_p_cbcl__synd__othpr_sum(
  data,
  name = "mh_p_cbcl__synd__othpr_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__othpr_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__othpr_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__othpr_sum", vars_mh_p_cbcl__synd__othpr))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): Sum"

Description

Computes the summary score mh_p_cbcl__synd__rule_sum Child Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): Sum

  • Summarized variables:

    • mh_p_cbcl__rule_001

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule_006

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__rule_002

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule_003

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__rule_004

    • mh_p_cbcl__rule_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 17 items missing

Usage

compute_mh_p_cbcl__synd__rule_sum(
  data,
  name = "mh_p_cbcl__synd__rule_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__rule_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__rule_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__rule_sum", vars_mh_p_cbcl__synd__rule))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): T-score"

Description

Computes the summary score mh_p_cbcl__synd__rule_tscore Child Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): T-score

  • Summarized variables:

    • mh_p_cbcl__rule_001

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule_006

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__rule_002

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule_003

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__rule_004

    • mh_p_cbcl__rule_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 17 items missing

Usage

compute_mh_p_cbcl__synd__rule_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__rule_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__rule_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__rule_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__rule_tscore", vars_mh_p_cbcl__synd__rule))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale -Social): Sum"

Description

Computes the summary score mh_p_cbcl__synd__soc_sum Child Behavior Checklist [Parent] (Syndrome Scale -Social): Sum

  • Summarized variables:

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__soc_001

    • mh_p_cbcl__soc_002

    • mh_p_cbcl__soc_003

    • mh_p_cbcl__soc_004

    • mh_p_cbcl__soc_005

    • mh_p_cbcl__soc_006

    • mh_p_cbcl__soc_007

    • mh_p_cbcl__soc_008

    • mh_p_cbcl__soc_009

    • mh_p_cbcl__soc_010

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 11 items missing

Usage

compute_mh_p_cbcl__synd__soc_sum(
  data,
  name = "mh_p_cbcl__synd__soc_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__soc_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__soc_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__soc_sum", vars_mh_p_cbcl__synd__soc))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale -Social): T-score"

Description

Computes the summary score mh_p_cbcl__synd__soc_tscore Child Behavior Checklist [Parent] (Syndrome Scale -Social): T-score

  • Summarized variables:

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__soc_001

    • mh_p_cbcl__soc_002

    • mh_p_cbcl__soc_003

    • mh_p_cbcl__soc_004

    • mh_p_cbcl__soc_005

    • mh_p_cbcl__soc_006

    • mh_p_cbcl__soc_007

    • mh_p_cbcl__soc_008

    • mh_p_cbcl__soc_009

    • mh_p_cbcl__soc_010

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 11 items missing

Usage

compute_mh_p_cbcl__synd__soc_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__soc_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__soc_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__soc_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__soc_tscore", vars_mh_p_cbcl__synd__soc))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): Sum"

Description

Computes the summary score mh_p_cbcl__synd__som_sum Child Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): Sum

  • Summarized variables:

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__som_001

    • mh_p_cbcl__som_002

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 11 items missing

Usage

compute_mh_p_cbcl__synd__som_sum(
  data,
  name = "mh_p_cbcl__synd__som_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__som_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__som_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__som_sum", vars_mh_p_cbcl__synd__som))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): T-score"

Description

Computes the summary score mh_p_cbcl__synd__som_tscore Child Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): T-score

  • Summarized variables:

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__som_001

    • mh_p_cbcl__som_002

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 11 items missing

Usage

compute_mh_p_cbcl__synd__som_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__som_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__som_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__som_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__som_tscore", vars_mh_p_cbcl__synd__som))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Thought problems): Sum"

Description

Computes the summary score mh_p_cbcl__synd__tho_sum Child Behavior Checklist [Parent] (Syndrome Scale - Thought problems): Sum

  • Summarized variables:

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__tho__dep_003

    • mh_p_cbcl__tho__dep_001

    • mh_p_cbcl__tho_002

    • mh_p_cbcl__tho_003

    • mh_p_cbcl__tho_004

    • mh_p_cbcl__tho_005

    • mh_p_cbcl__tho_006

    • mh_p_cbcl__tho_007

    • mh_p_cbcl__tho_008

    • mh_p_cbcl__tho__dep_002

    • mh_p_cbcl__tho_009

    • mh_p_cbcl__tho_010

    • mh_p_cbcl__tho_011

    • mh_p_cbcl__tho_012

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 15 items missing

Usage

compute_mh_p_cbcl__synd__tho_sum(
  data,
  name = "mh_p_cbcl__synd__tho_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__tho_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__tho_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__tho_sum", vars_mh_p_cbcl__synd__tho))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Thought problems): T-score"

Description

Computes the summary score mh_p_cbcl__synd__tho_tscore Child Behavior Checklist [Parent] (Syndrome Scale - Thought problems): T-score

  • Summarized variables:

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__tho__dep_003

    • mh_p_cbcl__tho__dep_001

    • mh_p_cbcl__tho_002

    • mh_p_cbcl__tho_003

    • mh_p_cbcl__tho_004

    • mh_p_cbcl__tho_005

    • mh_p_cbcl__tho_006

    • mh_p_cbcl__tho_007

    • mh_p_cbcl__tho_008

    • mh_p_cbcl__tho__dep_002

    • mh_p_cbcl__tho_009

    • mh_p_cbcl__tho_010

    • mh_p_cbcl__tho_011

    • mh_p_cbcl__tho_012

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 15 items missing

Usage

compute_mh_p_cbcl__synd__tho_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__tho_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__tho_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__tho_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__tho_tscore", vars_mh_p_cbcl__synd__tho))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Withdrawn/Depressed): Sum"

Description

Computes the summary score mh_p_cbcl__synd__wthdep_sum Child Behavior Checklist [Parent] (Syndrome Scale - Withdrawn/Depressed): Sum

  • Summarized variables:

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__wthdep_001

    • mh_p_cbcl__wthdep_002

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__wthdep_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 8 items missing

Usage

compute_mh_p_cbcl__synd__wthdep_sum(
  data,
  name = "mh_p_cbcl__synd__wthdep_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__wthdep_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__wthdep_sum(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__wthdep_sum", vars_mh_p_cbcl__synd__wthdep))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Withdrawn/Depressed): T-score"

Description

Computes the summary score mh_p_cbcl__synd__wthdep_tscore Child Behavior Checklist [Parent] (Syndrome Scale - Withdrawn/Depressed): T-score

  • Summarized variables:

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__wthdep_001

    • mh_p_cbcl__wthdep_002

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__wthdep_004

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 8 items missing

Usage

compute_mh_p_cbcl__synd__wthdep_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl__synd__wthdep_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl__synd__wthdep_nm()

Examples

## Not run: 
compute_mh_p_cbcl__synd__wthdep_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__wthdep_tscore", vars_mh_p_cbcl__synd__wthdep))
  )

## End(Not run)

Compute all summary scores for mh_p_cbcl.

Description

This function computes all summary scores for the mh_p_cbcl form. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_cbcl_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_p_cbcl_all(data)

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale): Sum"

Description

Computes the summary score mh_p_cbcl_sum Child Behavior Checklist [Parent] (Syndrome Scale): Sum

  • Summarized variables:

    • mh_p_cbcl__attn__adhd_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__attn__adhd_003

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__attn__adhd_004

    • mh_p_cbcl__attn__adhd_005

    • mh_p_cbcl__othpr__adhd_001

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__anx_006

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__othpr__cond_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__aggr__cond_005

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__tho__dep_003

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__tho__dep_001

    • mh_p_cbcl__othpr__dep_001

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__tho__dep_002

    • mh_p_cbcl__othpr__dep_002

    • mh_p_cbcl__anxdep__dep_004

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr__opp_005

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__tho_007

    • mh_p_cbcl__tho_010

    • mh_p_cbcl__tho_011

    • mh_p_cbcl__attn_002

    • mh_p_cbcl__attn_003

    • mh_p_cbcl__attn_005

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__soc_004

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__aggr_004

    • mh_p_cbcl__aggr_001

    • mh_p_cbcl__aggr_002

    • mh_p_cbcl__aggr_003

    • mh_p_cbcl__aggr_005

    • mh_p_cbcl__aggr_006

    • mh_p_cbcl__aggr_007

    • mh_p_cbcl__anxdep_002

    • mh_p_cbcl__attn_001

    • mh_p_cbcl__attn_004

    • mh_p_cbcl__rule_001

    • mh_p_cbcl__rule_006

    • mh_p_cbcl__rule_002

    • mh_p_cbcl__rule_003

    • mh_p_cbcl__rule_004

    • mh_p_cbcl__rule_005

    • mh_p_cbcl__wthdep_001

    • mh_p_cbcl__wthdep_002

    • mh_p_cbcl__wthdep_004

    • mh_p_cbcl__som_001

    • mh_p_cbcl__som_002

    • mh_p_cbcl__othpr_001

    • mh_p_cbcl__othpr_002

    • mh_p_cbcl__othpr_009

    • mh_p_cbcl__othpr_010

    • mh_p_cbcl__othpr_011

    • mh_p_cbcl__othpr_012

    • mh_p_cbcl__othpr_003

    • mh_p_cbcl__othpr_004

    • mh_p_cbcl__othpr_005

    • mh_p_cbcl__othpr_006

    • mh_p_cbcl__othpr_007

    • mh_p_cbcl__othpr_008

    • mh_p_cbcl__soc_001

    • mh_p_cbcl__soc_002

    • mh_p_cbcl__soc_003

    • mh_p_cbcl__soc_005

    • mh_p_cbcl__soc_006

    • mh_p_cbcl__soc_007

    • mh_p_cbcl__soc_008

    • mh_p_cbcl__soc_009

    • mh_p_cbcl__soc_010

    • mh_p_cbcl__tho_002

    • mh_p_cbcl__tho_003

    • mh_p_cbcl__tho_004

    • mh_p_cbcl__tho_005

    • mh_p_cbcl__tho_006

    • mh_p_cbcl__tho_008

    • mh_p_cbcl__tho_009

    • mh_p_cbcl__tho_012

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 8 of 119 items missing

Usage

compute_mh_p_cbcl_sum(
  data,
  name = "mh_p_cbcl_sum",
  max_na = 8,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl_nm()

Examples

## Not run: 
compute_mh_p_cbcl_sum(data) |>
  select(
    any_of(c("mh_p_cbcl_sum", vars_mh_p_cbcl))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale): T-score"

Description

Computes the summary score mh_p_cbcl_tscore Child Behavior Checklist [Parent] (Syndrome Scale): T-score

  • Summarized variables:

    • mh_p_cbcl__attn__adhd_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__attn__adhd_003

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__attn__adhd_004

    • mh_p_cbcl__attn__adhd_005

    • mh_p_cbcl__othpr__adhd_001

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__anx_006

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__othpr__cond_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__aggr__cond_005

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__tho__dep_003

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__tho__dep_001

    • mh_p_cbcl__othpr__dep_001

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__tho__dep_002

    • mh_p_cbcl__othpr__dep_002

    • mh_p_cbcl__anxdep__dep_004

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr__opp_005

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__tho_007

    • mh_p_cbcl__tho_010

    • mh_p_cbcl__tho_011

    • mh_p_cbcl__attn_002

    • mh_p_cbcl__attn_003

    • mh_p_cbcl__attn_005

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__soc_004

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__aggr_004

    • mh_p_cbcl__aggr_001

    • mh_p_cbcl__aggr_002

    • mh_p_cbcl__aggr_003

    • mh_p_cbcl__aggr_005

    • mh_p_cbcl__aggr_006

    • mh_p_cbcl__aggr_007

    • mh_p_cbcl__anxdep_002

    • mh_p_cbcl__attn_001

    • mh_p_cbcl__attn_004

    • mh_p_cbcl__rule_001

    • mh_p_cbcl__rule_006

    • mh_p_cbcl__rule_002

    • mh_p_cbcl__rule_003

    • mh_p_cbcl__rule_004

    • mh_p_cbcl__rule_005

    • mh_p_cbcl__wthdep_001

    • mh_p_cbcl__wthdep_002

    • mh_p_cbcl__wthdep_004

    • mh_p_cbcl__som_001

    • mh_p_cbcl__som_002

    • mh_p_cbcl__othpr_001

    • mh_p_cbcl__othpr_002

    • mh_p_cbcl__othpr_009

    • mh_p_cbcl__othpr_010

    • mh_p_cbcl__othpr_011

    • mh_p_cbcl__othpr_012

    • mh_p_cbcl__othpr_003

    • mh_p_cbcl__othpr_004

    • mh_p_cbcl__othpr_005

    • mh_p_cbcl__othpr_006

    • mh_p_cbcl__othpr_007

    • mh_p_cbcl__othpr_008

    • mh_p_cbcl__soc_001

    • mh_p_cbcl__soc_002

    • mh_p_cbcl__soc_003

    • mh_p_cbcl__soc_005

    • mh_p_cbcl__soc_006

    • mh_p_cbcl__soc_007

    • mh_p_cbcl__soc_008

    • mh_p_cbcl__soc_009

    • mh_p_cbcl__soc_010

    • mh_p_cbcl__tho_002

    • mh_p_cbcl__tho_003

    • mh_p_cbcl__tho_004

    • mh_p_cbcl__tho_005

    • mh_p_cbcl__tho_006

    • mh_p_cbcl__tho_008

    • mh_p_cbcl__tho_009

    • mh_p_cbcl__tho_012

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 8 of 119 items missing

Usage

compute_mh_p_cbcl_tscore(
  data,
  data_norm = NULL,
  name = "mh_p_cbcl_tscore",
  col_age = "mh_p_cbcl_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 8,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_p_cbcl_nm()

Examples

## Not run: 
compute_mh_p_cbcl_tscore(data) |>
  select(
    any_of(c("mh_p_cbcl_tscore", vars_mh_p_cbcl))
  )

## End(Not run)

Compute "Difficulties in Emotion Regulation Scale [Parent] (Attuned): Number missing"

Description

Computes the summary score mh_p_ders__attun_nm Difficulties in Emotion Regulation Scale [Parent] (Attuned): Number missing

  • Summarized variables:

    • mh_p_ders__attun_001

    • mh_p_ders__attun_002

    • mh_p_ders__attun_003

    • mh_p_ders__attun_004

    • mh_p_ders__attun_005

    • mh_p_ders__attun_006

  • Excluded values:

    • 999

    • 777

Usage

compute_mh_p_ders__attun_nm(
  data,
  name = "mh_p_ders__attun_nm",
  exclude = c("999", "777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Value

tbl. see combine.

See Also

compute_mh_p_ders__attun_mean()

Examples

## Not run: 
compute_mh_p_ders__attun_nm(data) |>
  select(
    any_of(c("mh_p_ders__attun_nm", vars_mh_p_ders__attun))
  )

## End(Not run)

Compute "Difficulties in Emotion Regulation Scale [Parent] (Catastrophize): Number missing"

Description

Computes the summary score mh_p_ders__catast_nm Difficulties in Emotion Regulation Scale [Parent] (Catastrophize): Number missing

  • Summarized variables:

    • mh_p_ders__catast_001

    • mh_p_ders__catast_002

    • mh_p_ders__catast_003

    • mh_p_ders__catast_004

    • mh_p_ders__catast_005

    • mh_p_ders__catast_006

    • mh_p_ders__catast_007

    • mh_p_ders__catast_008

    • mh_p_ders__catast_009

    • mh_p_ders__catast_010

    • mh_p_ders__catast_011

    • mh_p_ders__catast_012

  • Excluded values:

    • 999

    • 777

Usage

compute_mh_p_ders__catast_nm(
  data,
  name = "mh_p_ders__catast_nm",
  exclude = c("999", "777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Value

tbl. see combine.

See Also

compute_mh_p_ders__catast_mean()

Examples

## Not run: 
compute_mh_p_ders__catast_nm(data) |>
  select(
    any_of(c("mh_p_ders__catast_nm", vars_mh_p_ders__catast))
  )

## End(Not run)

Compute "Difficulties in Emotion Regulation Scale [Parent] (Distracted): Number missing"

Description

Computes the summary score mh_p_ders__distract_nm Difficulties in Emotion Regulation Scale [Parent] (Distracted): Number missing

  • Summarized variables:

    • mh_p_ders__distract_001

    • mh_p_ders__distract_002

    • mh_p_ders__distract_003

    • mh_p_ders__distract_004

  • Excluded values:

    • 999

    • 777

Usage

compute_mh_p_ders__distract_nm(
  data,
  name = "mh_p_ders__distract_nm",
  exclude = c("999", "777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Value

tbl. see combine.

See Also

compute_mh_p_ders__distract_mean()

Examples

## Not run: 
compute_mh_p_ders__distract_nm(data) |>
  select(
    any_of(c("mh_p_ders__distract_nm", vars_mh_p_ders__distract))
  )

## End(Not run)

Compute "Difficulties in Emotion Regulation Scale [Parent] (Negative Secondary): Number missing"

Description

Computes the summary score mh_p_ders__negscnd_nm Difficulties in Emotion Regulation Scale [Parent] (Negative Secondary): Number missing

  • Summarized variables:

    • mh_p_ders__negscnd_001

    • mh_p_ders__negscnd_002

    • mh_p_ders__negscnd_003

    • mh_p_ders__negscnd_004

    • mh_p_ders__negscnd_005

    • mh_p_ders__negscnd_006

    • mh_p_ders__negscnd_007

  • Excluded values:

    • 999

    • 777

Usage

compute_mh_p_ders__negscnd_nm(
  data,
  name = "mh_p_ders__negscnd_nm",
  exclude = c("999", "777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Value

tbl. see combine.

See Also

compute_mh_p_ders__negscnd_mean()

Examples

## Not run: 
compute_mh_p_ders__negscnd_nm(data) |>
  select(
    any_of(c("mh_p_ders__negscnd_nm", vars_mh_p_ders__negscnd))
  )

## End(Not run)

Compute all summary scores for mh_p_ders.

Description

This function computes all summary scores for the mh_p_ders table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ders_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_p_ders_all(data)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Activation): Number missing"

Description

Computes the summary score mh_p_eatq__actv_nm Early Adolescent Temperament Questionnaire [Parent] (Activation): Number missing

  • Summarized variables:

    • mh_p_eatq__actv_001

    • mh_p_eatq__actv_002

    • mh_p_eatq__actv_003

    • mh_p_eatq__actv_004

    • mh_p_eatq__actv_005

    • mh_p_eatq__actv_006

    • mh_p_eatq__actv_007

  • Excluded values: none

Usage

compute_mh_p_eatq__actv_nm(data, name = "mh_p_eatq__actv_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__actv_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__actv_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__actv_nm", vars_mh_p_eatq__actv))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Affiliation): Number missing"

Description

Computes the summary score mh_p_eatq__affl_nm Early Adolescent Temperament Questionnaire [Parent] (Affiliation): Number missing

  • Summarized variables:

    • mh_p_eatq__affl_001

    • mh_p_eatq__affl_002

    • mh_p_eatq__affl_003

    • mh_p_eatq__affl_004

    • mh_p_eatq__affl_005

    • mh_p_eatq__affl_006

  • Excluded values: none

Usage

compute_mh_p_eatq__affl_nm(data, name = "mh_p_eatq__affl_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__affl_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__affl_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__affl_nm", vars_mh_p_eatq__affl))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Aggression): Number missing"

Description

Computes the summary score mh_p_eatq__aggr_nm Early Adolescent Temperament Questionnaire [Parent] (Aggression): Number missing

  • Summarized variables:

    • mh_p_eatq__aggr_001

    • mh_p_eatq__aggr_002

    • mh_p_eatq__aggr_003

    • mh_p_eatq__aggr_004

    • mh_p_eatq__aggr_005

    • mh_p_eatq__aggr_006

    • mh_p_eatq__aggr_007

  • Excluded values: none

Usage

compute_mh_p_eatq__aggr_nm(data, name = "mh_p_eatq__aggr_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__aggr_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__aggr_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__aggr_nm", vars_mh_p_eatq__aggr))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Attention): Number missing"

Description

Computes the summary score mh_p_eatq__attn_nm Early Adolescent Temperament Questionnaire [Parent] (Attention): Number missing

  • Summarized variables:

    • mh_p_eatq__attn_001

    • mh_p_eatq__attn_002

    • mh_p_eatq__attn_003

    • mh_p_eatq__attn_004

    • mh_p_eatq__attn_005

    • mh_p_eatq__attn_006

  • Excluded values: none

Usage

compute_mh_p_eatq__attn_nm(data, name = "mh_p_eatq__attn_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__attn_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__attn_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__attn_nm", vars_mh_p_eatq__attn))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Depressive Mood): Number missing"

Description

Computes the summary score mh_p_eatq__depm_nm Early Adolescent Temperament Questionnaire [Parent] (Depressive Mood): Number missing

  • Summarized variables:

    • mh_p_eatq__depm_001

    • mh_p_eatq__depm_002

    • mh_p_eatq__depm_003

    • mh_p_eatq__depm_004

    • mh_p_eatq__depm_005

  • Excluded values: none

Usage

compute_mh_p_eatq__depm_nm(data, name = "mh_p_eatq__depm_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__depm_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__depm_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__depm_nm", vars_mh_p_eatq__depm))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Fear): Number missing"

Description

Computes the summary score mh_p_eatq__fear_nm Early Adolescent Temperament Questionnaire [Parent] (Fear): Number missing

  • Summarized variables:

    • mh_p_eatq__fear_001

    • mh_p_eatq__fear_002

    • mh_p_eatq__fear_003

    • mh_p_eatq__fear_004

    • mh_p_eatq__fear_005

    • mh_p_eatq__fear_006

  • Excluded values: none

Usage

compute_mh_p_eatq__fear_nm(data, name = "mh_p_eatq__fear_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__fear_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__fear_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__fear_nm", vars_mh_p_eatq__fear))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Frustration): Number missing"

Description

Computes the summary score mh_p_eatq__frust_nm Early Adolescent Temperament Questionnaire [Parent] (Frustration): Number missing

  • Summarized variables:

    • mh_p_eatq__frust_001

    • mh_p_eatq__frust_002

    • mh_p_eatq__frust_003

    • mh_p_eatq__frust_004

    • mh_p_eatq__frust_005

    • mh_p_eatq__frust_006

  • Excluded values: none

Usage

compute_mh_p_eatq__frust_nm(data, name = "mh_p_eatq__frust_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__frust_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__frust_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__frust_nm", vars_mh_p_eatq__frust))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Inhibition): Number missing"

Description

Computes the summary score mh_p_eatq__inhib_nm Early Adolescent Temperament Questionnaire [Parent] (Inhibition): Number missing

  • Summarized variables:

    • mh_p_eatq__inhib_001

    • mh_p_eatq__inhib_002

    • mh_p_eatq__inhib_003

    • mh_p_eatq__inhib_004

    • mh_p_eatq__inhib_005

  • Excluded values: none

Usage

compute_mh_p_eatq__inhib_nm(data, name = "mh_p_eatq__inhib_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__inhib_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__inhib_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__inhib_nm", vars_mh_p_eatq__inhib))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Shyness): Number missing"

Description

Computes the summary score mh_p_eatq__shy_nm Early Adolescent Temperament Questionnaire [Parent] (Shyness): Number missing

  • Summarized variables:

    • mh_p_eatq__shy_001

    • mh_p_eatq__shy_002

    • mh_p_eatq__shy_003

    • mh_p_eatq__shy_004

    • mh_p_eatq__shy_005

  • Excluded values: none

Usage

compute_mh_p_eatq__shy_nm(data, name = "mh_p_eatq__shy_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__shy_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__shy_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__shy_nm", vars_mh_p_eatq__shy))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Super scale - Effortful control: Combines attention, inhibition, and activation scales): Mean"

Description

Computes the summary score mh_p_eatq__ss__efcon_mean Early Adolescent Temperament Questionnaire [Parent] (Super scale - Effortful control: Combines attention, inhibition, and activation scales): Mean

  • Summarized variables:

    • mh_p_eatq__attn_mean

    • mh_p_eatq__inhib_mean

    • mh_p_eatq__actv_mean

  • Excluded values: none

Usage

compute_mh_p_eatq__ss__efcon_mean(
  data,
  name = "mh_p_eatq__ss__efcon_mean",
  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.

combine

logical, append the new computed column to the end of original tibble? Default is TRUE.

Details

Effortful Control = Attention, Inhibitory Control, Activation Control

In the super scale calculation, no NA is allowed.

Value

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

Examples

## Not run: 
compute_mh_p_eatq__ss__efcon_mean(data) |>
  select(
    any_of(c(
      "mh_p_eatq__ss__efcon_mean",
    ))
  )

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Super scale - Effortful control: Combines attention, inhibition, and activation scales): Number missing"

Description

Computes the summary score mh_p_eatq__ss__efcon_nm Early Adolescent Temperament Questionnaire [Parent] (Super scale - Effortful control: Combines attention, inhibition, and activation scales): Number missing

  • Summarized variables:

    • mh_p_eatq__attn_001

    • mh_p_eatq__attn_002

    • mh_p_eatq__attn_003

    • mh_p_eatq__attn_004

    • mh_p_eatq__attn_005

    • mh_p_eatq__attn_006

    • mh_p_eatq__inhib_001

    • mh_p_eatq__inhib_002

    • mh_p_eatq__inhib_003

    • mh_p_eatq__inhib_004

    • mh_p_eatq__inhib_005

    • mh_p_eatq__actv_001

    • mh_p_eatq__actv_002

    • mh_p_eatq__actv_003

    • mh_p_eatq__actv_004

    • mh_p_eatq__actv_005

    • mh_p_eatq__actv_006

    • mh_p_eatq__actv_007

  • Excluded values: none

Usage

compute_mh_p_eatq__ss__efcon_nm(
  data,
  name = "mh_p_eatq__ss__efcon_nm",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__ss__efcon_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__ss__efcon_nm(data)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Super scale - Negative Affect: Combines frustration, depressed mood, and aggression scales): Mean"

Description

Computes the summary score mh_p_eatq__ss__negaff_mean Early Adolescent Temperament Questionnaire [Parent] (Super scale - Negative Affect: Combines frustration, depressed mood, and aggression scales): Mean

  • Summarized variables:

    • mh_p_eatq__frust_mean

    • mh_p_eatq__depm_mean

    • mh_p_eatq__aggr_mean

  • Excluded values: none

Usage

compute_mh_p_eatq__ss__negaff_mean(
  data,
  name = "mh_p_eatq__ss__negaff_mean",
  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.

combine

logical, append the new computed column to the end of original tibble? Default is TRUE.

Details

Negative Affect = Frustration, Depressive Mood, Aggression

In the super scale calculation, no NA is allowed.

Value

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

Examples

## Not run: 
data |>
  compute_mh_p_eatq__ss__negaff_mean() |>
  select(
    any_of(c(
      "mh_p_eatq__ss__negaff_mean"
    ))
  )

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Super scale - Negative Affect: Combines frustration, depressed mood, and aggression scales): Number missing"

Description

Computes the summary score mh_p_eatq__ss__negaff_nm Early Adolescent Temperament Questionnaire [Parent] (Super scale - Negative Affect: Combines frustration, depressed mood, and aggression scales): Number missing

  • Summarized variables:

    • mh_p_eatq__frust_001

    • mh_p_eatq__frust_002

    • mh_p_eatq__frust_003

    • mh_p_eatq__frust_004

    • mh_p_eatq__frust_005

    • mh_p_eatq__frust_006

    • mh_p_eatq__depm_001

    • mh_p_eatq__depm_002

    • mh_p_eatq__depm_003

    • mh_p_eatq__depm_004

    • mh_p_eatq__depm_005

    • mh_p_eatq__aggr_001

    • mh_p_eatq__aggr_002

    • mh_p_eatq__aggr_003

    • mh_p_eatq__aggr_004

    • mh_p_eatq__aggr_005

    • mh_p_eatq__aggr_006

    • mh_p_eatq__aggr_007

  • Excluded values: none

Usage

compute_mh_p_eatq__ss__negaff_nm(
  data,
  name = "mh_p_eatq__ss__negaff_nm",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__ss__negaff_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__ss__negaff_nm(data)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Super scale - Surgency: Combines surgency, fear (reverse coded), and shyness (reverse coded) scales): Mean [Validation: No more than 0 missing or declined]"

Description

Computes the summary score mh_p_eatq__ss__surg_mean Early Adolescent Temperament Questionnaire [Parent] (Super scale - Surgency: Combines surgency, fear (reverse coded), and shyness (reverse coded) scales): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_eatq__surg_mean

    • mh_p_eatq__fear_mean (revert)

    • mh_p_eatq__shy_mean (revert)

  • Excluded values: none

Usage

compute_mh_p_eatq__ss__surg_mean(
  data,
  name = "mh_p_eatq__ss__surg_mean",
  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.

combine

logical, append the new computed column to the end of original tibble? Default is TRUE.

Details

Surgency = Surgency, Fear (reverse scored), Shyness (reverse scored)

In the super scale calculation, no NA is allowed.

Value

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

Examples

## Not run: 
compute_mh_p_eatq__ss__surg_mean(data) |>
  select(
    any_of(c(
      "mh_p_eatq__ss__surg_mean"
    ))
  )

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Super scale - Surgency: Combines surgency, fear (reverse coded), and shyness (reverse coded) scales): Number missing"

Description

Computes the summary score mh_p_eatq__ss__surg_nm Early Adolescent Temperament Questionnaire [Parent] (Super scale - Surgency: Combines surgency, fear (reverse coded), and shyness (reverse coded) scales): Number missing

  • Summarized variables:

    • mh_p_eatq__surg_001

    • mh_p_eatq__surg_002

    • mh_p_eatq__surg_003

    • mh_p_eatq__surg_004

    • mh_p_eatq__surg_005

    • mh_p_eatq__surg_006

    • mh_p_eatq__surg_007

    • mh_p_eatq__surg_008

    • mh_p_eatq__surg_009

    • mh_p_eatq__fear_001

    • mh_p_eatq__fear_002

    • mh_p_eatq__fear_003

    • mh_p_eatq__fear_004

    • mh_p_eatq__fear_005

    • mh_p_eatq__fear_006

    • mh_p_eatq__shy_001

    • mh_p_eatq__shy_002

    • mh_p_eatq__shy_003

    • mh_p_eatq__shy_004

    • mh_p_eatq__shy_005

  • Excluded values: none

Usage

compute_mh_p_eatq__ss__surg_nm(
  data,
  name = "mh_p_eatq__ss__surg_nm",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__ss__surg_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__ss__surg_nm(data)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Surgency): Number missing"

Description

Computes the summary score mh_p_eatq__surg_nm Early Adolescent Temperament Questionnaire [Parent] (Surgency): Number missing

  • Summarized variables:

    • mh_p_eatq__surg_001

    • mh_p_eatq__surg_002

    • mh_p_eatq__surg_003

    • mh_p_eatq__surg_004

    • mh_p_eatq__surg_005

    • mh_p_eatq__surg_006

    • mh_p_eatq__surg_007

    • mh_p_eatq__surg_008

    • mh_p_eatq__surg_009

  • Excluded values: none

Usage

compute_mh_p_eatq__surg_nm(data, name = "mh_p_eatq__surg_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_p_eatq__surg_mean()

Examples

## Not run: 
data <- compute_mh_p_eatq__surg_nm(data)
select(
  data,
  any_of(c("mh_p_eatq__surg_nm", vars_mh_p_eatq__surg))
)

## End(Not run)

Compute all the EATQ variables

Description

This super function computes all scores in EATQ using all the default arguments.

Usage

compute_mh_p_eatq_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Details

Make sure the data is the full set of all variables from EATQ

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_p_eatq_all(data)

## End(Not run)

Compute all the mh_p_famhx summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_mh_p_famhx_all(data)

Arguments

data

tbl. Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_p_famhx_all(data)

## End(Not run)

Compute all summary scores for mh_p_gbi.

Description

This function computes all summary scores for the mh_p_gbi table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_gbi_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_p_gbi_all(data)

## End(Not run)

Compute "Parent General Behavior Inventory [Parent]: Sum"

Description

Computes the summary score mh_p_gbi_sum Parent General Behavior Inventory [Parent]: Sum

  • Summarized variables:

    • mh_p_gbi_001

    • mh_p_gbi_002

    • mh_p_gbi_003

    • mh_p_gbi_004

    • mh_p_gbi_005

    • mh_p_gbi_006

    • mh_p_gbi_007

    • mh_p_gbi_008

    • mh_p_gbi_009

    • mh_p_gbi_010

  • Excluded values: none

  • Validation criterion: none of 10 items missing

Usage

compute_mh_p_gbi_sum(
  data,
  name = "mh_p_gbi_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_p_gbi_nm()

Examples

## Not run: 
compute_mh_p_gbi_sum(data) |>
  select(
    any_of(c("mh_p_gbi_sum", vars_mh_p_gbi))
  )

## End(Not run)

Compute all summary scores for mh_p_ksads__adhd

Description

This function computes all summary scores for the mh_p_ksads__adhd table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__adhd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__agor

Description

This function computes all summary scores for the mh_p_ksads__agor table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__agor_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__asd

Description

This function computes all summary scores for the mh_p_ksads__asd table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__asd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__bpd

Description

This function computes all summary scores for the mh_p_ksads__bpd table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__bpd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__cond

Description

This function computes all summary scores for the mh_p_ksads__cond table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__cond_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__dep

Description

This function computes all summary scores for the mh_p_ksads__dep table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__dep_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__dep

Description

This function computes all summary scores for the mh_p_ksads__dep table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__dmdd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__ed

Description

This function computes all summary scores for the mh_p_ksads__ed table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__ed_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__gad

Description

This function computes all summary scores for the mh_p_ksads__gad table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__gad_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__hom

Description

This function computes all summary scores for the mh_p_ksads__hom table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__hom_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__ocd

Description

This function computes all summary scores for the mh_p_ksads__ocd table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__ocd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__odd

Description

This function computes all summary scores for the mh_p_ksads__odd table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__odd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__panic

Description

This function computes all summary scores for the mh_p_ksads__panic table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__panic_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__phobia

Description

This function computes all summary scores for the mh_p_ksads__phobia table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__phobia_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__psych

Description

This function computes all summary scores for the mh_p_ksads__psych table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__psych_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__ptsd

Description

This function computes all summary scores for the mh_p_ksads__ptsd table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__ptsd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__sepanx

Description

This function computes all summary scores for the mh_p_ksads__sepanx table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__sepanx_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__sleep

Description

This function computes all summary scores for the mh_p_ksads__sleep table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__sleep_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__socanx

Description

This function computes all summary scores for the mh_p_ksads__socanx table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__socanx_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__suic

Description

This function computes all summary scores for the mh_p_ksads__suic table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__suic_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_p_ksads__tic

Description

This function computes all summary scores for the mh_p_ksads__tic table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ksads__tic_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute "Life Events [Parent] (Experience Bad Events): Count"

Description

Computes the summary score mh_p_ple__exp__bad_count Life Events [Parent] (Experience Bad Events): Count

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__bad_count(
  data,
  name = "mh_p_ple__exp__bad_count",
  combine = TRUE,
  max_na = NULL
)

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience Bad Events): Count - Version 1 (Year 3)"

Description

Computes the summary score mh_p_ple__exp__bad_count__v01 Life Events [Parent] (Experience Bad Events): Count - Version 1 (Year 3)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__bad_count__v01(
  data,
  name = "mh_p_ple__exp__bad_count__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience Bad Events): Count - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_p_ple__exp__bad_count__v02 Life Events [Parent] (Experience Bad Events): Count - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__bad_count__v02(
  data,
  name = "mh_p_ple__exp__bad_count__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience Bad Events): Count - Version 3 (Year 6)"

Description

Computes the summary score mh_p_ple__exp__bad_count__v03 Life Events [Parent] (Experience Bad Events): Count - Version 3 (Year 6)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__bad_count__v03(
  data,
  name = "mh_p_ple__exp__bad_count__v03",
  events = "ses-06A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience Bad Events): Count - Version 4 (Starting at Year 7)"

Description

Computes the summary score mh_p_ple__exp__bad_count__v04 Life Events [Parent] (Experience Bad Events): Count - Version 4 (Starting at Year 7)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__bad_count__v04(
  data,
  name = "mh_p_ple__exp__bad_count__v04",
  events = "ses-07A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience Good Events): Count"

Description

Computes the summary score mh_p_ple__exp__good_count Life Events [Parent] (Experience Good Events): Count

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__good_count(
  data,
  name = "mh_p_ple__exp__good_count",
  combine = TRUE,
  max_na = NULL
)

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience Good Events): Count - Version 1 (Year 3)"

Description

Computes the summary score mh_p_ple__exp__good_count__v01 Life Events [Parent] (Experience Good Events): Count - Version 1 (Year 3)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__good_count__v01(
  data,
  name = "mh_p_ple__exp__good_count__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience Good Events): Count - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_p_ple__exp__good_count__v02 Life Events [Parent] (Experience Good Events): Count - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__good_count__v02(
  data,
  name = "mh_p_ple__exp__good_count__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience Good Events): Count - Version 3 (Year 6)"

Description

Computes the summary score mh_p_ple__exp__good_count__v03 Life Events [Parent] (Experience Good Events): Count - Version 3 (Year 6)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__good_count__v03(
  data,
  name = "mh_p_ple__exp__good_count__v03",
  events = "ses-06A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience Good Events): Count - Version 4 (Starting at Year 7)"

Description

Computes the summary score mh_p_ple__exp__good_count__v04 Life Events [Parent] (Experience Good Events): Count - Version 4 (Starting at Year 7)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp__good_count__v04(
  data,
  name = "mh_p_ple__exp__good_count__v04",
  events = "ses-07A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Parent] (Experience): Number missing"

Description

Computes the summary score mh_p_ple__exp_nm Life Events [Parent] (Experience): Number missing

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp_nm(data, name = "mh_p_ple__exp_nm", 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.


Compute "Life Events [Parent] (Experience): Number missing - Version 1 (Year 3)"

Description

Computes the summary score mh_p_ple__exp_nm__v01 Life Events [Parent] (Experience): Number missing - Version 1 (Year 3)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp_nm__v01(
  data,
  name = "mh_p_ple__exp_nm__v01",
  events = "ses-03A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Experience): Number missing - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_p_ple__exp_nm__v02 Life Events [Parent] (Experience): Number missing - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp_nm__v02(
  data,
  name = "mh_p_ple__exp_nm__v02",
  events = c("ses-04A", "ses-05A"),
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Experience): Number missing - Version 3 (Year 6 )"

Description

Computes the summary score mh_p_ple__exp_nm__v03 Life Events [Parent] (Experience): Number missing - Version 3 (Year 6 )

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp_nm__v03(
  data,
  name = "mh_p_ple__exp_nm__v03",
  events = "ses-06A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Experience): Number missing - Version 4 (Starting at Year 7)"

Description

Computes the summary score mh_p_ple__exp_nm__v04 Life Events [Parent] (Experience): Number missing - Version 4 (Starting at Year 7)

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__exp_nm__v04(
  data,
  name = "mh_p_ple__exp_nm__v04",
  events = "ses-07A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Severity of Bad Events): Mean [Validation: No more than 5 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_mean Life Events [Parent] (Severity of Bad Events): Mean [Validation: No more than 5 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

compute_mh_p_ple__severity__bad_mean(
  data,
  name = "mh_p_ple__severity__bad_mean",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Value

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


Compute "Life Events [Parent] (Severity of Bad Events): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_mean__v01 Life Events [Parent] (Severity of Bad Events): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

compute_mh_p_ple__severity__bad_mean__v01(
  data,
  name = "mh_p_ple__severity__bad_mean__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity of Bad Events): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_mean__v02 Life Events [Parent] (Severity of Bad Events): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 32 items missing

Usage

compute_mh_p_ple__severity__bad_mean__v02(
  data,
  name = "mh_p_ple__severity__bad_mean__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity of Bad Events): Mean - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_mean__v03 Life Events [Parent] (Severity of Bad Events): Mean - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_p_ple__severity__bad_mean__v03(
  data,
  name = "mh_p_ple__severity__bad_mean__v03",
  events = "ses-06A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity of Bad Events): Mean - Version 4 (Starting at Year 7) [Validation: No more than 4 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_mean__v04 Life Events [Parent] (Severity of Bad Events): Mean - Version 4 (Starting at Year 7) [Validation: No more than 4 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 4 of 20 items missing

Usage

compute_mh_p_ple__severity__bad_mean__v04(
  data,
  name = "mh_p_ple__severity__bad_mean__v04",
  events = "ses-07A",
  combine = TRUE,
  max_na = 4
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 4).

Value

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


Compute "Life Events [Parent] (Severity of Bad Events): Sum [Validation: No more than 5 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_sum Life Events [Parent] (Severity of Bad Events): Sum [Validation: No more than 5 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

compute_mh_p_ple__severity__bad_sum(
  data,
  name = "mh_p_ple__severity__bad_sum",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Value

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


Compute "Life Events [Parent] (Severity of Bad Events): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_sum__v01 Life Events [Parent] (Severity of Bad Events): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

compute_mh_p_ple__severity__bad_sum__v01(
  data,
  name = "mh_p_ple__severity__bad_sum__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity of Bad Events): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_sum__v02 Life Events [Parent] (Severity of Bad Events): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 32 items missing

Usage

compute_mh_p_ple__severity__bad_sum__v02(
  data,
  name = "mh_p_ple__severity__bad_sum__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity of Bad Events): Sum - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_sum__v03 Life Events [Parent] (Severity of Bad Events): Sum - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_p_ple__severity__bad_sum__v03(
  data,
  name = "mh_p_ple__severity__bad_sum__v03",
  events = "ses-06A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity of Bad Events): Sum - Version 4 (Starting at Year 7) [Validation: No more than 4 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__bad_sum__v04 Life Events [Parent] (Severity of Bad Events): Sum - Version 4 (Starting at Year 7) [Validation: No more than 4 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 4 of 20 items missing

Usage

compute_mh_p_ple__severity__bad_sum__v04(
  data,
  name = "mh_p_ple__severity__bad_sum__v04",
  events = "ses-07A",
  combine = TRUE,
  max_na = 4
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 4).

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Mean [Validation: No more than 5 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_mean Life Events [Parent] (Severity of Good Events): Mean [Validation: No more than 5 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

compute_mh_p_ple__severity__good_mean(
  data,
  name = "mh_p_ple__severity__good_mean",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_mean__v01 Life Events [Parent] (Severity of Good Events): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

compute_mh_p_ple__severity__good_mean__v01(
  data,
  name = "mh_p_ple__severity__good_mean__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_mean__v02 Life Events [Parent] (Severity of Good Events): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 32 items missing

Usage

compute_mh_p_ple__severity__good_mean__v02(
  data,
  name = "mh_p_ple__severity__good_mean__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Mean - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_mean__v03 Life Events [Parent] (Severity of Good Events): Mean - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_p_ple__severity__good_mean__v03(
  data,
  name = "mh_p_ple__severity__good_mean__v03",
  events = "ses-06A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Mean - Version 4 (Starting at Year 7) [Validation: No more than 4 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_mean__v04 Life Events [Parent] (Severity of Good Events): Mean - Version 4 (Starting at Year 7) [Validation: No more than 4 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 4 of 20 items missing

Usage

compute_mh_p_ple__severity__good_mean__v04(
  data,
  name = "mh_p_ple__severity__good_mean__v04",
  events = "ses-07A",
  combine = TRUE,
  max_na = 4
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 4).

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Sum [Validation: No more than 5 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_sum Life Events [Parent] (Severity of Good Events): Sum [Validation: No more than 5 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

compute_mh_p_ple__severity__good_sum(
  data,
  name = "mh_p_ple__severity__good_sum",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Value

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


Compute "Life Events [Parent] (Severity): Mean [Validation: No more than 5 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_mean Life Events [Parent] (Severity): Mean [Validation: No more than 5 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

compute_mh_p_ple__severity_mean(
  data,
  name = "mh_p_ple__severity_mean",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Value

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


Compute "Life Events [Parent] (Severity): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_mean__v01 Life Events [Parent] (Severity): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

compute_mh_p_ple__severity_mean__v01(
  data,
  name = "mh_p_ple__severity_mean__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_mean__v02 Life Events [Parent] (Severity): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 32 items missing

Usage

compute_mh_p_ple__severity_mean__v02(
  data,
  name = "mh_p_ple__severity_mean__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity): Mean - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_mean__v03 Life Events [Parent] (Severity): Mean - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_p_ple__severity_mean__v03(
  data,
  name = "mh_p_ple__severity_mean__v03",
  events = "ses-06A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Parent] (Severity): Mean - Version 4 (Starting at Year 7) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_mean__v04 Life Events [Parent] (Severity): Mean - Version 4 (Starting at Year 7) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 4 of 20 items missing

Usage

compute_mh_p_ple__severity_mean__v04(
  data,
  name = "mh_p_ple__severity_mean__v04",
  events = "ses-07A",
  combine = TRUE,
  max_na = 4
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 4).

Value

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


Compute "Life Events [Parent] (Severity): Number missing"

Description

Computes the summary score mh_p_ple__severity_nm Life Events [Parent] (Severity): Number missing

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__severity_nm(
  data,
  name = "mh_p_ple__severity_nm",
  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.


Compute "Life Events [Parent] (Severity): Number missing - Version 1 (Year 3)"

Description

Computes the summary score mh_p_ple__severity_nm__v01 Life Events [Parent] (Severity): Number missing - Version 1 (Year 3)

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__severity_nm__v01(
  data,
  name = "mh_p_ple__severity_nm__v01",
  events = "ses-03A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Severity): Number missing - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_p_ple__severity_nm__v02 Life Events [Parent] (Severity): Number missing - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__severity_nm__v02(
  data,
  name = "mh_p_ple__severity_nm__v02",
  events = c("ses-04A", "ses-05A"),
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Severity): Number missing - Version 3 (Year 6 )"

Description

Computes the summary score mh_p_ple__severity_nm__v03 Life Events [Parent] (Severity): Number missing - Version 3 (Year 6 )

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__severity_nm__v03(
  data,
  name = "mh_p_ple__severity_nm__v03",
  events = "ses-06A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Severity): Number missing - Version 4 (Starting at Year 7)"

Description

Computes the summary score mh_p_ple__severity_nm__v04 Life Events [Parent] (Severity): Number missing - Version 4 (Starting at Year 7)

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple__severity_nm__v04(
  data,
  name = "mh_p_ple__severity_nm__v04",
  events = "ses-07A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute all summary scores for mh_p_ple

Description

This function computes all summary scores for the mh_p_ple form. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ple_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_p_ple_all(data)

## End(Not run)

Compute "Life Events [Parent] (Events): Number missing"

Description

Computes the summary score mh_p_ple_nm Life Events [Parent] (Events): Number missing

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_003

    • mh_p_ple_004

    • mh_p_ple_005

    • mh_p_ple_006

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_009

    • mh_p_ple_010

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_016

    • mh_p_ple_017

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_020

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple_nm(data, name = "mh_p_ple_nm", 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.


Compute "Life Events [Parent] (Events): Number missing - Version 1 (Year 3)"

Description

Computes the summary score mh_p_ple_nm__v01 Life Events [Parent] (Events): Number missing - Version 1 (Year 3)

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_003

    • mh_p_ple_004

    • mh_p_ple_005

    • mh_p_ple_006

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_009

    • mh_p_ple_010

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_016

    • mh_p_ple_017

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_020

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_025

    • mh_p_ple_026

    • mh_p_ple_027

    • mh_p_ple_028

    • mh_p_ple_029

    • mh_p_ple_030

    • mh_p_ple_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple_nm__v01(
  data,
  name = "mh_p_ple_nm__v01",
  events = "ses-03A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Events): Number missing - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_p_ple_nm__v02 Life Events [Parent] (Events): Number missing - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_003

    • mh_p_ple_004

    • mh_p_ple_005

    • mh_p_ple_006

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_009

    • mh_p_ple_010

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_016

    • mh_p_ple_017

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_020

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_025

    • mh_p_ple_026

    • mh_p_ple_027

    • mh_p_ple_028

    • mh_p_ple_029

    • mh_p_ple_030

    • mh_p_ple_031

    • mh_p_ple_032

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple_nm__v02(
  data,
  name = "mh_p_ple_nm__v02",
  events = c("ses-04A", "ses-05A"),
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Events): Number missing - Version 3 (Year 6 )"

Description

Computes the summary score mh_p_ple_nm__v03 Life Events [Parent] (Events): Number missing - Version 3 (Year 6 )

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_003

    • mh_p_ple_004

    • mh_p_ple_005

    • mh_p_ple_006

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_009

    • mh_p_ple_010

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_016

    • mh_p_ple_017

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_020

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_025

    • mh_p_ple_026

    • mh_p_ple_027

    • mh_p_ple_028

    • mh_p_ple_029

    • mh_p_ple_030

    • mh_p_ple_031

    • mh_p_ple_032

    • mh_p_ple_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple_nm__v03(
  data,
  name = "mh_p_ple_nm__v03",
  events = "ses-06A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Parent] (Events): Number missing - Version 4 (Starting at Year 7)"

Description

Computes the summary score mh_p_ple_nm__v04 Life Events [Parent] (Events): Number missing - Version 4 (Starting at Year 7)

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_026

    • mh_p_ple_027

    • mh_p_ple_028

    • mh_p_ple_032

    • mh_p_ple_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_p_ple_nm__v04(
  data,
  name = "mh_p_ple_nm__v04",
  events = "ses-07A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute all summary scores for mh_p_ssrs.

Description

This function computes all summary scores for the mh_p_ssrs table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_p_ssrs_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_p_ssrs_all(data)

## End(Not run)

Compute "Short Social Responsiveness Scale [Parent]: Sum"

Description

Computes the summary score mh_p_ssrs_sum Short Social Responsiveness Scale [Parent]: Sum

  • Summarized variables:

    • mh_p_ssrs_001

    • mh_p_ssrs_002

    • mh_p_ssrs_003

    • mh_p_ssrs_004

    • mh_p_ssrs_005

    • mh_p_ssrs_006

    • mh_p_ssrs_007

    • mh_p_ssrs_008

    • mh_p_ssrs_009

    • mh_p_ssrs_010

    • mh_p_ssrs_011

  • Excluded values: none

  • Validation criterion: none of 11 items missing

Usage

compute_mh_p_ssrs_sum(
  data,
  name = "mh_p_ssrs_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_p_ssrs_nm()

Examples

## Not run: 
compute_mh_p_ssrs_sum(data) |>
  select(
    any_of(c("mh_p_ssrs_sum", vars_mh_p_ssrs))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher] (Attention): Sum"

Description

Computes the summary score mh_t_bpm__attn_sum Brief Problem Monitor [Teacher] (Attention): Sum

  • Summarized variables:

    • mh_t_bpm__attn_001

    • mh_t_bpm__attn_002

    • mh_t_bpm__attn_003

    • mh_t_bpm__attn_004

    • mh_t_bpm__attn_005

    • mh_t_bpm__attn_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_t_bpm__attn_sum(
  data,
  name = "mh_t_bpm__attn_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_t_bpm__attn_nm()

Examples

## Not run: 
compute_mh_t_bpm__attn_sum(data) |>
  select(
    any_of(c("mh_t_bpm__attn_sum", vars_mh_t_bpm__attn))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher] (Attention): T-score"

Description

Computes the summary score mh_t_bpm__attn_tscore Brief Problem Monitor [Teacher] (Attention): T-score

  • Summarized variables:

    • mh_t_bpm__attn_001

    • mh_t_bpm__attn_002

    • mh_t_bpm__attn_003

    • mh_t_bpm__attn_004

    • mh_t_bpm__attn_005

    • mh_t_bpm__attn_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_t_bpm__attn_tscore(
  data,
  data_norm = NULL,
  name = "mh_t_bpm__attn_tscore",
  col_age = "mh_t_bpm_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_t_bpm__attn_nm()

Examples

## Not run: 
compute_mh_t_bpm__attn_tscore(data) |>
  select(
    any_of(c("mh_t_bpm__attn_tscore", vars_mh_t_bpm__attn))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher] (Externalizing): Sum"

Description

Computes the summary score mh_t_bpm__ext_sum Brief Problem Monitor [Teacher] (Externalizing): Sum

  • Summarized variables:

    • mh_t_bpm__ext_001

    • mh_t_bpm__ext_002

    • mh_t_bpm__ext_003

    • mh_t_bpm__ext_004

    • mh_t_bpm__ext_005

    • mh_t_bpm__ext_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_t_bpm__ext_sum(
  data,
  name = "mh_t_bpm__ext_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_t_bpm__ext_nm()

Examples

## Not run: 
compute_mh_t_bpm__ext_sum(data) |>
  select(
    any_of(c("mh_t_bpm__ext_sum", vars_mh_t_bpm__ext))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher] (Externalizing): T-score"

Description

Computes the summary score mh_t_bpm__ext_tscore Brief Problem Monitor [Teacher] (Externalizing): T-score

  • Summarized variables:

    • mh_t_bpm__ext_001

    • mh_t_bpm__ext_002

    • mh_t_bpm__ext_003

    • mh_t_bpm__ext_004

    • mh_t_bpm__ext_005

    • mh_t_bpm__ext_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_t_bpm__ext_tscore(
  data,
  data_norm = NULL,
  name = "mh_t_bpm__ext_tscore",
  col_age = "mh_t_bpm_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_t_bpm__ext_nm()

Examples

## Not run: 
compute_mh_t_bpm__ext_tscore(data) |>
  select(
    any_of(c("mh_t_bpm__ext_tscore", vars_mh_t_bpm__ext))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher] (Internalizing): Sum"

Description

Computes the summary score mh_t_bpm__int_sum Brief Problem Monitor [Teacher] (Internalizing): Sum

  • Summarized variables:

    • mh_t_bpm__int_001

    • mh_t_bpm__int_002

    • mh_t_bpm__int_003

    • mh_t_bpm__int_004

    • mh_t_bpm__int_005

    • mh_t_bpm__int_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_t_bpm__int_sum(
  data,
  name = "mh_t_bpm__int_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_t_bpm__int_nm()

Examples

## Not run: 
compute_mh_t_bpm__int_sum(data) |>
  select(
    any_of(c("mh_t_bpm__int_sum", vars_mh_t_bpm__int))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher] (Internalizing): T-score"

Description

Computes the summary score mh_t_bpm__int_tscore Brief Problem Monitor [Teacher] (Internalizing): T-score

  • Summarized variables:

    • mh_t_bpm__int_001

    • mh_t_bpm__int_002

    • mh_t_bpm__int_003

    • mh_t_bpm__int_004

    • mh_t_bpm__int_005

    • mh_t_bpm__int_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_t_bpm__int_tscore(
  data,
  data_norm = NULL,
  name = "mh_t_bpm__int_tscore",
  col_age = "mh_t_bpm_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_t_bpm__int_nm()

Examples

## Not run: 
compute_mh_t_bpm__int_tscore(data) |>
  select(
    any_of(c("mh_t_bpm__int_tscore", vars_mh_t_bpm__int))
  )

## End(Not run)

Compute all summary scores for mh_t_bpm.

Description

This function computes all summary scores for the mh_t_bpm form. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_t_bpm_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_t_bpm_all(data)

## End(Not run)

Compute "Brief Problem Monitor [Teacher]: Sum"

Description

Computes the summary score mh_t_bpm_sum Brief Problem Monitor [Teacher]: Sum

  • Summarized variables:

    • mh_t_bpm__attn_001

    • mh_t_bpm__attn_002

    • mh_t_bpm__attn_003

    • mh_t_bpm__attn_004

    • mh_t_bpm__attn_005

    • mh_t_bpm__attn_006

    • mh_t_bpm__ext_001

    • mh_t_bpm__ext_002

    • mh_t_bpm__ext_003

    • mh_t_bpm__ext_004

    • mh_t_bpm__ext_005

    • mh_t_bpm__ext_006

    • mh_t_bpm__int_001

    • mh_t_bpm__int_002

    • mh_t_bpm__int_003

    • mh_t_bpm__int_004

    • mh_t_bpm__int_005

    • mh_t_bpm__int_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 18 items missing

Usage

compute_mh_t_bpm_sum(
  data,
  name = "mh_t_bpm_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_t_bpm_nm()

Examples

## Not run: 
compute_mh_t_bpm_sum(data) |>
  select(
    any_of(c("mh_t_bpm_sum", vars_mh_t_bpm))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher]: T-score"

Description

Computes the summary score mh_t_bpm_tscore Brief Problem Monitor [Teacher]: T-score

  • Summarized variables:

    • mh_t_bpm__attn_001

    • mh_t_bpm__attn_002

    • mh_t_bpm__attn_003

    • mh_t_bpm__attn_004

    • mh_t_bpm__attn_005

    • mh_t_bpm__attn_006

    • mh_t_bpm__ext_001

    • mh_t_bpm__ext_002

    • mh_t_bpm__ext_003

    • mh_t_bpm__ext_004

    • mh_t_bpm__ext_005

    • mh_t_bpm__ext_006

    • mh_t_bpm__int_001

    • mh_t_bpm__int_002

    • mh_t_bpm__int_003

    • mh_t_bpm__int_004

    • mh_t_bpm__int_005

    • mh_t_bpm__int_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 18 items missing

Usage

compute_mh_t_bpm_tscore(
  data,
  data_norm = NULL,
  name = "mh_t_bpm_tscore",
  col_age = "mh_t_bpm_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_t_bpm_nm()

Examples

## Not run: 
compute_mh_t_bpm_tscore(data) |>
  select(
    any_of(c("mh_t_bpm_tscore", vars_mh_t_bpm))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Drive): Sum"

Description

Computes the summary score mh_y_bisbas__bas__dr_sum The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Drive): Sum

  • Summarized variables:

    • mh_y_bisbas__bas__dr_001

    • mh_y_bisbas__bas__dr_002

    • mh_y_bisbas__bas__dr_003

    • mh_y_bisbas__bas__dr_004

  • Excluded values: none

  • Validation criterion: none of 4 items missing

Usage

compute_mh_y_bisbas__bas__dr_sum(
  data,
  name = "mh_y_bisbas__bas__dr_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_bisbas__bas__dr_nm()

Examples

## Not run: 
compute_mh_y_bisbas__bas__dr_sum(data) |>
  select(
    any_of(c("mh_y_bisbas__bas__dr_sum", vars_mh_y_bisbas__bas__dr))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Fun Seeking): Sum"

Description

Computes the summary score mh_y_bisbas__bas__fs_sum The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Fun Seeking): Sum

  • Summarized variables:

    • mh_y_bisbas__bas__fs_001

    • mh_y_bisbas__bas__fs_002

    • mh_y_bisbas__bas__fs_003

    • mh_y_bisbas__bas__fs_004

  • Excluded values: none

  • Validation criterion: none of 4 items missing

Usage

compute_mh_y_bisbas__bas__fs_sum(
  data,
  name = "mh_y_bisbas__bas__fs_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_bisbas__bas__fs_nm()

Examples

## Not run: 
compute_mh_y_bisbas__bas__fs_sum(data) |>
  select(
    any_of(c("mh_y_bisbas__bas__fs_sum", vars_mh_y_bisbas__bas__fs))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Reward Responsiveness): Sum"

Description

Computes the summary score mh_y_bisbas__bas__rr_sum The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Reward Responsiveness): Sum

  • Summarized variables:

    • mh_y_bisbas__bas__rr_001

    • mh_y_bisbas__bas__rr_002

    • mh_y_bisbas__bas__rr_003

    • mh_y_bisbas__bas__rr_004

    • mh_y_bisbas__bas__rr_005

  • Excluded values: none

  • Validation criterion: none of 5 items missing

Usage

compute_mh_y_bisbas__bas__rr_sum(
  data,
  name = "mh_y_bisbas__bas__rr_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_bisbas__bas__rr_nm()

Examples

## Not run: 
compute_mh_y_bisbas__bas__rr_sum(data) |>
  select(
    any_of(c("mh_y_bisbas__bas__rr_sum", vars_mh_y_bisbas__bas__rr))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] ((BAS Reward Responsiveness (modified)): Sum"

Description

Computes the summary score mh_y_bisbas__bas__rr_sum__v01 The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] ((BAS Reward Responsiveness (modified)): Sum

  • Summarized variables:

    • mh_y_bisbas__bas__rr_001

    • mh_y_bisbas__bas__rr_002

    • mh_y_bisbas__bas__rr_004

    • mh_y_bisbas__bas__rr_005

  • Excluded values: none

  • Validation criterion: none of 4 items missing

Usage

compute_mh_y_bisbas__bas__rr_sum__v01(
  data,
  name = "mh_y_bisbas__bas__rr_sum__v01",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_bisbas__bas__rr_nm__v01()

Examples

## Not run: 
compute_mh_y_bisbas__bas__rr_sum__v01(data) |>
  select(
    any_of(c("mh_y_bisbas__bas__rr_sum__v01", vars_mh_y_bisbas__bas__rr__v01))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BIS): Sum"

Description

Computes the summary score mh_y_bisbas__bis_sum The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BIS): Sum

  • Summarized variables:

    • mh_y_bisbas__bis_001

    • mh_y_bisbas__bis_002

    • mh_y_bisbas__bis_003

    • mh_y_bisbas__bis_004

    • mh_y_bisbas__bis_005

    • mh_y_bisbas__bis_006

    • mh_y_bisbas__bis_007

  • Excluded values: none

  • Validation criterion: none of 7 items missing

Usage

compute_mh_y_bisbas__bis_sum(
  data,
  name = "mh_y_bisbas__bis_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_bisbas__bis_nm()

Examples

## Not run: 
compute_mh_y_bisbas__bis_sum(data) |>
  select(
    any_of(c("mh_y_bisbas__bis_sum", vars_mh_y_bisbas__bis))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BIS (modified)): Sum"

Description

Computes the summary score mh_y_bisbas__bis_sum__v01 The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BIS (modified)): Sum

  • Summarized variables:

    • mh_y_bisbas__bis_002

    • mh_y_bisbas__bis_003

    • mh_y_bisbas__bis_004

    • mh_y_bisbas__bis_006

  • Excluded values: none

  • Validation criterion: none of 4 items missing

Usage

compute_mh_y_bisbas__bis_sum__v01(
  data,
  name = "mh_y_bisbas__bis_sum__v01",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_bisbas__bis_nm__v01()

Examples

## Not run: 
compute_mh_y_bisbas__bis_sum__v01(data) |>
  select(
    any_of(c("mh_y_bisbas__bis_sum__v01", vars_mh_y_bisbas__bis__v01))
  )

## End(Not run)

Compute all summary scores for mh_y_bisbas.

Description

This function computes all summary scores for the mh_y_bisbas table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_bisbas_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_bisbas_all(data)

## End(Not run)

Compute "Brief Problem Monitor [Youth] (Attention): Sum"

Description

Computes the summary score mh_y_bpm__attn_sum Brief Problem Monitor [Youth] (Attention): Sum

  • Summarized variables:

    • mh_y_bpm__attn_001

    • mh_y_bpm__attn_002

    • mh_y_bpm__attn_003

    • mh_y_bpm__attn_004

    • mh_y_bpm__attn_005

    • mh_y_bpm__attn_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_y_bpm__attn_sum(
  data,
  name = "mh_y_bpm__attn_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_bpm__attn_nm()

Examples

## Not run: 
compute_mh_y_bpm__attn_sum(data) |>
  select(
    any_of(c("mh_y_bpm__attn_sum", vars_mh_y_bpm__attn))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth] (Attention): T-score"

Description

Computes the summary score mh_y_bpm__attn_tscore Brief Problem Monitor [Youth] (Attention): T-score

  • Summarized variables:

    • mh_y_bpm__attn_001

    • mh_y_bpm__attn_002

    • mh_y_bpm__attn_003

    • mh_y_bpm__attn_004

    • mh_y_bpm__attn_005

    • mh_y_bpm__attn_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_y_bpm__attn_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_bpm__attn_tscore",
  col_age = "mh_y_bpm_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_bpm__attn_nm()

Examples

## Not run: 
compute_mh_y_bpm__attn_tscore(data) |>
  select(
    any_of(c("mh_y_bpm__attn_tscore", vars_mh_y_bpm__attn))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth] (Externalizing): Sum"

Description

Computes the summary score mh_y_bpm__ext_sum Brief Problem Monitor [Youth] (Externalizing): Sum

  • Summarized variables:

    • mh_y_bpm__ext_001

    • mh_y_bpm__ext_002

    • mh_y_bpm__ext_003

    • mh_y_bpm__ext_004

    • mh_y_bpm__ext_005

    • mh_y_bpm__ext_006

    • mh_y_bpm__ext_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_y_bpm__ext_sum(
  data,
  name = "mh_y_bpm__ext_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_bpm__ext_nm()

Examples

## Not run: 
compute_mh_y_bpm__ext_sum(data) |>
  select(
    any_of(c("mh_y_bpm__ext_sum", vars_mh_y_bpm__ext))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth] (Externalizing): T-score"

Description

Computes the summary score mh_y_bpm__ext_tscore Brief Problem Monitor [Youth] (Externalizing): T-score

  • Summarized variables:

    • mh_y_bpm__ext_001

    • mh_y_bpm__ext_002

    • mh_y_bpm__ext_003

    • mh_y_bpm__ext_004

    • mh_y_bpm__ext_005

    • mh_y_bpm__ext_006

    • mh_y_bpm__ext_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_y_bpm__ext_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_bpm__ext_tscore",
  col_age = "mh_y_bpm_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_bpm__ext_nm()

Examples

## Not run: 
compute_mh_y_bpm__ext_tscore(data) |>
  select(
    any_of(c("mh_y_bpm__ext_tscore", vars_mh_y_bpm__ext))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth] (Internalizing): Sum"

Description

Computes the summary score mh_y_bpm__int_sum Brief Problem Monitor [Youth] (Internalizing): Sum

  • Summarized variables:

    • mh_y_bpm__int_001

    • mh_y_bpm__int_002

    • mh_y_bpm__int_003

    • mh_y_bpm__int_004

    • mh_y_bpm__int_005

    • mh_y_bpm__int_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_y_bpm__int_sum(
  data,
  name = "mh_y_bpm__int_sum",
  max_na = 0,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_bpm__int_nm()

Examples

## Not run: 
compute_mh_y_bpm__int_sum(data) |>
  select(
    any_of(c("mh_y_bpm__int_sum", vars_mh_y_bpm__int))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth] (Internalizing): T-score"

Description

Computes the summary score mh_y_bpm__int_tscore Brief Problem Monitor [Youth] (Internalizing): T-score

  • Summarized variables:

    • mh_y_bpm__int_001

    • mh_y_bpm__int_002

    • mh_y_bpm__int_003

    • mh_y_bpm__int_004

    • mh_y_bpm__int_005

    • mh_y_bpm__int_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 6 items missing

Usage

compute_mh_y_bpm__int_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_bpm__int_tscore",
  col_age = "mh_y_bpm_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_bpm__int_nm()

Examples

## Not run: 
compute_mh_y_bpm__int_tscore(data) |>
  select(
    any_of(c("mh_y_bpm__int_tscore", vars_mh_y_bpm__int))
  )

## End(Not run)

Compute all summary scores for mh_y_bpm.

Description

This function computes all summary scores for the mh_y_bpm form. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_bpm_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_bpm_all(data)

## End(Not run)

Compute "Brief Problem Monitor [Youth]: Sum"

Description

Computes the summary score mh_y_bpm_sum Brief Problem Monitor [Youth]: Sum

  • Summarized variables:

    • mh_y_bpm__attn_001

    • mh_y_bpm__attn_002

    • mh_y_bpm__attn_003

    • mh_y_bpm__attn_004

    • mh_y_bpm__attn_005

    • mh_y_bpm__attn_006

    • mh_y_bpm__ext_001

    • mh_y_bpm__ext_002

    • mh_y_bpm__ext_003

    • mh_y_bpm__ext_004

    • mh_y_bpm__ext_005

    • mh_y_bpm__ext_006

    • mh_y_bpm__ext_007

    • mh_y_bpm__int_001

    • mh_y_bpm__int_002

    • mh_y_bpm__int_003

    • mh_y_bpm__int_004

    • mh_y_bpm__int_005

    • mh_y_bpm__int_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 19 items missing

Usage

compute_mh_y_bpm_sum(
  data,
  name = "mh_y_bpm_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_bpm_nm()

Examples

## Not run: 
compute_mh_y_bpm_sum(data) |>
  select(
    any_of(c("mh_y_bpm_sum", vars_mh_y_bpm))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth]: T-score"

Description

Computes the summary score mh_y_bpm_tscore Brief Problem Monitor [Youth]: T-score

  • Summarized variables:

    • mh_y_bpm__attn_001

    • mh_y_bpm__attn_002

    • mh_y_bpm__attn_003

    • mh_y_bpm__attn_004

    • mh_y_bpm__attn_005

    • mh_y_bpm__attn_006

    • mh_y_bpm__ext_001

    • mh_y_bpm__ext_002

    • mh_y_bpm__ext_003

    • mh_y_bpm__ext_004

    • mh_y_bpm__ext_005

    • mh_y_bpm__ext_006

    • mh_y_bpm__ext_007

    • mh_y_bpm__int_001

    • mh_y_bpm__int_002

    • mh_y_bpm__int_003

    • mh_y_bpm__int_004

    • mh_y_bpm__int_005

    • mh_y_bpm__int_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 19 items missing

Usage

compute_mh_y_bpm_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_bpm_tscore",
  col_age = "mh_y_bpm_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_bpm_nm()

Examples

## Not run: 
compute_mh_y_bpm_tscore(data) |>
  select(
    any_of(c("mh_y_bpm_tscore", vars_mh_y_bpm))
  )

## End(Not run)

Compute "Emotion Regulation Questionnaire [Youth] (Reappraisal): Number missing"

Description

Computes the summary score mh_y_erq__reapp_nm Emotion Regulation Questionnaire [Youth] (Reappraisal): Number missing

  • Summarized variables:

    • mh_y_erq__reapp_001

    • mh_y_erq__reapp_002

    • mh_y_erq__reapp_003

  • Excluded values:

    • 777

Usage

compute_mh_y_erq__reapp_nm(
  data,
  name = "mh_y_erq__reapp_nm",
  exclude = c("777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Value

tbl. see combine.

See Also

compute_mh_y_erq__reapp_mean()

Examples

## Not run: 
compute_mh_y_erq__reapp_nm(data) |>
  select(
    any_of(c("mh_y_erq__reapp_nm", vars_mh_y_erq__reapp))
  )

## End(Not run)

Compute "Emotion Regulation Questionnaire [Youth] (Suppression): Number missing"

Description

Computes the summary score mh_y_erq__suppr_nm Emotion Regulation Questionnaire [Youth] (Suppression): Number missing

  • Summarized variables:

    • mh_y_erq__suppr_001

    • mh_y_erq__suppr_002

    • mh_y_erq__suppr_003

  • Excluded values:

    • 777

Usage

compute_mh_y_erq__suppr_nm(
  data,
  name = "mh_y_erq__suppr_nm",
  exclude = c("777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Value

tbl. see combine.

See Also

compute_mh_y_erq__suppr_mean()

Examples

## Not run: 
compute_mh_y_erq__suppr_nm(data) |>
  select(
    any_of(c("mh_y_erq__suppr_nm", vars_mh_y_erq__suppr))
  )

## End(Not run)

Compute all summary scores for mh_y_erq.

Description

This function computes all summary scores for the mh_y_erq table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_erq_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_erq_all(data)

## End(Not run)

Compute all summary scores for mh_y_ksads__bpd

Description

This function computes all summary scores for the mh_y_ksads__bpd table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__bpd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__cond

Description

This function computes all summary scores for the mh_y_ksads__cond table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__cond_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__dep

Description

This function computes all summary scores for the mh_y_ksads__dep table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__dep_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__dep

Description

This function computes all summary scores for the mh_y_ksads__dep table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__dmdd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__ed

Description

This function computes all summary scores for the mh_y_ksads__ed table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__ed_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__gad

Description

This function computes all summary scores for the mh_y_ksads__gad table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__gad_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__ocd

Description

This function computes all summary scores for the mh_y_ksads__ocd table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__ocd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__panic

Description

This function computes all summary scores for the mh_y_ksads__panic table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__panic_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__ptsd

Description

This function computes all summary scores for the mh_y_ksads__ptsd table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__ptsd_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__sleep

Description

This function computes all summary scores for the mh_y_ksads__sleep table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__sleep_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__socanx

Description

This function computes all summary scores for the mh_y_ksads__socanx table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__socanx_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_ksads__suic

Description

This function computes all summary scores for the mh_y_ksads__suic table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ksads__suic_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for mh_y_upps.

Description

This function computes all summary scores for the mh_y_pai table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_pai_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_pai_all(data)

## End(Not run)

Compute "NIH Toolbox - Positive Affect Items [Youth] (NA): Sum [Validation: None missing or declined]"

Description

Computes the summary score mh_y_pai_sum NIH Toolbox - Positive Affect Items [Youth] (NA): Sum [Validation: None missing or declined]

  • Summarized variables:

    • mh_y_pai_001

    • mh_y_pai_002

    • mh_y_pai_003

    • mh_y_pai_004

    • mh_y_pai_005

    • mh_y_pai_006

    • mh_y_pai_007

    • mh_y_pai_008

    • mh_y_pai_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: none of 9 items missing

Usage

compute_mh_y_pai_sum(
  data,
  name = "mh_y_pai_sum",
  max_na = 0,
  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.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_pai_nm()

Examples

## Not run: 
compute_mh_y_pai_sum(data) |>
  select(
    any_of(c("mh_y_pai_sum", vars_mh_y_pai))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Overt Aggression): Sum"

Description

Computes the summary score mh_y_peq__overt__agg_sum Peer Experiences Questionnaire [Youth] (Overt Aggression): Sum

  • Summarized variables:

    • mh_y_peq__overt__agg_001

    • mh_y_peq__overt__agg_002

    • mh_y_peq__overt__agg_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

compute_mh_y_peq__overt__agg_sum(
  data,
  name = "mh_y_peq__overt__agg_sum",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_peq__overt__agg_nm()

Examples

## Not run: 
compute_mh_y_peq__overt__agg_sum(data) |>
  select(
    any_of(c("mh_y_peq__overt__agg_sum", vars_mh_y_peq__overt__agg))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Overt Victimization): Sum"

Description

Computes the summary score mh_y_peq__overt__vict_sum Peer Experiences Questionnaire [Youth] (Overt Victimization): Sum

  • Summarized variables:

    • mh_y_peq__overt__vict_001

    • mh_y_peq__overt__vict_002

    • mh_y_peq__overt__vict_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

compute_mh_y_peq__overt__vict_sum(
  data,
  name = "mh_y_peq__overt__vict_sum",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_peq__overt__vict_nm()

Examples

## Not run: 
compute_mh_y_peq__overt__vict_sum(data) |>
  select(
    any_of(c("mh_y_peq__overt__vict_sum", vars_mh_y_peq__overt__vict))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Relational Aggression): Sum"

Description

Computes the summary score mh_y_peq__rel__agg_sum Peer Experiences Questionnaire [Youth] (Relational Aggression): Sum

  • Summarized variables:

    • mh_y_peq__rel__agg_001

    • mh_y_peq__rel__agg_002

    • mh_y_peq__rel__agg_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

compute_mh_y_peq__rel__agg_sum(
  data,
  name = "mh_y_peq__rel__agg_sum",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_peq__rel__agg_nm()

Examples

## Not run: 
compute_mh_y_peq__rel__agg_sum(data) |>
  select(
    any_of(c("mh_y_peq__rel__agg_sum", vars_mh_y_peq__rel__agg))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Relational Victimization): Sum"

Description

Computes the summary score mh_y_peq__rel__vict_sum Peer Experiences Questionnaire [Youth] (Relational Victimization): Sum

  • Summarized variables:

    • mh_y_peq__rel__vict_001

    • mh_y_peq__rel__vict_002

    • mh_y_peq__rel__vict_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

compute_mh_y_peq__rel__vict_sum(
  data,
  name = "mh_y_peq__rel__vict_sum",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_peq__rel__vict_nm()

Examples

## Not run: 
compute_mh_y_peq__rel__vict_sum(data) |>
  select(
    any_of(c("mh_y_peq__rel__vict_sum", vars_mh_y_peq__rel__vict))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Reputational Aggression): Sum"

Description

Computes the summary score mh_y_peq__rep__agg_sum Peer Experiences Questionnaire [Youth] (Reputational Aggression): Sum

  • Summarized variables:

    • mh_y_peq__rep__agg_001

    • mh_y_peq__rep__agg_002

    • mh_y_peq__rep__agg_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

compute_mh_y_peq__rep__agg_sum(
  data,
  name = "mh_y_peq__rep__agg_sum",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_peq__rep__agg_nm()

Examples

## Not run: 
compute_mh_y_peq__rep__agg_sum(data) |>
  select(
    any_of(c("mh_y_peq__rep__agg_sum", vars_mh_y_peq__rep__agg))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Reputational Victimization): Sum"

Description

Computes the summary score mh_y_peq__rep__vict_sum Peer Experiences Questionnaire [Youth] (Reputational Victimization): Sum

  • Summarized variables:

    • mh_y_peq__rep__vict_001

    • mh_y_peq__rep__vict_002

    • mh_y_peq__rep__vict_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

compute_mh_y_peq__rep__vict_sum(
  data,
  name = "mh_y_peq__rep__vict_sum",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_peq__rep__vict_nm()

Examples

## Not run: 
compute_mh_y_peq__rep__vict_sum(data) |>
  select(
    any_of(c("mh_y_peq__rep__vict_sum", vars_mh_y_peq__rep__vict))
  )

## End(Not run)

Compute all summary scores for mh_y_peq.

Description

This function computes all summary scores for the mh_y_peq table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_peq_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_peq_all(data)

## End(Not run)

Compute "Life Events [Youth] (Experience Bad Events): Count"

Description

Computes the summary score mh_y_ple__exp__bad_count Life Events [Youth] (Experience Bad Events): Count

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp__bad_count(
  data,
  name = "mh_y_ple__exp__bad_count",
  combine = TRUE,
  max_na = NULL
)

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Youth] (Experience Bad Events): Count - Version 1 (Year 3)"

Description

Computes the summary score mh_y_ple__exp__bad_count__v01 Life Events [Youth] (Experience Bad Events): Count - Version 1 (Year 3)

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp__bad_count__v01(
  data,
  name = "mh_y_ple__exp__bad_count__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Youth] (Experience Bad Events): Count - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_y_ple__exp__bad_count__v02 Life Events [Youth] (Experience Bad Events): Count - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp__bad_count__v02(
  data,
  name = "mh_y_ple__exp__bad_count__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Youth] (Experience Bad Events): Count - Version 3 (Starting at Year 6)"

Description

Computes the summary score mh_y_ple__exp__bad_count__v03 Life Events [Youth] (Experience Bad Events): Count - Version 3 (Starting at Year 6)

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__exp_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp__bad_count__v03(
  data,
  name = "mh_y_ple__exp__bad_count__v03",
  events = c("ses-06A", "ses-07A"),
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Youth] (Experience Good Events): Count"

Description

Computes the summary score mh_y_ple__exp__good_count Life Events [Youth] (Experience Good Events): Count

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp__good_count(
  data,
  name = "mh_y_ple__exp__good_count",
  combine = TRUE,
  max_na = NULL
)

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Youth] (Experience Good Events): Count - Version 1 (Year 3)"

Description

Computes the summary score mh_y_ple__exp__good_count__v01 Life Events [Youth] (Experience Good Events): Count - Version 1 (Year 3)

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp__good_count__v01(
  data,
  name = "mh_y_ple__exp__good_count__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Youth] (Experience Good Events): Count - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_y_ple__exp__good_count__v02 Life Events [Youth] (Experience Good Events): Count - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp__good_count__v02(
  data,
  name = "mh_y_ple__exp__good_count__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Youth] (Experience Good Events): Count - Version 3 (Starting at Year 6)"

Description

Computes the summary score mh_y_ple__exp__good_count__v03 Life Events [Youth] (Experience Good Events): Count - Version 3 (Starting at Year 6)

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__exp_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp__good_count__v03(
  data,
  name = "mh_y_ple__exp__good_count__v03",
  events = c("ses-06A", "ses-07A"),
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Value

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


Compute "Life Events [Youth] (Experience): Number missing"

Description

Computes the summary score mh_y_ple__exp_nm Life Events [Youth] (Experience): Number missing

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp_nm(data, name = "mh_y_ple__exp_nm", 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.


Compute "Life Events [Youth] (Experience): Number missing - Version 1 (Year 3)"

Description

Computes the summary score mh_y_ple__exp_nm__v01 Life Events [Youth] (Experience): Number missing - Version 1 (Year 3)

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp_nm__v01(
  data,
  name = "mh_y_ple__exp_nm__v01",
  events = "ses-03A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Youth] (Experience): Number missing - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_y_ple__exp_nm__v02 Life Events [Youth] (Experience): Number missing - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp_nm__v02(
  data,
  name = "mh_y_ple__exp_nm__v02",
  events = c("ses-04A", "ses-05A"),
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Youth] (Experience): Number missing - Version 3 (Starting at Year 6)"

Description

Computes the summary score mh_y_ple__exp_nm__v03 Life Events [Youth] (Experience): Number missing - Version 3 (Starting at Year 6)

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__exp_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__exp_nm__v03(
  data,
  name = "mh_y_ple__exp_nm__v03",
  events = c("ses-06A", "ses-07A"),
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Youth] (Severity of Bad Events): Mean [Validation: No more than 5 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__bad_mean Life Events [Youth] (Severity of Bad Events): Mean [Validation: No more than 5 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

compute_mh_y_ple__severity__bad_mean(
  data,
  name = "mh_y_ple__severity__bad_mean",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Value

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


Compute "Life Events [Youth] (Severity of Bad Events): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__bad_mean__v01 Life Events [Youth] (Severity of Bad Events): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

compute_mh_y_ple__severity__bad_mean__v01(
  data,
  name = "mh_y_ple__severity__bad_mean__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity of Bad Events): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__bad_mean__v02 Life Events [Youth] (Severity of Bad Events): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_y_ple__severity__bad_mean__v02(
  data,
  name = "mh_y_ple__severity__bad_mean__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity of Bad Events): Mean - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__bad_mean__v03 Life Events [Youth] (Severity of Bad Events): Mean - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__exp_033

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_y_ple__severity__bad_mean__v03(
  data,
  name = "mh_y_ple__severity__bad_mean__v03",
  events = c("ses-06A", "ses-07A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity of Bad Events): Sum [Validation: No more than 5 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__bad_sum Life Events [Youth] (Severity of Bad Events): Sum [Validation: No more than 5 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

compute_mh_y_ple__severity__bad_sum(
  data,
  name = "mh_y_ple__severity__bad_sum",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Value

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


Compute "Life Events [Youth] (Severity of Bad Events): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__bad_sum__v01 Life Events [Youth] (Severity of Bad Events): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

compute_mh_y_ple__severity__bad_sum__v01(
  data,
  name = "mh_y_ple__severity__bad_sum__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity of Bad Events): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__bad_sum__v02 Life Events [Youth] (Severity of Bad Events): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_y_ple__severity__bad_sum__v02(
  data,
  name = "mh_y_ple__severity__bad_sum__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity of Bad Events): Sum - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__bad_sum__v03 Life Events [Youth] (Severity of Bad Events): Sum - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__exp_033

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_y_ple__severity__bad_sum__v03(
  data,
  name = "mh_y_ple__severity__bad_sum__v03",
  events = c("ses-06A", "ses-07A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity of Good Events): Mean [Validation: No more than 5 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__good_mean Life Events [Youth] (Severity of Good Events): Mean [Validation: No more than 5 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

compute_mh_y_ple__severity__good_mean(
  data,
  name = "mh_y_ple__severity__good_mean",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Value

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


Compute "Life Events [Youth] (Severity of Good Events): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__good_mean__v01 Life Events [Youth] (Severity of Good Events): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

compute_mh_y_ple__severity__good_mean__v01(
  data,
  name = "mh_y_ple__severity__good_mean__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity of Good Events): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__good_mean__v02 Life Events [Youth] (Severity of Good Events): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_y_ple__severity__good_mean__v02(
  data,
  name = "mh_y_ple__severity__good_mean__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity of Good Events): Mean - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__good_mean__v03 Life Events [Youth] (Severity of Good Events): Mean - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__exp_033

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_y_ple__severity__good_mean__v03(
  data,
  name = "mh_y_ple__severity__good_mean__v03",
  events = c("ses-06A", "ses-07A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity): Mean [Validation: No more than 5 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity_mean Life Events [Youth] (Severity): Mean [Validation: No more than 5 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

compute_mh_y_ple__severity_mean(
  data,
  name = "mh_y_ple__severity_mean",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Value

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


Compute "Life Events [Youth] (Severity): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity_mean__v01 Life Events [Youth] (Severity): Mean - Version 1 (Year 3) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

compute_mh_y_ple__severity_mean__v01(
  data,
  name = "mh_y_ple__severity_mean__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity_mean__v02 Life Events [Youth] (Severity): Mean - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

compute_mh_y_ple__severity_mean__v02(
  data,
  name = "mh_y_ple__severity_mean__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity): Mean - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity_mean__v03 Life Events [Youth] (Severity): Mean - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_033

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 34 items missing

Usage

compute_mh_y_ple__severity_mean__v03(
  data,
  name = "mh_y_ple__severity_mean__v03",
  events = c("ses-06A", "ses-07A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Value

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


Compute "Life Events [Youth] (Severity): Number missing"

Description

Computes the summary score mh_y_ple__severity_nm Life Events [Youth] (Severity): Number missing

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__severity_nm(
  data,
  name = "mh_y_ple__severity_nm",
  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.


Compute "Life Events [Youth] (Severity): Number missing - Version 1 (Year 3)"

Description

Computes the summary score mh_y_ple__severity_nm__v01 Life Events [Youth] (Severity): Number missing - Version 1 (Year 3)

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__severity_nm__v01(
  data,
  name = "mh_y_ple__severity_nm__v01",
  events = "ses-03A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Youth] (Severity): Number missing - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_y_ple__severity_nm__v02 Life Events [Youth] (Severity): Number missing - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__severity_nm__v02(
  data,
  name = "mh_y_ple__severity_nm__v02",
  events = c("ses-04A", "ses-05A"),
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Youth] (Severity): Number missing - Version 3 (Starting at Year 6)"

Description

Computes the summary score mh_y_ple__severity_nm__v03 Life Events [Youth] (Severity): Number missing - Version 3 (Starting at Year 6)

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_033

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple__severity_nm__v03(
  data,
  name = "mh_y_ple__severity_nm__v03",
  events = c("ses-06A", "ses-07A"),
  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).

events

character vector. Event (session ID) to be used.

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.


Compute all summary scores for mh_y_ple

Description

This function computes all summary scores for the mh_y_ple form. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ple_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_ple_all(data)

## End(Not run)

Compute "Life Events [Youth] (Events): Number missing"

Description

Computes the summary score mh_y_ple_nm Life Events [Youth] (Events): Number missing

  • Summarized variables:

    • mh_y_ple_001

    • mh_y_ple_002

    • mh_y_ple_003

    • mh_y_ple_004

    • mh_y_ple_005

    • mh_y_ple_006

    • mh_y_ple_007

    • mh_y_ple_008

    • mh_y_ple_009

    • mh_y_ple_010

    • mh_y_ple_011

    • mh_y_ple_012

    • mh_y_ple_013

    • mh_y_ple_014

    • mh_y_ple_015

    • mh_y_ple_016

    • mh_y_ple_017

    • mh_y_ple_018

    • mh_y_ple_019

    • mh_y_ple_020

    • mh_y_ple_021

    • mh_y_ple_022

    • mh_y_ple_023

    • mh_y_ple_024

    • mh_y_ple_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple_nm(data, name = "mh_y_ple_nm", 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.


Compute "Life Events [Youth] (Events): Number missing - Version 1 (Year 3)"

Description

Computes the summary score mh_y_ple_nm__v01 Life Events [Youth] (Events): Number missing - Version 1 (Year 3)

  • Summarized variables:

    • mh_y_ple_001

    • mh_y_ple_002

    • mh_y_ple_003

    • mh_y_ple_004

    • mh_y_ple_005

    • mh_y_ple_006

    • mh_y_ple_007

    • mh_y_ple_008

    • mh_y_ple_009

    • mh_y_ple_010

    • mh_y_ple_011

    • mh_y_ple_012

    • mh_y_ple_013

    • mh_y_ple_014

    • mh_y_ple_015

    • mh_y_ple_016

    • mh_y_ple_017

    • mh_y_ple_018

    • mh_y_ple_019

    • mh_y_ple_020

    • mh_y_ple_021

    • mh_y_ple_022

    • mh_y_ple_023

    • mh_y_ple_024

    • mh_y_ple_025

    • mh_y_ple_026

    • mh_y_ple_027

    • mh_y_ple_028

    • mh_y_ple_029

    • mh_y_ple_030

    • mh_y_ple_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple_nm__v01(
  data,
  name = "mh_y_ple_nm__v01",
  events = "ses-03A",
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Youth] (Events): Number missing - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_y_ple_nm__v02 Life Events [Youth] (Events): Number missing - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_y_ple_001

    • mh_y_ple_002

    • mh_y_ple_003

    • mh_y_ple_004

    • mh_y_ple_005

    • mh_y_ple_006

    • mh_y_ple_007

    • mh_y_ple_008

    • mh_y_ple_009

    • mh_y_ple_010

    • mh_y_ple_011

    • mh_y_ple_012

    • mh_y_ple_013

    • mh_y_ple_014

    • mh_y_ple_015

    • mh_y_ple_016

    • mh_y_ple_017

    • mh_y_ple_018

    • mh_y_ple_019

    • mh_y_ple_020

    • mh_y_ple_021

    • mh_y_ple_022

    • mh_y_ple_023

    • mh_y_ple_024

    • mh_y_ple_025

    • mh_y_ple_026

    • mh_y_ple_027

    • mh_y_ple_028

    • mh_y_ple_029

    • mh_y_ple_030

    • mh_y_ple_031

    • mh_y_ple_032

    • mh_y_ple_034

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple_nm__v02(
  data,
  name = "mh_y_ple_nm__v02",
  events = c("ses-04A", "ses-05A"),
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Life Events [Youth] (Events): Number missing - Version 3 (Starting at Year 6)"

Description

Computes the summary score mh_y_ple_nm__v03 Life Events [Youth] (Events): Number missing - Version 3 (Starting at Year 6)

  • Summarized variables:

    • mh_y_ple_001

    • mh_y_ple_002

    • mh_y_ple_003

    • mh_y_ple_004

    • mh_y_ple_005

    • mh_y_ple_006

    • mh_y_ple_007

    • mh_y_ple_008

    • mh_y_ple_009

    • mh_y_ple_010

    • mh_y_ple_011

    • mh_y_ple_012

    • mh_y_ple_013

    • mh_y_ple_014

    • mh_y_ple_015

    • mh_y_ple_016

    • mh_y_ple_017

    • mh_y_ple_018

    • mh_y_ple_019

    • mh_y_ple_020

    • mh_y_ple_021

    • mh_y_ple_022

    • mh_y_ple_023

    • mh_y_ple_024

    • mh_y_ple_025

    • mh_y_ple_026

    • mh_y_ple_027

    • mh_y_ple_028

    • mh_y_ple_029

    • mh_y_ple_030

    • mh_y_ple_031

    • mh_y_ple_032

    • mh_y_ple_033

    • mh_y_ple_034

  • Excluded values:

    • 444

    • 777

    • 999

Usage

compute_mh_y_ple_nm__v03(
  data,
  name = "mh_y_ple_nm__v03",
  events = c("ses-06A", "ses-07A"),
  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).

events

character vector. Event (session ID) to be used.

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.


Compute "Prodromal Psychosis Scale [Youth] (Bother "No" responses): Count"

Description

Computes the summary score mh_y_pps__bother__no_count Prodromal Psychosis Scale [Youth] (Bother

  • Summarized variables:

    • mh_y_pps__bother_001

    • mh_y_pps__bother_002

    • mh_y_pps__bother_003

    • mh_y_pps__bother_004

    • mh_y_pps__bother_005

    • mh_y_pps__bother_006

    • mh_y_pps__bother_007

    • mh_y_pps__bother_008

    • mh_y_pps__bother_009

    • mh_y_pps__bother_010

    • mh_y_pps__bother_011

    • mh_y_pps__bother_012

    • mh_y_pps__bother_013

    • mh_y_pps__bother_014

    • mh_y_pps__bother_015

    • mh_y_pps__bother_016

    • mh_y_pps__bother_017

    • mh_y_pps__bother_018

    • mh_y_pps__bother_019

    • mh_y_pps__bother_020

    • mh_y_pps__bother_021

  • Excluded values: none

  • Validation criterion: 0 of 21 items missing

Usage

compute_mh_y_pps__bother__no_count(
  data,
  name = "mh_y_pps__bother__no_count",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Details

The bother count is depend on the mh_y_pps__bother_nm score. If the mh_y_pps__bother_nm score is greater than max_na, the bother count is set to NA.

There is also a sanity check for the gating question in PPS bother score. If the paired gating question is 0 or NA and the bother score is not missing, the paired bother score is set to NA before computing the count.

Value

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

See Also

compute_mh_y_pps__bother_nm()

Examples

## Not run: 
compute_mh_y_pps__bother__no_count(data) |>
  select(
    any_of(c("mh_y_pps__bother__no_count", vars_mh_y_pps__bother))
  )

## End(Not run)

Compute "Prodromal Psychosis Scale [Youth] (Bother "Yes" responses): Count"

Description

Computes the summary score mh_y_pps__bother__yes_count Prodromal Psychosis Scale [Youth] (Bother

  • Summarized variables:

    • mh_y_pps__bother_001

    • mh_y_pps__bother_002

    • mh_y_pps__bother_003

    • mh_y_pps__bother_004

    • mh_y_pps__bother_005

    • mh_y_pps__bother_006

    • mh_y_pps__bother_007

    • mh_y_pps__bother_008

    • mh_y_pps__bother_009

    • mh_y_pps__bother_010

    • mh_y_pps__bother_011

    • mh_y_pps__bother_012

    • mh_y_pps__bother_013

    • mh_y_pps__bother_014

    • mh_y_pps__bother_015

    • mh_y_pps__bother_016

    • mh_y_pps__bother_017

    • mh_y_pps__bother_018

    • mh_y_pps__bother_019

    • mh_y_pps__bother_020

    • mh_y_pps__bother_021

  • Excluded values: none

  • Validation criterion: 0 of 21 items missing

Usage

compute_mh_y_pps__bother__yes_count(
  data,
  name = "mh_y_pps__bother__yes_count",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Details

The bother count is depend on the mh_y_pps__bother_nm score. If the mh_y_pps__bother_nm score is greater than max_na, the bother count is set to NA.

There is also a sanity check for the gating question in PPS bother score. If the paired gating question is 0 or NA and the bother score is not missing, the paired bother score is set to NA before computing the count.

Value

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

See Also

compute_mh_y_pps__bother_nm()

Examples

## Not run: 
compute_mh_y_pps__bother__yes_count(data) |>
  select(
    any_of(c("mh_y_pps__bother__yes_count", vars_mh_y_pps__bother))
  )

## End(Not run)

Compute "Prodromal Psychosis Scale [Youth] (Current Distress Score)"

Description

Computes the summary score mh_y_pps__dist__curr_score Prodromal Psychosis Scale [Youth] (Current Distress Score)

For the current wave, if z-score of mh_y_pps__severity_score normalized across all current participants in the assessment wave is >= 1.96, set the value to "1"; else set the value to "0". If there is no score for the current assessment wave,set the value to NA (missing).

  • Summarized variables:

    • mh_y_pps__severity_score (intermediate score)

  • Excluded values: none

  • Validation criterion: none

Usage

compute_mh_y_pps__dist__curr_score(
  data,
  name = "mh_y_pps__dist__curr_score",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

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.

Value

tbl. see combine.

See Also

compute_mh_y_pps__severity_score()


Compute "Prodromal Psychosis Scale [Youth] (Persistent Distress Score)"

Description

Computes the summary score mh_y_pps__dist__pers_score Prodromal Psychosis Scale [Youth] (Persistent Distress Score)

For the last 3 consecutive waves (this wave, prior annual wave, and the wave before that), if 2 or more waves have a mh_y_pps__dist__curr_score of "1", then score is "1", else "0"; if more than 1 NA values in the last 3 waves, then score is NA.

The persistent flag is derived from a padded annual timeline per participant. Missing annual visits between observed sessions are treated as NA, so each observed session evaluates the current wave plus the two immediately preceding annual slots, even if data were not collected for one of those visits. The special case where both ⁠ses-00A⁠ and ⁠ses-01A⁠ meet the threshold (1) is also treated as persistent at ⁠ses-01A⁠.

  • Summarized variables:

    • mh_y_pps__dist__curr_score (intermediate score)

  • Excluded values: none

  • Validation criterion: none

Usage

compute_mh_y_pps__dist__pers_score(
  data,
  name = "mh_y_pps__dist__pers_score",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

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.

Value

tbl. see combine.

See Also

compute_mh_y_pps__dist__curr_score()


Compute "Prodromal Psychosis Scale [Youth] (Severity Score): Mean"

Description

Computes the summary score mh_y_pps__severity_mean Prodromal Psychosis Scale [Youth] (Severity Score): Mean

  • Summarized variables:

    • mh_y_pps_001

    • mh_y_pps_002

    • mh_y_pps_003

    • mh_y_pps_004

    • mh_y_pps_005

    • mh_y_pps_006

    • mh_y_pps_007

    • mh_y_pps_008

    • mh_y_pps_009

    • mh_y_pps_010

    • mh_y_pps_011

    • mh_y_pps_012

    • mh_y_pps_013

    • mh_y_pps_014

    • mh_y_pps_015

    • mh_y_pps_016

    • mh_y_pps_017

    • mh_y_pps_018

    • mh_y_pps_019

    • mh_y_pps_020

    • mh_y_pps_021

    • mh_y_pps__severity_001

    • mh_y_pps__severity_002

    • mh_y_pps__severity_003

    • mh_y_pps__severity_004

    • mh_y_pps__severity_005

    • mh_y_pps__severity_006

    • mh_y_pps__severity_007

    • mh_y_pps__severity_008

    • mh_y_pps__severity_009

    • mh_y_pps__severity_010

    • mh_y_pps__severity_011

    • mh_y_pps__severity_012

    • mh_y_pps__severity_013

    • mh_y_pps__severity_014

    • mh_y_pps__severity_015

    • mh_y_pps__severity_016

    • mh_y_pps__severity_017

    • mh_y_pps__severity_018

    • mh_y_pps__severity_019

    • mh_y_pps__severity_020

    • mh_y_pps__severity_021

  • Excluded values: none

  • Validation criterion: none of 21 items missing

Usage

compute_mh_y_pps__severity_mean(
  data,
  name = "mh_y_pps__severity_mean",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Details

The mean severity score is calculated by dividing the total severity score by the number of mh_y_pps__bother__yes_count. If any of the two values is missing, the mean severity score is set to NA.

Value

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

See Also

compute_mh_y_pps__bother__yes_count()

Examples

## Not run: 
compute_mh_y_pps__severity_mean(data) |>
  select(
    any_of(c("mh_y_pps__severity_mean", vars_mh_y_pps__severity))
  )

## End(Not run)

Compute "Prodromal Psychosis Scale [Youth] (Severity Score)"

Description

Computes the summary score mh_y_pps__severity_score Prodromal Psychosis Scale [Youth] (Severity Score)

  • Summarized variables:

    • mh_y_pps__severity_001

    • mh_y_pps__severity_002

    • mh_y_pps__severity_003

    • mh_y_pps__severity_004

    • mh_y_pps__severity_005

    • mh_y_pps__severity_006

    • mh_y_pps__severity_007

    • mh_y_pps__severity_008

    • mh_y_pps__severity_009

    • mh_y_pps__severity_010

    • mh_y_pps__severity_011

    • mh_y_pps__severity_012

    • mh_y_pps__severity_013

    • mh_y_pps__severity_014

    • mh_y_pps__severity_015

    • mh_y_pps__severity_016

    • mh_y_pps__severity_017

    • mh_y_pps__severity_018

    • mh_y_pps__severity_019

    • mh_y_pps__severity_020

    • mh_y_pps__severity_021

  • Excluded values: none

  • Validation criterion: none of 21 items missing

Usage

compute_mh_y_pps__severity_score(
  data,
  name = "mh_y_pps__severity_score",
  max_na = 0,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Details

The severity score is calculated by summing the severity scores for each question and adding the number of mh_y_pps__bother__yes_count to the total.

However, if the mh_y_pps__severity_nm score is greater than max_na, the severity score is set to NA.

There is also a sanity check for the gating question of PPS base/bother score. If the paired base/bother question is 0 or NA and the severity score is not missing, the paired severity score is set to NA before computing the score.

Value

tbl. see combine.

See Also

compute_mh_y_pps__bother__yes_count()

Examples

## Not run: 
compute_mh_y_pps__severity_score(data) |>
  select(
    any_of(c("mh_y_pps__severity_score", vars_mh_y_pps__severity))
  ) |>
  View()

## End(Not run)

Compute all PPS scores

Description

This super function computes all scores in PPS using all the default arguments.

Usage

compute_mh_y_pps_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Details

Make sure the data is the full set of all variables from PPS

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_pps_all(data)

## End(Not run)

Compute "Prodromal Psychosis Scale [Youth] (number of responses): Number missing "

Description

Computes the summary score mh_y_pps_nm Prodromal Psychosis Scale [Youth] (number of responses): Number missing

  • Summarized variables:

    • mh_y_pps_001

    • mh_y_pps_002

    • mh_y_pps_003

    • mh_y_pps_004

    • mh_y_pps_005

    • mh_y_pps_006

    • mh_y_pps_007

    • mh_y_pps_008

    • mh_y_pps_009

    • mh_y_pps_010

    • mh_y_pps_011

    • mh_y_pps_012

    • mh_y_pps_013

    • mh_y_pps_014

    • mh_y_pps_015

    • mh_y_pps_016

    • mh_y_pps_017

    • mh_y_pps_018

    • mh_y_pps_019

    • mh_y_pps_020

    • mh_y_pps_021

Usage

compute_mh_y_pps_nm(data, name = "mh_y_pps_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_mh_y_pps_count()

Examples

## Not run: 
compute_mh_y_pps_nm(data) |>
  select(
    any_of(c("mh_y_pps_nm", vars_mh_y_pps_count))
  )

## End(Not run)

Compute "Prodromal Psychosis Scale [Youth] (Current Distress Count)"

Description

Computes the summary score mh_y_ppsss__dist__curr_count Prodromal Psychosis Scale [Youth] (Current Distress Count): Number of times criteria met.

This function creates a static variable from longitudinal data.

  • Summarized variables:

    • mh_y_pps__dist__curr_score (intermediate score)

  • Excluded values: none

  • Validation criterion: none

Usage

compute_mh_y_ppsss__dist__curr_count(
  data,
  name = "mh_y_ppsss__dist__curr_count"
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

Value

a tibble of the participant_id column and the new static column

See Also

compute_mh_y_pps__dist__curr_score()


Compute "Static Prodromal Psychosis Scale [Youth] (Current Distress Ever)"

Description

Static Prodromal Psychosis Scale [Youth] (Current Distress Ever): Indicates if criteria ever met

This function creates a static variable from longitudinal data.

  • Summarized variables:

    • mh_y_pps__dist__curr_score (intermediate score)

  • Excluded values: none

  • Validation criterion: none

Usage

compute_mh_y_ppsss__dist__curr_ever(data, name = "mh_y_ppsss__dist__curr_ever")

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

Value

a tibble of the participant_id column and the new static column

See Also

compute_mh_y_pps__dist__curr_score()


Compute "Static Prodromal Psychosis Scale [Youth] (First Current Distress)"

Description

Static Prodromal Psychosis Scale [Youth] (First Current Distress): Session when criteria first met

This function creates a static variable from longitudinal data.

  • Summarized variables:

    • mh_y_pps__dist__curr_score (intermediate score)

  • Excluded values: none

  • Validation criterion: none

Usage

compute_mh_y_ppsss__dist__curr_first(
  data,
  name = "mh_y_ppsss__dist__curr_first"
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

Value

a tibble of the participant_id column and the new static column

See Also

compute_mh_y_pps__dist__curr_score()


Compute "Prodromal Psychosis Scale [Youth] (Persistent Distress Count)"

Description

Computes the summary score mh_y_ppsss__dist__pers_count Prodromal Psychosis Scale [Youth] (Persistent Distress Count): Number of times criteria met

This function creates a static variable from longitudinal data.

  • Summarized variables:

    • mh_y_pps__dist__pers_score (intermediate score)

  • Excluded values: none

  • Validation criterion: none

Usage

compute_mh_y_ppsss__dist__pers_count(
  data,
  name = "mh_y_ppsss__dist__pers_count"
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

Value

a tibble of the participant_id column and the new static column

See Also

compute_mh_y_pps__dist__pers_score()


Compute "Static Prodromal Psychosis Scale [Youth] (Persistent Distress Ever)"

Description

Static Prodromal Psychosis Scale [Youth] (Persistent Distress Ever): Indicates if criteria ever met

  • Summarized variables:

    • mh_y_pps__dist__pers_score (intermediate score)

  • Excluded values: none

  • Validation criterion: none

This function creates a static variable from longitudinal data.

Usage

compute_mh_y_ppsss__dist__pers_ever(data, name = "mh_y_ppsss__dist__pers_ever")

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

Value

a tibble of the participant_id column and the new static column

See Also

compute_mh_y_pps__dist__pers_score()


Compute "Prodromal Psychosis Scale [Youth] (First Persistent Distress)"

Description

Static Prodromal Psychosis Scale [Youth] (First Persistent Distress): Session when criteria first met

  • Summarized variables:

    • mh_y_pps__dist__pers_score (intermediate score)

  • Excluded values: none

  • Validation criterion: none

This function creates a static variable from longitudinal data.

Usage

compute_mh_y_ppsss__dist__pers_first(
  data,
  name = "mh_y_ppsss__dist__pers_first"
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

Value

a tibble of the participant_id column and the new static column

See Also

compute_mh_y_pps__dist__pers_score()


Compute all the mh_y_ppsss scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_mh_y_ppsss_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

a tibble of the participant_id column and the new static columns


Compute all summary scores for mh_y_sup.

Description

This function computes all summary scores for the mh_y_sup table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_sup_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_sup_all(data)

## End(Not run)

Compute "7-Up Mania Inventory [Youth]: Sum"

Description

Computes the summary score mh_y_sup_sum 7-Up Mania Inventory [Youth]: Sum

  • Summarized variables:

    • mh_y_sup_001

    • mh_y_sup_002

    • mh_y_sup_003

    • mh_y_sup_004

    • mh_y_sup_005

    • mh_y_sup_006

    • mh_y_sup_007

  • Excluded values: none

  • Validation criterion: none of 7 items missing

Usage

compute_mh_y_sup_sum(
  data,
  name = "mh_y_sup_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_sup_nm()

Examples

## Not run: 
compute_mh_y_sup_sum(data) |>
  select(
    any_of(c("mh_y_sup_sum", vars_mh_y_sup))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Negative Urgency): Sum"

Description

Computes the summary score mh_y_upps__nurg_sum Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Negative Urgency): Sum

  • Summarized variables:

    • mh_y_upps__nurg_001

    • mh_y_upps__nurg_002

    • mh_y_upps__nurg_003

    • mh_y_upps__nurg_004

  • Excluded values: none

  • Validation criterion: none of 4 items missing

Usage

compute_mh_y_upps__nurg_sum(
  data,
  name = "mh_y_upps__nurg_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_upps__nurg_nm()

Examples

## Not run: 
compute_mh_y_upps__nurg_sum(data) |>
  select(
    any_of(c("mh_y_upps__nurg_sum", vars_mh_y_upps__nurg))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Lack of Perseverance (GSSF)): Sum"

Description

Computes the summary score mh_y_upps__pers_sum Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Lack of Perseverance (GSSF)): Sum

  • Summarized variables:

    • mh_y_upps__pers_001

    • mh_y_upps__pers_002

    • mh_y_upps__pers_003

    • mh_y_upps__pers_004

  • Excluded values: none

  • Validation criterion: none of 4 items missing

Usage

compute_mh_y_upps__pers_sum(
  data,
  name = "mh_y_upps__pers_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_upps__pers_nm()

Examples

## Not run: 
compute_mh_y_upps__pers_sum(data) |>
  select(
    any_of(c("mh_y_upps__pers_sum", vars_mh_y_upps__pers))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Lack of Planning): Sum"

Description

Computes the summary score mh_y_upps__plan_sum Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Lack of Planning): Sum

  • Summarized variables:

    • mh_y_upps__plan_001

    • mh_y_upps__plan_002

    • mh_y_upps__plan_003

    • mh_y_upps__plan_004

  • Excluded values: none

  • Validation criterion: none of 4 items missing

Usage

compute_mh_y_upps__plan_sum(
  data,
  name = "mh_y_upps__plan_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_upps__plan_nm()

Examples

## Not run: 
compute_mh_y_upps__plan_sum(data) |>
  select(
    any_of(c("mh_y_upps__plan_sum", vars_mh_y_upps__plan))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Positive Urgency): Sum"

Description

Computes the summary score mh_y_upps__purg_sum Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Positive Urgency): Sum

  • Summarized variables:

    • mh_y_upps__purg_001

    • mh_y_upps__purg_002

    • mh_y_upps__purg_003

    • mh_y_upps__purg_004

  • Excluded values: none

  • Validation criterion: none of 4 items missing

Usage

compute_mh_y_upps__purg_sum(
  data,
  name = "mh_y_upps__purg_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_upps__purg_nm()

Examples

## Not run: 
compute_mh_y_upps__purg_sum(data) |>
  select(
    any_of(c("mh_y_upps__purg_sum", vars_mh_y_upps__purg))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Sensation Seeking): Sum"

Description

Computes the summary score mh_y_upps__sens_sum Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Sensation Seeking): Sum

  • Summarized variables:

    • mh_y_upps__sens_001

    • mh_y_upps__sens_002

    • mh_y_upps__sens_003

    • mh_y_upps__sens_004

  • Excluded values: none

  • Validation criterion: none of 4 items missing

Usage

compute_mh_y_upps__sens_sum(
  data,
  name = "mh_y_upps__sens_sum",
  max_na = 0,
  exclude = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Value

tbl. see combine.

See Also

compute_mh_y_upps__sens_nm()

Examples

## Not run: 
compute_mh_y_upps__sens_sum(data) |>
  select(
    any_of(c("mh_y_upps__sens_sum", vars_mh_y_upps__sens))
  )

## End(Not run)

Compute all summary scores for mh_y_upps.

Description

This function computes all summary scores for the mh_y_upps table. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_upps_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_upps_all(data)

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - ADHD): Sum"

Description

Computes the summary score mh_y_ysr__dsm__adhd_sum Youth Self Report [Youth] (DSM-5 Oriented Scale - ADHD): Sum

  • Summarized variables:

    • mh_y_ysr__attn__adhd_001

    • mh_y_ysr__attn__adhd_002

    • mh_y_ysr__attn__adhd_003

    • mh_y_ysr__attn__adhd_004

    • mh_y_ysr__attn__adhd_005

    • mh_y_ysr__othpr__adhd_001

    • mh_y_ysr__aggr__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 7 items missing

Usage

compute_mh_y_ysr__dsm__adhd_sum(
  data,
  name = "mh_y_ysr__dsm__adhd_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__adhd_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__adhd_sum(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__adhd_sum", vars_mh_y_ysr__dsm__adhd))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - ADHD): T-score"

Description

Computes the summary score mh_y_ysr__dsm__adhd_tscore Youth Self Report [Youth] (DSM-5 Oriented Scale - ADHD): T-score

  • Summarized variables:

    • mh_y_ysr__attn__adhd_001

    • mh_y_ysr__attn__adhd_002

    • mh_y_ysr__attn__adhd_003

    • mh_y_ysr__attn__adhd_004

    • mh_y_ysr__attn__adhd_005

    • mh_y_ysr__othpr__adhd_001

    • mh_y_ysr__aggr__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 7 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__dsm__adhd_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__dsm__adhd_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__adhd_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__adhd_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__adhd_tscore", vars_mh_y_ysr__dsm__adhd))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Anxiety problems): Sum"

Description

Computes the summary score mh_y_ysr__dsm__anx_sum Youth Self Report [Youth] (DSM-5 Oriented Scale - Anxiety problems): Sum

  • Summarized variables:

    • mh_y_ysr__soc__anx_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing

Usage

compute_mh_y_ysr__dsm__anx_sum(
  data,
  name = "mh_y_ysr__dsm__anx_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__anx_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__anx_sum(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__anx_sum", vars_mh_y_ysr__dsm__anx))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Anxiety problems): T-score"

Description

Computes the summary score mh_y_ysr__dsm__anx_tscore Youth Self Report [Youth] (DSM-5 Oriented Scale - Anxiety problems): T-score

  • Summarized variables:

    • mh_y_ysr__soc__anx_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__dsm__anx_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__dsm__anx_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__anx_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__anx_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__anx_tscore", vars_mh_y_ysr__dsm__anx))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Conduct problems): Sum"

Description

Computes the summary score mh_y_ysr__dsm__cond_sum Youth Self Report [Youth] (DSM-5 Oriented Scale - Conduct problems): Sum

  • Summarized variables:

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__rule__cond_010

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 3 of 15 items missing

Usage

compute_mh_y_ysr__dsm__cond_sum(
  data,
  name = "mh_y_ysr__dsm__cond_sum",
  max_na = 3,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__cond_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__cond_sum(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__cond_sum", vars_mh_y_ysr__dsm__cond))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Conduct problems): T-score"

Description

Computes the summary score mh_y_ysr__dsm__cond_tscore Youth Self Report [Youth] (DSM-5 Oriented Scale - Conduct problems): T-score

  • Summarized variables:

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__rule__cond_010

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 3 of 15 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__dsm__cond_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__dsm__cond_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 3,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__cond_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__cond_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__cond_tscore", vars_mh_y_ysr__dsm__cond))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Depressive problems): Sum"

Description

Computes the summary score mh_y_ysr__dsm__dep_sum Youth Self Report [Youth] (DSM-5 Oriented Scale - Depressive problems): Sum

  • Summarized variables:

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__othpr__dep_001

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__tho__dep_002

    • mh_y_ysr__othpr__dep_002

    • mh_y_ysr__tho__dep_003

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 11 items missing

Usage

compute_mh_y_ysr__dsm__dep_sum(
  data,
  name = "mh_y_ysr__dsm__dep_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__dep_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__dep_sum(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__dep_sum", vars_mh_y_ysr__dsm__dep))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Depressive problems): T-score"

Description

Computes the summary score mh_y_ysr__dsm__dep_tscore Youth Self Report [Youth] (DSM-5 Oriented Scale - Depressive problems): T-score

  • Summarized variables:

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__othpr__dep_001

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__tho__dep_002

    • mh_y_ysr__othpr__dep_002

    • mh_y_ysr__tho__dep_003

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 11 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__dsm__dep_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__dsm__dep_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__dep_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__dep_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__dep_tscore", vars_mh_y_ysr__dsm__dep))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Oppositional Defiant problems): Sum"

Description

Computes the summary score mh_y_ysr__dsm__opp_sum Youth Self Report [Youth] (DSM-5 Oriented Scale - Oppositional Defiant problems): Sum

  • Summarized variables:

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr__opp_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 5 items missing

Usage

compute_mh_y_ysr__dsm__opp_sum(
  data,
  name = "mh_y_ysr__dsm__opp_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__opp_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__opp_sum(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__opp_sum", vars_mh_y_ysr__dsm__opp))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Oppositional Defiant problems): T-score"

Description

Computes the summary score mh_y_ysr__dsm__opp_tscore Youth Self Report [Youth] (DSM-5 Oriented Scale - Oppositional Defiant problems): T-score

  • Summarized variables:

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr__opp_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 5 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__dsm__opp_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__dsm__opp_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__opp_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__opp_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__opp_tscore", vars_mh_y_ysr__dsm__opp))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Somatic complaints): Sum"

Description

Computes the summary score mh_y_ysr__dsm__somat_sum Youth Self Report [Youth] (DSM-5 Oriented Scale - Somatic complaints): Sum

  • Summarized variables:

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 7 items missing

Usage

compute_mh_y_ysr__dsm__somat_sum(
  data,
  name = "mh_y_ysr__dsm__somat_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__somat_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__somat_sum(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__somat_sum", vars_mh_y_ysr__dsm__somat))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Somatic complaints): T-score"

Description

Computes the summary score mh_y_ysr__dsm__somat_tscore Youth Self Report [Youth] (DSM-5 Oriented Scale - Somatic complaints): T-score

  • Summarized variables:

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 7 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__dsm__somat_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__dsm__somat_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__dsm__somat_nm()

Examples

## Not run: 
compute_mh_y_ysr__dsm__somat_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__somat_tscore", vars_mh_y_ysr__dsm__somat))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Positive): Sum"

Description

Computes the summary score mh_y_ysr__pos_sum Youth Self Report [Youth] (Positive): Sum

  • Summarized variables:

    • mh_y_ysr__pos_001

    • mh_y_ysr__pos_002

    • mh_y_ysr__pos_003

    • mh_y_ysr__pos_004

    • mh_y_ysr__pos_005

    • mh_y_ysr__pos_006

    • mh_y_ysr__pos_007

    • mh_y_ysr__pos_008

    • mh_y_ysr__pos_009

    • mh_y_ysr__pos_010

    • mh_y_ysr__pos_011

    • mh_y_ysr__pos_012

    • mh_y_ysr__pos_013

    • mh_y_ysr__pos_014

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 14 items missing

Usage

compute_mh_y_ysr__pos_sum(
  data,
  name = "mh_y_ysr__pos_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__pos_nm()

Examples

## Not run: 
compute_mh_y_ysr__pos_sum(data) |>
  select(
    any_of(c("mh_y_ysr__pos_sum", vars_mh_y_ysr__pos))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Positive): T-score"

Description

Computes the summary score mh_y_ysr__pos_tscore Youth Self Report [Youth] (Positive): T-score

  • Summarized variables:

    • mh_y_ysr__pos_001

    • mh_y_ysr__pos_002

    • mh_y_ysr__pos_003

    • mh_y_ysr__pos_004

    • mh_y_ysr__pos_005

    • mh_y_ysr__pos_006

    • mh_y_ysr__pos_007

    • mh_y_ysr__pos_008

    • mh_y_ysr__pos_009

    • mh_y_ysr__pos_010

    • mh_y_ysr__pos_011

    • mh_y_ysr__pos_012

    • mh_y_ysr__pos_013

    • mh_y_ysr__pos_014

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 14 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__pos_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__pos_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__pos_nm()

Examples

## Not run: 
compute_mh_y_ysr__pos_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__pos_tscore", vars_mh_y_ysr__pos))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Aggressive behavior): Sum"

Description

Computes the summary score mh_y_ysr__synd__aggr_sum Youth Self Report [Youth] (Syndrome Scale - Aggressive behavior): Sum

  • Summarized variables:

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr_001

    • mh_y_ysr__aggr_002

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__aggr_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr_004

    • mh_y_ysr__aggr_005

    • mh_y_ysr__aggr_006

    • mh_y_ysr__aggr__opp_005

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__aggr__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 3 of 17 items missing

Usage

compute_mh_y_ysr__synd__aggr_sum(
  data,
  name = "mh_y_ysr__synd__aggr_sum",
  max_na = 3,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__aggr_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__aggr_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__aggr_sum", vars_mh_y_ysr__synd__aggr))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Aggressive): T-score"

Description

Computes the summary score mh_y_ysr__synd__aggr_tscore Youth Self Report [Youth] (Syndrome Scale - Aggressive): T-score

  • Summarized variables:

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr_001

    • mh_y_ysr__aggr_002

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__aggr_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr_004

    • mh_y_ysr__aggr_005

    • mh_y_ysr__aggr_006

    • mh_y_ysr__aggr__opp_005

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__aggr__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 3 of 17 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__aggr_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__aggr_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 3,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__aggr_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__aggr_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__aggr_tscore", vars_mh_y_ysr__synd__aggr))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Anxious/Depressed): Sum"

Description

Computes the summary score mh_y_ysr__synd__anxdep_sum Youth Self Report [Youth] (Syndrome Scale - Anxious/Depressed): Sum

  • Summarized variables:

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep_001

    • mh_y_ysr__anxdep_002

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 12 items missing

Usage

compute_mh_y_ysr__synd__anxdep_sum(
  data,
  name = "mh_y_ysr__synd__anxdep_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__anxdep_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__anxdep_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__anxdep_sum", vars_mh_y_ysr__synd__anxdep))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Anxious/Depressed): T-score"

Description

Computes the summary score mh_y_ysr__synd__anxdep_tscore Youth Self Report [Youth] (Syndrome Scale - Anxious/Depressed): T-score

  • Summarized variables:

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep_001

    • mh_y_ysr__anxdep_002

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 12 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__anxdep_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__anxdep_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__anxdep_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__anxdep_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__anxdep_tscore", vars_mh_y_ysr__synd__anxdep))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Attention problems): Sum"

Description

Computes the summary score mh_y_ysr__synd__attn_sum Youth Self Report [Youth] (Syndrome Scale - Attention problems): Sum

  • Summarized variables:

    • mh_y_ysr__attn_001

    • mh_y_ysr__attn__adhd_001

    • mh_y_ysr__attn__adhd_002

    • mh_y_ysr__attn__adhd_003

    • mh_y_ysr__attn_002

    • mh_y_ysr__attn_003

    • mh_y_ysr__attn__adhd_004

    • mh_y_ysr__attn_004

    • mh_y_ysr__attn__adhd_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing

Usage

compute_mh_y_ysr__synd__attn_sum(
  data,
  name = "mh_y_ysr__synd__attn_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__attn_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__attn_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__attn_sum", vars_mh_y_ysr__synd__attn))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Attention problems): T-score"

Description

Computes the summary score mh_y_ysr__synd__attn_tscore Youth Self Report [Youth] (Syndrome Scale - Attention problems): T-score

  • Summarized variables:

    • mh_y_ysr__attn_001

    • mh_y_ysr__attn__adhd_001

    • mh_y_ysr__attn__adhd_002

    • mh_y_ysr__attn__adhd_003

    • mh_y_ysr__attn_002

    • mh_y_ysr__attn_003

    • mh_y_ysr__attn__adhd_004

    • mh_y_ysr__attn_004

    • mh_y_ysr__attn__adhd_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__attn_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__attn_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__attn_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__attn_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__attn_tscore", vars_mh_y_ysr__synd__attn))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - External): Sum"

Description

Computes the summary score mh_y_ysr__synd__ext_sum Youth Self Report [Youth] (Syndrome Scale - External): Sum

  • Summarized variables:

    • mh_y_ysr__rule_001

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__rule_002

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__rule_003

    • mh_y_ysr__rule_004

    • mh_y_ysr__rule__cond_010

    • mh_y_ysr__rule_005

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr_001

    • mh_y_ysr__aggr_002

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__aggr_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr_004

    • mh_y_ysr__aggr_005

    • mh_y_ysr__aggr_006

    • mh_y_ysr__aggr__opp_005

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__aggr__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 6 of 32 items missing

Usage

compute_mh_y_ysr__synd__ext_sum(
  data,
  name = "mh_y_ysr__synd__ext_sum",
  max_na = 6,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__ext_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__ext_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__ext_sum", vars_mh_y_ysr__synd__ext))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - External): T-score"

Description

Computes the summary score mh_y_ysr__synd__ext_tscore Youth Self Report [Youth] (Syndrome Scale - External): T-score

  • Summarized variables:

    • mh_y_ysr__rule_001

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__rule_002

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__rule_003

    • mh_y_ysr__rule_004

    • mh_y_ysr__rule__cond_010

    • mh_y_ysr__rule_005

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr_001

    • mh_y_ysr__aggr_002

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__aggr_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr_004

    • mh_y_ysr__aggr_005

    • mh_y_ysr__aggr_006

    • mh_y_ysr__aggr__opp_005

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__aggr__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 6 of 32 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__ext_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__ext_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 6,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__ext_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__ext_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__ext_tscore", vars_mh_y_ysr__synd__ext))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Internaling): Sum"

Description

Computes the summary score mh_y_ysr__synd__int_sum Youth Self Report [Youth] (Syndrome Scale - Internaling): Sum

  • Summarized variables:

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep_001

    • mh_y_ysr__anxdep_002

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__wthdep_001

    • mh_y_ysr__wthdep_002

    • mh_y_ysr__wthdep_003

    • mh_y_ysr__wthdep_004

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

    • mh_y_ysr__wthdep_005

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__som_001

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 6 of 30 items missing

Usage

compute_mh_y_ysr__synd__int_sum(
  data,
  name = "mh_y_ysr__synd__int_sum",
  max_na = 6,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__int_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__int_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__int_sum", vars_mh_y_ysr__synd__int))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Internaling): T-score"

Description

Computes the summary score mh_y_ysr__synd__int_tscore Youth Self Report [Youth] (Syndrome Scale - Internaling): T-score

  • Summarized variables:

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep_001

    • mh_y_ysr__anxdep_002

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__wthdep_001

    • mh_y_ysr__wthdep_002

    • mh_y_ysr__wthdep_003

    • mh_y_ysr__wthdep_004

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

    • mh_y_ysr__wthdep_005

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__som_001

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 6 of 30 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__int_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__int_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 6,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__int_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__int_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__int_tscore", vars_mh_y_ysr__synd__int))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Other problems): Sum"

Description

Computes the summary score mh_y_ysr__synd__othpr_sum Youth Self Report [Youth] (Other problems): Sum

  • Summarized variables:

    • mh_y_ysr__othpr_001

    • mh_y_ysr__othpr__dep_001

    • mh_y_ysr__othpr_002

    • mh_y_ysr__othpr_003

    • mh_y_ysr__othpr_004

    • mh_y_ysr__othpr_005

    • mh_y_ysr__othpr_006

    • mh_y_ysr__othpr__dep_002

    • mh_y_ysr__othpr__adhd_001

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing

Usage

compute_mh_y_ysr__synd__othpr_sum(
  data,
  name = "mh_y_ysr__synd__othpr_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__othpr_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__othpr_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__othpr_sum", vars_mh_y_ysr__synd__othpr))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Rule breaking behavior): Sum"

Description

Computes the summary score mh_y_ysr__synd__rule_sum Youth Self Report [Youth] (Syndrome Scale - Rule breaking behavior): Sum

  • Summarized variables:

    • mh_y_ysr__rule_001

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__rule_002

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__rule_003

    • mh_y_ysr__rule_004

    • mh_y_ysr__rule__cond_010

    • mh_y_ysr__rule_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 3 of 15 items missing

Usage

compute_mh_y_ysr__synd__rule_sum(
  data,
  name = "mh_y_ysr__synd__rule_sum",
  max_na = 3,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__rule_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__rule_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__rule_sum", vars_mh_y_ysr__synd__rule))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Rule breaking behavior): T-score"

Description

Computes the summary score mh_y_ysr__synd__rule_tscore Youth Self Report [Youth] (Syndrome Scale - Rule breaking behavior): T-score

  • Summarized variables:

    • mh_y_ysr__rule_001

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__rule_002

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__rule_003

    • mh_y_ysr__rule_004

    • mh_y_ysr__rule__cond_010

    • mh_y_ysr__rule_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 3 of 15 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__rule_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__rule_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 3,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__rule_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__rule_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__rule_tscore", vars_mh_y_ysr__synd__rule))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale -Social problems): Sum"

Description

Computes the summary score mh_y_ysr__synd__soc_sum Youth Self Report [Youth] (Syndrome Scale -Social problems): Sum

  • Summarized variables:

    • mh_y_ysr__soc__anx_001

    • mh_y_ysr__soc_001

    • mh_y_ysr__soc_002

    • mh_y_ysr__soc_003

    • mh_y_ysr__soc_004

    • mh_y_ysr__soc_005

    • mh_y_ysr__soc_006

    • mh_y_ysr__soc_007

    • mh_y_ysr__soc_008

    • mh_y_ysr__soc_009

    • mh_y_ysr__soc_010

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 11 items missing

Usage

compute_mh_y_ysr__synd__soc_sum(
  data,
  name = "mh_y_ysr__synd__soc_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__soc_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__soc_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__soc_sum", vars_mh_y_ysr__synd__soc))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale -Social): T-score"

Description

Computes the summary score mh_y_ysr__synd__soc_tscore Youth Self Report [Youth] (Syndrome Scale -Social): T-score

  • Summarized variables:

    • mh_y_ysr__soc__anx_001

    • mh_y_ysr__soc_001

    • mh_y_ysr__soc_002

    • mh_y_ysr__soc_003

    • mh_y_ysr__soc_004

    • mh_y_ysr__soc_005

    • mh_y_ysr__soc_006

    • mh_y_ysr__soc_007

    • mh_y_ysr__soc_008

    • mh_y_ysr__soc_009

    • mh_y_ysr__soc_010

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 11 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__soc_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__soc_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__soc_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__soc_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__soc_tscore", vars_mh_y_ysr__synd__soc))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Somatic complaints): Sum"

Description

Computes the summary score mh_y_ysr__synd__som_sum Youth Self Report [Youth] (Syndrome Scale - Somatic complaints): Sum

  • Summarized variables:

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__som_001

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 10 items missing

Usage

compute_mh_y_ysr__synd__som_sum(
  data,
  name = "mh_y_ysr__synd__som_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__som_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__som_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__som_sum", vars_mh_y_ysr__synd__som))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Somatic complaints): T-score"

Description

Computes the summary score mh_y_ysr__synd__som_tscore Youth Self Report [Youth] (Syndrome Scale - Somatic complaints): T-score

  • Summarized variables:

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__som_001

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 10 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__som_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__som_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__som_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__som_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__som_tscore", vars_mh_y_ysr__synd__som))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Thought problems): Sum"

Description

Computes the summary score mh_y_ysr__synd__tho_sum Youth Self Report [Youth] (Syndrome Scale - Thought problems): Sum

  • Summarized variables:

    • mh_y_ysr__tho_001

    • mh_y_ysr__tho_002

    • mh_y_ysr__tho_003

    • mh_y_ysr__tho_004

    • mh_y_ysr__tho_005

    • mh_y_ysr__tho_006

    • mh_y_ysr__tho__dep_002

    • mh_y_ysr__tho_007

    • mh_y_ysr__tho_008

    • mh_y_ysr__tho_009

    • mh_y_ysr__tho__dep_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 11 items missing

Usage

compute_mh_y_ysr__synd__tho_sum(
  data,
  name = "mh_y_ysr__synd__tho_sum",
  max_na = 2,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__tho_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__tho_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__tho_sum", vars_mh_y_ysr__synd__tho))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Thought problems): T-score"

Description

Computes the summary score mh_y_ysr__synd__tho_tscore Youth Self Report [Youth] (Syndrome Scale - Thought problems): T-score

  • Summarized variables:

    • mh_y_ysr__tho_001

    • mh_y_ysr__tho_002

    • mh_y_ysr__tho_003

    • mh_y_ysr__tho_004

    • mh_y_ysr__tho_005

    • mh_y_ysr__tho_006

    • mh_y_ysr__tho__dep_002

    • mh_y_ysr__tho_007

    • mh_y_ysr__tho_008

    • mh_y_ysr__tho_009

    • mh_y_ysr__tho__dep_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 2 of 11 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__tho_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__tho_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__tho_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__tho_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__tho_tscore", vars_mh_y_ysr__synd__tho))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Withdrawn/Depressed): Sum"

Description

Computes the summary score mh_y_ysr__synd__wthdep_sum Youth Self Report [Youth] (Syndrome Scale - Withdrawn/Depressed): Sum

  • Summarized variables:

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__wthdep_001

    • mh_y_ysr__wthdep_002

    • mh_y_ysr__wthdep_003

    • mh_y_ysr__wthdep_004

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

    • mh_y_ysr__wthdep_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 8 items missing

Usage

compute_mh_y_ysr__synd__wthdep_sum(
  data,
  name = "mh_y_ysr__synd__wthdep_sum",
  max_na = 1,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__wthdep_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__wthdep_sum(data) |>
  select(
    any_of(c("mh_y_ysr__synd__wthdep_sum", vars_mh_y_ysr__synd__wthdep))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Withdrawn/Depressed): T-score"

Description

Computes the summary score mh_y_ysr__synd__wthdep_tscore Youth Self Report [Youth] (Syndrome Scale - Withdrawn/Depressed): T-score

  • Summarized variables:

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__wthdep_001

    • mh_y_ysr__wthdep_002

    • mh_y_ysr__wthdep_003

    • mh_y_ysr__wthdep_004

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

    • mh_y_ysr__wthdep_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 8 items missing or mh_y_ysr__dsm__adhd_nm <= 5

Usage

compute_mh_y_ysr__synd__wthdep_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr__synd__wthdep_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr__synd__wthdep_nm()

Examples

## Not run: 
compute_mh_y_ysr__synd__wthdep_tscore(data) |>
  select(
    any_of(c("mh_y_ysr__synd__wthdep_tscore", vars_mh_y_ysr__synd__wthdep))
  )

## End(Not run)

Compute all summary scores for mh_y_ysr.

Description

This function computes all summary scores for the mh_y_ysr form. Make sure to have all necessary columns in the data frame.

Usage

compute_mh_y_ysr_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_mh_y_ysr_all(data)

## End(Not run)

Compute "Youth Self Report [Youth]: Sum"

Description

Computes the summary score mh_y_ysr_sum Youth Self Report [Youth]: Sum

  • Summarized variables:

    • mh_y_ysr__attn__adhd_001

    • mh_y_ysr__attn__adhd_002

    • mh_y_ysr__attn__adhd_003

    • mh_y_ysr__attn__adhd_004

    • mh_y_ysr__attn__adhd_005

    • mh_y_ysr__othpr__adhd_001

    • mh_y_ysr__aggr__adhd_001

    • mh_y_ysr__soc__anx_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__rule__cond_010

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__othpr__dep_001

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__tho__dep_002

    • mh_y_ysr__othpr__dep_002

    • mh_y_ysr__tho__dep_003

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr__opp_005

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

    • mh_y_ysr__aggr_001

    • mh_y_ysr__aggr_002

    • mh_y_ysr__aggr_003

    • mh_y_ysr__aggr_004

    • mh_y_ysr__aggr_005

    • mh_y_ysr__aggr_006

    • mh_y_ysr__anxdep_001

    • mh_y_ysr__anxdep_002

    • mh_y_ysr__attn_001

    • mh_y_ysr__attn_002

    • mh_y_ysr__attn_003

    • mh_y_ysr__attn_004

    • mh_y_ysr__rule_001

    • mh_y_ysr__rule_002

    • mh_y_ysr__rule_003

    • mh_y_ysr__rule_004

    • mh_y_ysr__rule_005

    • mh_y_ysr__wthdep_001

    • mh_y_ysr__wthdep_002

    • mh_y_ysr__wthdep_003

    • mh_y_ysr__wthdep_004

    • mh_y_ysr__wthdep_005

    • mh_y_ysr__som_001

    • mh_y_ysr__othpr_001

    • mh_y_ysr__othpr_002

    • mh_y_ysr__othpr_003

    • mh_y_ysr__othpr_004

    • mh_y_ysr__othpr_005

    • mh_y_ysr__othpr_006

    • mh_y_ysr__soc_001

    • mh_y_ysr__soc_002

    • mh_y_ysr__soc_003

    • mh_y_ysr__soc_004

    • mh_y_ysr__soc_005

    • mh_y_ysr__soc_006

    • mh_y_ysr__soc_007

    • mh_y_ysr__soc_008

    • mh_y_ysr__soc_009

    • mh_y_ysr__soc_010

    • mh_y_ysr__tho_001

    • mh_y_ysr__tho_002

    • mh_y_ysr__tho_003

    • mh_y_ysr__tho_004

    • mh_y_ysr__tho_005

    • mh_y_ysr__tho_006

    • mh_y_ysr__tho_007

    • mh_y_ysr__tho_008

    • mh_y_ysr__tho_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 5 of 102 items missing

Usage

compute_mh_y_ysr_sum(
  data,
  name = "mh_y_ysr_sum",
  max_na = 5,
  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.

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr_nm()

Examples

## Not run: 
compute_mh_y_ysr_sum(data) |>
  select(
    any_of(c("mh_y_ysr_sum", vars_mh_y_ysr))
  )

## End(Not run)

Compute "Youth Self Report [Youth]: T-score"

Description

Computes the summary score mh_y_ysr_tscore Youth Self Report [Youth]: T-score

  • Summarized variables:

    • mh_y_ysr__attn__adhd_001

    • mh_y_ysr__attn__adhd_002

    • mh_y_ysr__attn__adhd_003

    • mh_y_ysr__attn__adhd_004

    • mh_y_ysr__attn__adhd_005

    • mh_y_ysr__othpr__adhd_001

    • mh_y_ysr__aggr__adhd_001

    • mh_y_ysr__soc__anx_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__rule__cond_010

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__othpr__dep_001

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__tho__dep_002

    • mh_y_ysr__othpr__dep_002

    • mh_y_ysr__tho__dep_003

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr__opp_005

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

    • mh_y_ysr__aggr_001

    • mh_y_ysr__aggr_002

    • mh_y_ysr__aggr_003

    • mh_y_ysr__aggr_004

    • mh_y_ysr__aggr_005

    • mh_y_ysr__aggr_006

    • mh_y_ysr__anxdep_001

    • mh_y_ysr__anxdep_002

    • mh_y_ysr__attn_001

    • mh_y_ysr__attn_002

    • mh_y_ysr__attn_003

    • mh_y_ysr__attn_004

    • mh_y_ysr__rule_001

    • mh_y_ysr__rule_002

    • mh_y_ysr__rule_003

    • mh_y_ysr__rule_004

    • mh_y_ysr__rule_005

    • mh_y_ysr__wthdep_001

    • mh_y_ysr__wthdep_002

    • mh_y_ysr__wthdep_003

    • mh_y_ysr__wthdep_004

    • mh_y_ysr__wthdep_005

    • mh_y_ysr__som_001

    • mh_y_ysr__othpr_001

    • mh_y_ysr__othpr_002

    • mh_y_ysr__othpr_003

    • mh_y_ysr__othpr_004

    • mh_y_ysr__othpr_005

    • mh_y_ysr__othpr_006

    • mh_y_ysr__soc_001

    • mh_y_ysr__soc_002

    • mh_y_ysr__soc_003

    • mh_y_ysr__soc_004

    • mh_y_ysr__soc_005

    • mh_y_ysr__soc_006

    • mh_y_ysr__soc_007

    • mh_y_ysr__soc_008

    • mh_y_ysr__soc_009

    • mh_y_ysr__soc_010

    • mh_y_ysr__tho_001

    • mh_y_ysr__tho_002

    • mh_y_ysr__tho_003

    • mh_y_ysr__tho_004

    • mh_y_ysr__tho_005

    • mh_y_ysr__tho_006

    • mh_y_ysr__tho_007

    • mh_y_ysr__tho_008

    • mh_y_ysr__tho_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 5 of 102 items missing

Usage

compute_mh_y_ysr_tscore(
  data,
  data_norm = NULL,
  name = "mh_y_ysr_tscore",
  col_age = "mh_y_ysr_age",
  col_sex = "ab_g_stc__cohort_sex",
  max_na = 5,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the norm (T-score) values. see ss_tscore().

name

character. Name of the summary score column.

col_age

character, name of the age column. see ss_tscore().

col_sex

character, name of the sex column. see ss_tscore().

max_na

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

exclude

character vector. Values to be excluded from the summary score.

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.

Value

tbl. see combine.

See Also

compute_mh_y_ysr_nm()

Examples

## Not run: 
compute_mh_y_ysr_tscore(data) |>
  select(
    any_of(c("mh_y_ysr_tscore", vars_mh_y_ysr))
  )

## End(Not run)

Compute "Barkley Deficits in Executive Functioning Scale [Parent] (EF Symptom Count, number of answers of 3 or 4): Count"

Description

Computes the summary score nc_p_bdefs__sympt_count Barkley Deficits in Executive Functioning Scale [Parent] (EF Symptom Count, number of answers of 3 or 4): Count

  • Summarized variables:

    • nc_p_bdefs_001

    • nc_p_bdefs_002

    • nc_p_bdefs_003

    • nc_p_bdefs_004

    • nc_p_bdefs_005

    • nc_p_bdefs_006

    • nc_p_bdefs_007

    • nc_p_bdefs_008

    • nc_p_bdefs_009

    • nc_p_bdefs_010

    • nc_p_bdefs_011

    • nc_p_bdefs_012

    • nc_p_bdefs_013

    • nc_p_bdefs_014

    • nc_p_bdefs_015

    • nc_p_bdefs_016

    • nc_p_bdefs_017

    • nc_p_bdefs_018

    • nc_p_bdefs_019

    • nc_p_bdefs_020

Usage

compute_nc_p_bdefs__sympt_count(
  data,
  name = "nc_p_bdefs__sympt_count",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_nc_p_bdefs_sum()

Examples

## Not run: 
compute_nc_p_bdefs__sympt_count(data) |>
  select(
    data,
    all_of(c("nc_p_bdefs__sympt_count", vars_nc_p_bdefs))
  )

## End(Not run)

Compute all the BDEFS summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_nc_p_bdefs_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_nc_p_bdefs_all(data)

## End(Not run)

Compute "Barkley Deficits in Executive Functioning Scale [Parent] (EF Summary Score): Number missing"

Description

Computes the summary score nc_p_bdefs_nm Barkley Deficits in Executive Functioning Scale [Parent] (EF Summary Score): Number missing

  • Summarized variables:

    • nc_p_bdefs_001

    • nc_p_bdefs_002

    • nc_p_bdefs_003

    • nc_p_bdefs_004

    • nc_p_bdefs_005

    • nc_p_bdefs_006

    • nc_p_bdefs_007

    • nc_p_bdefs_008

    • nc_p_bdefs_009

    • nc_p_bdefs_010

    • nc_p_bdefs_011

    • nc_p_bdefs_012

    • nc_p_bdefs_013

    • nc_p_bdefs_014

    • nc_p_bdefs_015

    • nc_p_bdefs_016

    • nc_p_bdefs_017

    • nc_p_bdefs_018

    • nc_p_bdefs_019

    • nc_p_bdefs_020

Usage

compute_nc_p_bdefs_nm(data, name = "nc_p_bdefs_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_nc_p_bdefs_sum()

Examples

## Not run: 
compute_nc_p_bdefs_nm(data) |>
  select(
    data,
    all_of(c("nc_p_bdefs_nm", vars_nc_p_bdefs))
  )

## End(Not run)

Compute all the EHIS summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_nc_y_ehis_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_nc_y_ehis_all(data)

## End(Not run)

Compute "Edinburgh Handedness Inventory [Youth]: Number missing"

Description

Computes the summary score nc_y_ehis_nm Edinburgh Handedness Inventory [Youth]: Number missing

  • Summarized variables:

    • nc_y_ehis_001

    • nc_y_ehis_002

    • nc_y_ehis_003

    • nc_y_ehis_004

Usage

compute_nc_y_ehis_nm(data, name = "nc_y_ehis_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_nc_y_ehis_score()

Examples

## Not run: 
compute_nc_y_ehis_nm(data) |>
  select(
    data,
    all_of(c("nc_y_ehis_nm", vars_nc_y_ehis))
  )

## End(Not run)

Compute "Youth Screen Time [Parent] (Problematic Media Use): Number missing"

Description

Computes the summary score nt_p_yst__pmum_nm Youth Screen Time [Parent] (Problematic Media Use): Number missing

  • Summarized variables:

    • nt_p_yst__pmum_001

    • nt_p_yst__pmum_002

    • nt_p_yst__pmum_003

    • nt_p_yst__pmum_004

    • nt_p_yst__pmum_005

    • nt_p_yst__pmum_006

    • nt_p_yst__pmum_007

    • nt_p_yst__pmum_008

    • nt_p_yst__pmum_009

  • Excluded values:

    • 777

    • 999

Usage

compute_nt_p_yst__pmum_nm(data, name = "nt_p_yst__pmum_nm", 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.


Compute "Youth Screen Time [Parent] (Weekday): Number missing"

Description

Computes the summary score nt_p_yst__screen__wkdy_nm Youth Screen Time [Parent] (Weekday): Number missing

  • Summarized variables:

    • nt_p_yst__wkdy__hr_001

    • nt_p_yst__wkdy__min_001

    • nt_p_yst__wkdy__min_001__v01

  • Excluded values:

    • 777

    • 999

Usage

compute_nt_p_yst__screen__wkdy_nm(
  data,
  name = "nt_p_yst__screen__wkdy_nm",
  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.


Compute "Youth Screen Time [Parent] (Weekend): Number missing"

Description

Computes the summary score nt_p_yst__screen__wknd_nm Youth Screen Time [Parent] (Weekend): Number missing

  • Summarized variables:

    • nt_p_yst__wknd__hr_001

    • nt_p_yst__wknd__min_001

    • nt_p_yst__wknd__min_001__v01

  • Excluded values:

    • 777

    • 999

Usage

compute_nt_p_yst__screen__wknd_nm(
  data,
  name = "nt_p_yst__screen__wknd_nm",
  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.


Compute all summary scores for nt_p_yst.

Description

This function computes all summary scores for the nt_p_yst form. Make sure to have all necessary columns in the data frame.

Usage

compute_nt_p_yst_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_nt_p_yst_all(data)

## End(Not run)

Compute "Screen Time [Youth] (Weekday): Number missing"

Description

Computes the summary score nt_y_stq__screen__wkdy_nm Screen Time [Youth] (Weekday): Number missing

  • Summarized variables:

    • nt_y_stq__screen__wkdy_001

    • nt_y_stq__screen__wkdy_002

    • nt_y_stq__screen__wkdy_003

    • nt_y_stq__screen__wkdy_004

    • nt_y_stq__screen__wkdy_005

    • nt_y_stq__screen__wkdy_006

    • nt_y_stq__screen__wkdy__hr_001

    • nt_y_stq__screen__wkdy__min_001

    • nt_y_stq__screen__wkdy__hr_001__v01

    • nt_y_stq__screen__wkdy__min_001__v01

    • nt_y_stq__screen__wkdy__hr_002

    • nt_y_stq__screen__wkdy__min_002

    • nt_y_stq__screen__wkdy__hr_003

    • nt_y_stq__screen__wkdy__min_003

    • nt_y_stq__screen__wkdy__hr_004

    • nt_y_stq__screen__wkdy__min_004

    • nt_y_stq__screen__wkdy__hr_005

    • nt_y_stq__screen__wkdy__min_005

    • nt_y_stq__screen__wkdy__hr_006

    • nt_y_stq__screen__wkdy__min_006

    • nt_y_stq__screen__wkdy__hr_007

    • nt_y_stq__screen__wkdy__min_007

    • nt_y_stq__screen__wkdy__hr_008

    • nt_y_stq__screen__wkdy__min_008

    • nt_y_stq__screen__wkdy__hr_009

    • nt_y_stq__screen__wkdy__min_009

  • Excluded values:

    • 777

    • 999

Usage

compute_nt_y_stq__screen__wkdy_nm(
  data,
  name = "nt_y_stq__screen__wkdy_nm",
  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.


Compute "Screen Time [Youth] (Weekend): Number missing"

Description

Computes the summary score nt_y_stq__screen__wknd_nm Screen Time [Youth] (Weekend): Number missing

  • Summarized variables:

    • nt_y_stq__screen__wknd_001

    • nt_y_stq__screen__wknd_002

    • nt_y_stq__screen__wknd_003

    • nt_y_stq__screen__wknd_004

    • nt_y_stq__screen__wknd_005

    • nt_y_stq__screen__wknd_006

    • nt_y_stq__screen__wknd__hr_001

    • nt_y_stq__screen__wknd__min_001

    • nt_y_stq__screen__wknd__hr_001__v01

    • nt_y_stq__screen__wknd__min_001__v01

    • nt_y_stq__screen__wknd__hr_002

    • nt_y_stq__screen__wknd__min_002

    • nt_y_stq__screen__wknd__hr_003

    • nt_y_stq__screen__wknd__min_003

    • nt_y_stq__screen__wknd__hr_004

    • nt_y_stq__screen__wknd__min_004

    • nt_y_stq__screen__wknd__hr_005

    • nt_y_stq__screen__wknd__min_005

    • nt_y_stq__screen__wknd__hr_006

    • nt_y_stq__screen__wknd__min_006

    • nt_y_stq__screen__wknd__hr_007

    • nt_y_stq__screen__wknd__min_007

    • nt_y_stq__screen__wknd__hr_008

    • nt_y_stq__screen__wknd__min_008

    • nt_y_stq__screen__wknd__hr_009

    • nt_y_stq__screen__wknd__min_009

  • Excluded values:

    • 777

    • 999

Usage

compute_nt_y_stq__screen__wknd_nm(
  data,
  name = "nt_y_stq__screen__wknd_nm",
  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.


Compute all summary scores for nt_y_stq

Description

This function computes all summary scores for the nt_y_stq form. Make sure to have all necessary columns in the data frame.

Usage

compute_nt_y_stq_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_nt_y_stq_all(data)

## End(Not run)

Compute all medication categories [Parent] [Youth]

Description

This function computes all medication category mapping summary scores based on the provided configuration in rx_config by mapping medication RxCUI codes to their respective categories that are stored in ABCDscores::rx_map.

It processes each row in rx_config. One row corresponds to one medication category mapping score. For each row, it first checks col_summary1. If col_summary1 has data, that value is used. If col_summary1 is NA, it falls back to col_summary2.

It then applies col_add filtering only when both conditions are met:

  • the corresponding flag (use_col_add1 or use_col_add2) is TRUE, and

  • col_add is provided (not NA).

When filtering is applied, only rows with col_add == "1" are retained; otherwise, the selected RxCUI is set to NA.

After source selection and optional filtering, it maps the retained RxCUI codes to their respective categories using the appropriate mapping data frame from ABCDscores::rx_map based on the catg specified in rx_config. The resulting category values are then stored in a new column named as specified in the name column of rx_config.

  • Summarized variables: see rx_config for the list of variables.

Usage

compute_ph_meds_catg_all(
  data,
  rx_config = ABCDscores::rx_config,
  combine = TRUE
)

compute_ph_p_meds_catg_all(
  data,
  rx_config = ABCDscores::rx_config,
  combine = TRUE
)

compute_ph_y_meds_catg_all(
  data,
  rx_config = ABCDscores::rx_config,
  combine = TRUE
)

compute_ph_p_dhx_catg_all(
  data,
  rx_config = ABCDscores::rx_config,
  combine = TRUE
)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

rx_config

tbl, Configuration tibble specifying the medication category mappings to compute. Default is ABCDscores::rx_config.

combine

logical, If TRUE, the computed summary scores are appended to the original data frame. If FALSE, only the summary scores are returned. Default is TRUE.

Details

Disclaimer

"This product uses publicly available data from the U.S. National Library of Medicine (NLM), National Institutes of Health, Department of Health and Human Services; NLM is not responsible for the product and does not endorse or recommend this or any other product."

Functions for specific tables

  • compute_ph_meds_catg_all(): Computes all medication category mappings across all tables.

  • compute_ph_p_meds_catg_all(): Computes all medication category mappings for the ph_p_meds table.

  • compute_ph_y_meds_catg_all(): Computes all medication category mappings for the ph_y_meds table.

  • compute_ph_p_dhx_catg_all(): Computes all medication category mappings for the ph_p_dhx table.

Value

tbl. see combine parameter.

References

The medical estimated use values and categories are generated from: Lopez, D. A., Overholtzer, L. N., Rhee, K. E., Buchbinder, N., Ruiz-Orozco, G. E., Steinhilber, S., Tognoli, M., Lopez-Flores, A., & Nagel, B. J. (2025). Classifying and visualizing medication use in the Adolescent Brain Cognitive Development (ABCD) Study. medRxiv.

See Also

rx_map


Compute all medication estimated use flags [Parent] [Youth]

Description

This function computes all medication estimated use flag summary scores based on the provided configuration in rx_config_estuse_flags and the computed medication categories from rx_config.

It first calls compute_ph_meds_catg_all() to obtain the medication category mappings of all estuse categories. Then, for each row in rx_config_estuse_flags, it checks if any of the corresponding medication category mapping scores (from both OTC and RX medications) match the specified idx category index. If a match is found, it assigns a value of "1" to indicate estimated use; otherwise, it assigns "0". The resulting estimated use flags are stored in new columns named as specified in the name column of rx_config_estuse_flags.

  • Summarized variables: see rx_config for the list of variables.

Usage

compute_ph_meds_estuse_flags_all(
  data,
  rx_config_estuse_flags = ABCDscores::rx_config_estuse_flags,
  rx_config = ABCDscores::rx_config,
  combine = TRUE
)

compute_ph_p_meds_estuse_flags_all(
  data,
  rx_config_estuse_flags = ABCDscores::rx_config_estuse_flags,
  rx_config = ABCDscores::rx_config,
  combine = TRUE
)

compute_ph_y_meds_estuse_flags_all(
  data,
  rx_config_estuse_flags = ABCDscores::rx_config_estuse_flags,
  rx_config = ABCDscores::rx_config,
  combine = TRUE
)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

rx_config_estuse_flags

tbl, Configuration tibble specifying the estimated use flag mappings to compute. Default is ABCDscores::rx_config_estuse_flags.

rx_config

tbl, Configuration tibble specifying the medication category mappings to compute. Default is ABCDscores::rx_config.

combine

logical, If TRUE, the computed summary scores are appended to the original data frame. If FALSE, only the summary scores are returned. Default is TRUE.

Details

Disclaimer

"This product uses publicly available data from the U.S. National Library of Medicine (NLM), National Institutes of Health, Department of Health and Human Services; NLM is not responsible for the product and does not endorse or recommend this or any other product."

Functions for specific tables

  • compute_ph_meds_estuse_flags_all(): Computes all medication estimated use flags across all tables.

  • compute_ph_p_meds_estuse_flags_all(): Computes all medication estimated use flags for the ph_p_meds table.

  • compute_ph_y_meds_estuse_flags_all(): Computes all medication estimated use flags for the ph_y_meds table.

Value

tbl. see combine parameter.

References

The medical estimated use values and categories are generated from: Lopez, D. A., Overholtzer, L. N., Rhee, K. E., Buchbinder, N., Ruiz-Orozco, G. E., Steinhilber, S., Tognoli, M., Lopez-Flores, A., & Nagel, B. J. (2025). Classifying and visualizing medication use in the Adolescent Brain Cognitive Development (ABCD) Study. medRxiv.

See Also

compute_ph_meds_catg_all(), rx_map


Compute "Anthropometrics [Parent] (Height): Father's height (cm)"

Description

Computes the summary score ph_p_anthr__fath_height__cm Anthropometrics [Parent] (Height): Father's height (cm)

  • Summarized variables:

    • ph_p_anthr__height__fath_001

    • ph_p_anthr__height__fath_001__01

  • Excluded values: None

  • Validation criterion: None

Usage

compute_ph_p_anthr__fath_height__cm(
  data,
  name = "ph_p_anthr__fath_height__cm",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

See Also

compute_ph_p_anthr__fath_height__in()

Examples

## Not run: 
compute_ph_p_anthr__fath_height__cm(data) |>
  select(
    all_of(c("ph_p_anthr__fath_height__cm", vars_ph_p_anthr__height))
  )

## End(Not run)

Compute "Anthropometrics [Parent] (Height): Mother's height (cm)"

Description

Computes the summary score ph_p_anthr__moth_height__cm Anthropometrics [Parent] (Height): Mother's height (cm)

  • Summarized variables:

    • ph_p_anthr__height__moth_001

    • ph_p_anthr__height__moth_001__01

  • Excluded values: None

  • Validation criterion: None

Usage

compute_ph_p_anthr__moth_height__cm(
  data,
  name = "ph_p_anthr__moth_height__cm",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

See Also

compute_ph_p_anthr__fath_height__in()

Examples

## Not run: 
compute_ph_p_anthr__moth_height__cm(data) |>
  select(
    all_of(c("ph_p_anthr__moth_height__cm", vars_ph_p_anthr__height))
  )

## End(Not run)

Compute "Anthropometrics [Parent] (Height): Mother's height (in)"

Description

Computes the summary score ph_p_anthr__moth_height__in Anthropometrics [Parent] (Height): Mother's height (in)

  • Summarized variables:

    • ph_p_anthr__height__moth_001

    • ph_p_anthr__height__moth_001__01

  • Excluded values: None

  • Validation criterion: None

Usage

compute_ph_p_anthr__moth_height__in(
  data,
  name = "ph_p_anthr__moth_height__in",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

See Also

compute_ph_p_anthr__fath_height__in()

Examples

## Not run: 
compute_ph_p_anthr__moth_height__in(data) |>
  select(
    all_of(c("ph_p_anthr__moth_height__in", vars_ph_p_anthr__height))
  )

## End(Not run)

Compute all the ph_p_anthr summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_ph_p_anthr_all(data)

Arguments

data

tbl. Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ph_p_anthr_all(data)

## End(Not run)

Compute all the ph_p_cna summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_ph_p_cna_all(data)

Arguments

data

tbl. Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ph_p_cna(data)

## End(Not run)

Compute "Child Nutrition Assessment [Parent]: Sum [Validation: No more than 0 missing or declined]"

Description

Computes the summary score ph_p_cna_sum Child Nutrition Assessment [Parent]: Sum [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • ph_p_cna_001

    • ph_p_cna_002

    • ph_p_cna_003

    • ph_p_cna_004

    • ph_p_cna_005

    • ph_p_cna_006

    • ph_p_cna_007

    • ph_p_cna_008

    • ph_p_cna_009

    • ph_p_cna_010

    • ph_p_cna_011

    • ph_p_cna_012

    • ph_p_cna_013

    • ph_p_cna_014

  • Excluded values:

    • 999

    • 777

Usage

compute_ph_p_cna_nm(
  data,
  name = "ph_p_cna_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. If FALSE, the summary score will be returned as a separate data frame.

Value

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

Examples

## Not run: 
compute_ph_p_cna_nm(data) |>
  select(
    all_of(c("ph_p_cna_nm", vars_ph_p_cna))
  )

## End(Not run)

Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness - Over 30 minutes): Number missing"

Description

Computes the summary score ph_p_otbi__loc__30m_nm Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness - Over 30 minutes): Number missing

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_p_otbi__loc__30m_count()


Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): Age of first injury with LOC - Number missing"

Description

Computes the summary score ph_p_otbi__loc__tbiage_nm Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): Age of first injury with LOC - Number missing

  • Excluded values:

    • 777

    • 999

  • Notes:

    • The output is set to NA when no head or neck injury/impact is reported

Usage

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

Value

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

See Also

compute_ph_p_otbi__loc_tbiage()


Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): Number missing"

Description

Computes the summary score ph_p_otbi__loc_nm Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): Number missing

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_p_otbi__loc_count()


Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Repeated injuries): Number missing"

Description

Computes the summary score ph_p_otbi__rpt_nm Ohio State Traumatic Brain Injury Screen [Parent] (Repeated injuries): Number missing

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_p_otbi__rpt_count()


Compute all the ph_p_otbi scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_ph_p_otbi_all(data)

Arguments

data

tbl. Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ph_p_otbi_all(data)

## End(Not run)

Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Female): Approximate tanner stages - Number missing"

Description

Computes the summary score ph_p_pds__f__categ_nm Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Female): Approximate tanner stages - Number missing

  • Summarized variables:

    • ph_p_pds_002

    • ph_p_pds__f_001

    • ph_p_pds__f_002

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_p_pds__f_categ()


Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Female): Number missing"

Description

Computes the summary score ph_p_pds__f_nm Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Female): Number missing

  • Summarized variables:

    • ph_p_pds_001

    • ph_p_pds_002

    • ph_p_pds_003

    • ph_p_pds__f_001

    • ph_p_pds__f_002

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_p_pds__f_mean()


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

Description

Computes the summary score ph_p_pds__m__categ_nm Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Male): Approximate tanner stages - Number missing

  • Summarized variables:

    • ph_p_pds_002

    • ph_p_pds__m_001

    • ph_p_pds__m_002

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_p_pds__m_categ()


Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Male): Number missing"

Description

Computes the summary score ph_p_pds__m_nm Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Male): Number missing

  • Summarized variables:

    • ph_p_pds_001

    • ph_p_pds_002

    • ph_p_pds_003

    • ph_p_pds__m_001

    • ph_p_pds__m_002

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_p_pds__m_mean()


Compute all the ph_p_pds summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_ph_p_pds_all(data)

Arguments

data

tbl. Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ph_p_pds_all(data)

## End(Not run)

Compute "Sleep Disturbance Scale [Parent] (Disorder of arousal): Number missing"

Description

Computes the summary score ph_p_sds__da_nm Sleep Disturbance Scale [Parent] (Disorder of arousal): Number missing

  • Summarized variables:

    • ph_p_sds__da_001

    • ph_p_sds__da_002

    • ph_p_sds__da_003

  • Excluded values:

    • 777

    • 999

Usage

compute_ph_p_sds__da_nm(
  data,
  name = "ph_p_sds__da_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. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_p_sds__da_sum()


Compute "Sleep Disturbance Scale [Parent] (Disorders of initiating and maintaining sleep): Number missing"

Description

Computes the summary score ph_p_sds__dims_nm Sleep Disturbance Scale [Parent] (Disorders of initiating and maintaining sleep): 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__dims_006

    • ph_p_sds__dims_007

  • Excluded values:

    • 777

    • 999

Usage

compute_ph_p_sds__dims_nm(
  data,
  name = "ph_p_sds__dims_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. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_p_sds__dims_sum()


Compute "Sleep Disturbance Scale [Parent] (Disorders of excessive somnolence): Number missing"

Description

Computes the summary score ph_p_sds__does_nm Sleep Disturbance Scale [Parent] (Disorders of excessive somnolence) - Number missing

  • Summarized variables:

    • 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__does_nm(
  data,
  name = "ph_p_sds__does_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. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_p_sds__does_sum()


Compute "Sleep Disturbance Scale [Parent] (Sleep hyperhydrosis): Number missing"

Description

Computes the summary score ph_p_sds__hyphy_nm Sleep Disturbance Scale [Parent] (Sleep hyperhydrosis): Number missing

  • Summarized variables:

    • ph_p_sds__hyphy_001

    • ph_p_sds__hyphy_002

  • Excluded values:

    • 777

    • 999

Usage

compute_ph_p_sds__hyphy_nm(
  data,
  name = "ph_p_sds__hyphy_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. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_p_sds__hyphy_sum()


Compute "Sleep Disturbance Scale [Parent] (Sleep breathing disorders): Number missing"

Description

Computes the summary score ph_p_sds__sbd_nm Sleep Disturbance Scale [Parent] (Sleep breathing disorders): Number missing

  • Summarized variables:

    • ph_p_sds__sbd_001

    • ph_p_sds__sbd_002

    • ph_p_sds__sbd_003

  • Excluded values:

    • 777

    • 999

Usage

compute_ph_p_sds__sbd_nm(
  data,
  name = "ph_p_sds__sbd_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. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_p_sds__sbd_sum()


Compute "Sleep Disturbance Scale [Parent] (Sleep-wake transition disorders): Number missing"

Description

Computes the summary score ph_p_sds__swtd_nm Sleep Disturbance Scale [Parent] (Sleep-wake transition disorders): Number missing

  • Summarized variables:

    • ph_p_sds__swtd_001

    • ph_p_sds__swtd_002

    • ph_p_sds__swtd_003

    • ph_p_sds__swtd_004

    • ph_p_sds__swtd_005

    • ph_p_sds__swtd_006

  • Excluded values:

    • 777

    • 999

Usage

compute_ph_p_sds__swtd_nm(
  data,
  name = "ph_p_sds__swtd_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. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_p_sds__swtd_sum()


Compute all the ph_p_sds summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_ph_p_sds_all(data)

Arguments

data

tbl. Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ph_p_sds_all(data)

## End(Not run)

Compute "Sleep Disturbance Scale [Parent]: Number missing"

Description

Computes the summary score ph_p_sds_nm Sleep Disturbance Scale [Parent]: 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. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_p_sds_sum()


Compute "Anthropometrics [Youth] (Height): Number missing"

Description

Computes the summary score ph_y_anthr__height_nm Anthropometrics [Youth] (Height): Number missing

  • Summarized variables:

    • ph_y_anthr__height__r01_001

    • ph_y_anthr__height__r02_001

    • ph_y_anthr__height__r03_001

  • Excluded values: none

Usage

compute_ph_y_anthr__height_nm(
  data,
  name = "ph_y_anthr__height_nm",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_y_anthr__height_mean()

Examples

## Not run: 
compute_ph_y_anthr__height_nm(data) |>
  select(
    all_of(c("ph_y_anthr__height_nm", vars_ph_y_anthr__height))
  )

## End(Not run)

Compute "Anthropometrics [Youth] (Weight): Number missing"

Description

Computes the summary score ph_y_anthr__weight_nm Anthropometrics [Youth] (Weight): Number missing

  • Summarized variables:

    • ph_y_anthr__weight__r01_001

    • ph_y_anthr__weight__r02_001

    • ph_y_anthr__weight__r03_001

  • Excluded values: none

Usage

compute_ph_y_anthr__weight_nm(
  data,
  name = "ph_y_anthr__weight_nm",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_y_anthr__weight_mean()

Examples

## Not run: 
compute_ph_y_anthr__weight_nm(data) |>
  select(
    all_of(c("ph_y_anthr__weight_nm", vars_ph_y_anthr__weight))
  )

## End(Not run)

Compute all the youth anthropometric measurements.

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_ph_y_anthr_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ph_y_anthr_all(data)

## End(Not run)

Compute "Blood Pressure [Youth] (Diastolic): Number missing"

Description

Computes the summary score ph_y_bp__dia_nm Blood Pressure [Youth] (Diastolic): Number missing

  • Summarized variables:

    • ph_y_bp__dia__r01_001

    • ph_y_bp__dia__r01_002

    • ph_y_bp__dia__r01_003

    • ph_y_bp__dia__r02_001

    • ph_y_bp__dia__r02_002

    • ph_y_bp__dia__r03_001

    • ph_y_bp__dia__r03_002

  • Excluded values: none

Calculation

There are at most 3 possible rounds of measurements, and the calculation is as follows:

  • if round 3 is available, use it, otherwise use round 2, otherwise use round 1

  • for round 3 and 2, there are at most 2 measurements

  • for round 1, there are at most 3 measurements:

    • participants with 3 measurements, and 0 missing, nm = 0

    • participants with 2 measurements, and 1 missing, nm = 1 - 1 = 0

    • participants with 1 measurement, and 2 missing, nm = 2 - 1 = 1

    • participants with 0 measurements, and 3 missing, nm = 3 - 1 = 2

Usage

compute_ph_y_bp__dia_nm(data, name = "ph_y_bp__dia_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_y_bp__dia_mean()

Examples

## Not run: 
compute_ph_y_bp__dia_nm(data) |>
  select(
    all_of(c("ph_y_bp__dia_nm", vars_ph_y_bp__dia))
  )

## End(Not run)

Compute "Blood Pressure [Youth] (Heart rate): Number missing"

Description

Computes the summary score ph_y_bp__hrate_nm Blood Pressure [Youth] (Heart rate): Number missing

  • Summarized variables:

    • ph_y_bp__hrate__r01_001

    • ph_y_bp__hrate__r01_002

    • ph_y_bp__hrate__r01_003

    • ph_y_bp__hrate__r02_001

    • ph_y_bp__hrate__r02_002

    • ph_y_bp__hrate__r03_001

    • ph_y_bp__hrate__r03_002

  • Excluded values: none

Calculation

There are at most 3 possible rounds of measurements, and the calculation is as follows:

  • if round 3 is available, use it, otherwise use round 2, otherwise use round 1

  • for round 3 and 2, there are at most 2 measurements

  • for round 1, there are at most 3 measurements:

    • participants with 3 measurements, and 0 missing, nm = 0

    • participants with 2 measurements, and 1 missing, nm = 1 - 1 = 0

    • participants with 1 measurement, and 2 missing, nm = 2 - 1 = 1

    • participants with 0 measurements, and 3 missing, nm = 3 - 1 = 2

Usage

compute_ph_y_bp__hrate_nm(data, name = "ph_y_bp__hrate_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_y_bp__hrate_mean()

Examples

## Not run: 
compute_ph_y_bp__hrate_nm(data) |>
  select(
    all_of(c("ph_y_bp__hrate_nm", vars_ph_y_bp__hrate))
  )

## End(Not run)

Compute "Blood Pressure [Youth] (Systolic): Number missing"

Description

Computes the summary score ph_y_bp__sys_nm Blood Pressure [Youth] (Systolic): Number missing

  • Summarized variables:

    • ph_y_bp__sys__r01_001

    • ph_y_bp__sys__r01_002

    • ph_y_bp__sys__r01_003

    • ph_y_bp__sys__r02_001

    • ph_y_bp__sys__r02_002

    • ph_y_bp__sys__r03_001

    • ph_y_bp__sys__r03_002

  • Excluded values: none

Calculation

There are at most 3 possible rounds of measurements, and the calculation is as follows:

  • if round 3 is available, use it, otherwise use round 2, otherwise use round 1

  • for round 3 and 2, there are at most 2 measurements

  • for round 1, there are at most 3 measurements:

    • participants with 3 measurements, and 0 missing, nm = 0

    • participants with 2 measurements, and 1 missing, nm = 1 - 1 = 0

    • participants with 1 measurement, and 2 missing, nm = 2 - 1 = 1

    • participants with 0 measurements, and 3 missing, nm = 3 - 1 = 2

Usage

compute_ph_y_bp__sys_nm(data, name = "ph_y_bp__sys_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_ph_y_bp__sys_mean()

Examples

## Not run: 
compute_ph_y_bp__sys_nm(data) |>
  select(
    all_of(c("ph_y_bp__sys_nm", vars_ph_y_bp__sys))
  )

## End(Not run)

Compute all the youth blood pressure measurements.

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_ph_y_bp_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ph_y_bp_all(data)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - In bed end): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__bed__end__24h_t Munich Chronotype Questionnaire [Youth] (Free Day - In bed end): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd__sleep__end__24h_t (intermediate score)

    • ph_y_mctq__fd__sleep_inertia (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__bed__end__24h_t(
  data,
  name = "ph_y_mctq__fd__bed__end__24h_t",
  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

## Not run: 
compute_ph_y_mctq__fd__bed__end__24h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd__bed__end__24h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - In bed end): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__bed__end__36h_t Munich Chronotype Questionnaire [Youth] (Free Day - In bed end): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd__sleep__end__36h_t (intermediate score)

    • ph_y_mctq__fd__sleep_inertia (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__bed__end__36h_t(
  data,
  name = "ph_y_mctq__fd__bed__end__36h_t",
  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

## Not run: 
compute_ph_y_mctq__fd__bed__end__36h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd__bed__end__36h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - In bed start): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__bed__start__24h_t Munich Chronotype Questionnaire [Youth] (Free Day - In bed start): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd_001__02

    • ph_y_mctq__fd_001__01a

    • ph_y_mctq__fd_001__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__bed__start__24h_t(
  data,
  name = "ph_y_mctq__fd__bed__start__24h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__fd__bed__start__24h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__fd_001__02",
    "ph_y_mctq__fd_001__01a",
    "ph_y_mctq__fd_001__01b",
    "ph_y_mctq__fd__bed__start__24h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - In bed start): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__bed__start__36h_t Munich Chronotype Questionnaire [Youth] (Free Day - In bed start): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd_001__02

    • ph_y_mctq__fd_001__01a

    • ph_y_mctq__fd_001__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__bed__start__36h_t(
  data,
  name = "ph_y_mctq__fd__bed__start__36h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__fd__bed__start__36h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__fd_001__02",
    "ph_y_mctq__fd_001__01a",
    "ph_y_mctq__fd_001__01b",
    "ph_y_mctq__fd__bed__start__36h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - In bed): Sum"

Description

Computes the summary score ph_y_mctq__fd__bed_sum Munich Chronotype Questionnaire [Youth] (Free Day - In bed): Sum

  • Summarized variables:

    • ph_y_mctq__fd__bed__end__36h_t (intermediate score)

    • ph_y_mctq__fd__bed__start__36h_t (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__bed_sum(
  data,
  name = "ph_y_mctq__fd__bed_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

## Not run: 
compute_ph_y_mctq__fd__bed_sum(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd__bed_sum"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep end): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__sleep__end__24h_t Munich Chronotype Questionnaire [Youth] (Free Day - Sleep end): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd_005__02

    • ph_y_mctq__fd_005__01a

    • ph_y_mctq__fd_005__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep__end__24h_t(
  data,
  name = "ph_y_mctq__fd__sleep__end__24h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__fd__sleep__end__24h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__fd_005__02",
    "ph_y_mctq__fd_005__01a",
    "ph_y_mctq__fd_005__01b",
    "ph_y_mctq__fd__sleep__end__24h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep end): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__sleep__end__36h_t Munich Chronotype Questionnaire [Youth] (Free Day - Sleep end): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd_005__02

    • ph_y_mctq__fd_005__01a

    • ph_y_mctq__fd_005__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep__end__36h_t(
  data,
  name = "ph_y_mctq__fd__sleep__end__36h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__fd__sleep__end__36h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__fd_005__02",
    "ph_y_mctq__fd_005__01a",
    "ph_y_mctq__fd_005__01b",
    "ph_y_mctq__fd__sleep__end__36h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep mid): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__sleep__mid__24h_t Munich Chronotype Questionnaire [Youth] (Free Day - Sleep mid): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd__sleep__onset__24h_t (intermediate score)

    • ph_y_mctq__fd__sleep_dur (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep__mid__24h_t(
  data,
  name = "ph_y_mctq__fd__sleep__mid__24h_t",
  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

## Not run: 
compute_ph_y_mctq__fd__sleep__mid__24h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd__sleep__mid__24h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep mid): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__sleep__mid__36h_t Munich Chronotype Questionnaire [Youth] (Free Day - Sleep mid): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd__sleep__onset__36h_t (intermediate score)

    • ph_y_mctq__fd__sleep_period (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep__mid__36h_t(
  data,
  name = "ph_y_mctq__fd__sleep__mid__36h_t",
  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

## Not run: 
compute_ph_y_mctq__fd__sleep__mid__36h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd__sleep__mid__36h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep onset): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__sleep__onset__24h_t Munich Chronotype Questionnaire [Youth] (Free Day - Sleep onset): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd__sleep__start__24h_t (intermediate score)

    • ph_y_mctq__fd__sleep_latent (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep__onset__24h_t(
  data,
  name = "ph_y_mctq__fd__sleep__onset__24h_t",
  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

## Not run: 
compute_ph_y_mctq__fd__sleep__onset__24h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd__sleep__onset__24h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep onset): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__sleep__onset__36h_t Munich Chronotype Questionnaire [Youth] (Free Day - Sleep onset): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd__sleep__start__36h_t(intermediate score)

    • ph_y_mctq__fd__sleep_latent (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep__onset__36h_t(
  data,
  name = "ph_y_mctq__fd__sleep__onset__36h_t",
  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

## Not run: 
compute_ph_y_mctq__fd__sleep__onset__36h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd__sleep__onset__36h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep start): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__sleep__start__24h_t Munich Chronotype Questionnaire [Youth] (Free Day - Sleep start): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd_002__02

    • ph_y_mctq__fd_002__01a

    • ph_y_mctq__fd_002__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep__start__24h_t(
  data,
  name = "ph_y_mctq__fd__sleep__start__24h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__fd__sleep__start__24h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__fd_002__02",
    "ph_y_mctq__fd_002__01a",
    "ph_y_mctq__fd_002__01b",
    "ph_y_mctq__fd__sleep__start__24h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep start): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__fd__sleep__start__36h_t Munich Chronotype Questionnaire [Youth] (Free Day - Sleep start): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd_002__02

    • ph_y_mctq__fd_002__01a

    • ph_y_mctq__fd_002__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep__start__36h_t(
  data,
  name = "ph_y_mctq__fd__sleep__start__36h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__fd__sleep__start__36h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__fd_002__02",
    "ph_y_mctq__fd_002__01a",
    "ph_y_mctq__fd_002__01b",
    "ph_y_mctq__fd__sleep__start__36h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep wakenings after sleep onset): Sum"

Description

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

  • Summarized variables:

    • ph_y_mctq__fd_004

    • ph_y_mctq__fd_004__01

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep__waso_sum(
  data,
  name = "ph_y_mctq__fd__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

## Not run: 
data <- compute_ph_y_mctq__fd__sleep__waso_sum(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__fd_004",
    "ph_y_mctq__fd_004__01",
    "ph_y_mctq__fd__sleep__waso_sum"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep): Duration"

Description

Computes the summary score ph_y_mctq__fd__sleep_dur Munich Chronotype Questionnaire [Youth] (Free Day - Sleep): Duration

  • Summarized variables:

    • ph_y_mctq__fd__sleep__end__36h_t (intermediate score)

    • ph_y_mctq__fd__sleep__onset__36h_t (intermediate score)

    • ph_y_mctq__fd__sleep__waso_sum (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep_dur(
  data,
  name = "ph_y_mctq__fd__sleep_dur",
  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

## Not run: 
compute_ph_y_mctq__fd__sleep_dur(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd__sleep_dur"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep): Inertia"

Description

Computes the summary score ph_y_mctq__fd__sleep_inertia Munich Chronotype Questionnaire [Youth] (Free Day - Sleep): Inertia

  • Summarized variables:

    • ph_y_mctq__fd_006

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep_inertia(
  data,
  name = "ph_y_mctq__fd__sleep_inertia",
  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

## Not run: 
data <- compute_ph_y_mctq__fd__sleep_inertia(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__fd_006",
    "ph_y_mctq__fd__sleep_inertia"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep): Latency"

Description

Computes the summary score ph_y_mctq__fd__sleep_latent Munich Chronotype Questionnaire [Youth] (Free Day - Sleep): Latency

  • Summarized variables:

    • ph_y_mctq__fd_003

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep_latent(
  data,
  name = "ph_y_mctq__fd__sleep_latent",
  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

## Not run: 
data <- compute_ph_y_mctq__fd__sleep_latent(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__fd_003",
    "ph_y_mctq__fd__sleep_latent"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day - Sleep): Period"

Description

Computes the summary score ph_y_mctq__fd__sleep_period Munich Chronotype Questionnaire [Youth] (Free Day - Sleep): Period

  • Summarized variables:

    • ph_y_mctq__fd__sleep__end__36h_t (intermediate score)

    • ph_y_mctq__fd__sleep__onset__36h_t (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd__sleep_period(
  data,
  name = "ph_y_mctq__fd__sleep_period",
  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

## Not run: 
compute_ph_y_mctq__fd__sleep_period(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd__sleep_period"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Free Day): Count"

Description

Computes the summary score ph_y_mctq__fd_count Munich Chronotype Questionnaire [Youth] (Free Day): Count

  • Summarized variables:

    • ph_y_mctq__sd_count (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__fd_count(data, name = "ph_y_mctq__fd_count", 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

## Not run: 
compute_ph_y_mctq__fd_count(data) |>
  select(
    any_of(c(
      "ph_y_mctq__fd_count"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Raw: Chronotype): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__raw__36h_chrono Munich Chronotype Questionnaire [Youth] (Raw: Chronotype): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__fd__sleep_dur (intermediate score)

    • ph_y_mctq__sd__sleep_dur (intermediate score)

    • ph_y_mctq__fd__sleep__mid__36h_t (intermediate score)

    • ph_y_mctq__fd__sleep__onset__36h_t (intermediate score)

    • ph_y_mctq__sleep_dur (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__raw__36h_chrono(
  data,
  name = "ph_y_mctq__raw__36h_chrono",
  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

## Not run: 
compute_ph_y_mctq__raw__36h_chrono(data) |>
  select(
    any_of(c(
      "ph_y_mctq__raw__36h_chrono"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] ( School Schedule leave): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__school__leave__24h_t Munich Chronotype Questionnaire [Youth] ( School Schedule leave): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__school_003__02

    • ph_y_mctq__school_003__01a

    • ph_y_mctq__school_003__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__school__leave__24h_t(
  data,
  name = "ph_y_mctq__school__leave__24h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__school__leave__24h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__school_003__02",
    "ph_y_mctq__school_003__01a",
    "ph_y_mctq__school_003__01b",
    "ph_y_mctq__school__leave__24h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] ( School Schedule leave): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__school__leave__36h_t Munich Chronotype Questionnaire [Youth] ( School Schedule leave): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__school_003__02

    • ph_y_mctq__school_003__01a

    • ph_y_mctq__school_003__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__school__leave__36h_t(
  data,
  name = "ph_y_mctq__school__leave__36h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__school__leave__36h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__school_003__02",
    "ph_y_mctq__school_003__01a",
    "ph_y_mctq__school_003__01b",
    "ph_y_mctq__school__leave__36h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] ( School Schedule start): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__school__start__24h_t Munich Chronotype Questionnaire [Youth] ( School Schedule start): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__school_002__02

    • ph_y_mctq__school_002__01a

    • ph_y_mctq__school_002__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__school__start__24h_t(
  data,
  name = "ph_y_mctq__school__start__24h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__school__start__24h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__school_002__02",
    "ph_y_mctq__school_002__01a",
    "ph_y_mctq__school_002__01b",
    "ph_y_mctq__school__start__24h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] ( School Schedule start): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__school__start__36h_t Munich Chronotype Questionnaire [Youth] ( School Schedule start): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__school_002__02

    • ph_y_mctq__school_002__01a

    • ph_y_mctq__school_002__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__school__start__36h_t(
  data,
  name = "ph_y_mctq__school__start__36h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__school__start__36h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__school_002__02",
    "ph_y_mctq__school_002__01a",
    "ph_y_mctq__school_002__01b",
    "ph_y_mctq__school__start__36h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - In bed end): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__bed__end__24h_t Munich Chronotype Questionnaire [Youth] (School Day - In bed end): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd__sleep__end__24h_t (intermediate score)

    • ph_y_mctq__sd__sleep_inertia (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__bed__end__24h_t(
  data,
  name = "ph_y_mctq__sd__bed__end__24h_t",
  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

## Not run: 
compute_ph_y_mctq__sd__bed__end__24h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sd__bed__end__24h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - In bed end): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__bed__end__36h_t Munich Chronotype Questionnaire [Youth] (School Day - In bed end): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd__sleep__end__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep_inertia (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__bed__end__36h_t(
  data,
  name = "ph_y_mctq__sd__bed__end__36h_t",
  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

## Not run: 
compute_ph_y_mctq__sd__bed__end__36h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sd__bed__end__36h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - In bed start): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__bed__start__24h_t Munich Chronotype Questionnaire [Youth] (School Day - In bed start): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd_001__02

    • ph_y_mctq__sd_001__01a

    • ph_y_mctq__sd_001__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__bed__start__24h_t(
  data,
  name = "ph_y_mctq__sd__bed__start__24h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__sd__bed__start__24h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__sd_001__02",
    "ph_y_mctq__sd_001__01a",
    "ph_y_mctq__sd_001__01b",
    "ph_y_mctq__sd__bed__start__24h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - In bed start): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__bed__start__36h_t Munich Chronotype Questionnaire [Youth] (School Day - In bed start): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd_001__02

    • ph_y_mctq__sd_001__01a

    • ph_y_mctq__sd_001__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__bed__start__36h_t(
  data,
  name = "ph_y_mctq__sd__bed__start__36h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__sd__bed__start__36h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__sd_001__02",
    "ph_y_mctq__sd_001__01a",
    "ph_y_mctq__sd_001__01b",
    "ph_y_mctq__sd__bed__start__36h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - In bed): Sum"

Description

Computes the summary score ph_y_mctq__sd__bed_sum Munich Chronotype Questionnaire [Youth] (School Day - In bed): Sum

  • Summarized variables:

    • ph_y_mctq__sd__bed__end__36h_t (intermediate score)

    • ph_y_mctq__sd__bed__start__36h_t (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__bed_sum(
  data,
  name = "ph_y_mctq__sd__bed_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

## Not run: 
compute_ph_y_mctq__sd__bed_sum(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sd__bed_sum"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep end): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__sleep__end__24h_t Munich Chronotype Questionnaire [Youth] (School Day - Sleep end): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd_005__02

    • ph_y_mctq__sd_005__01a

    • ph_y_mctq__sd_005__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep__end__24h_t(
  data,
  name = "ph_y_mctq__sd__sleep__end__24h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__sd__sleep__end__24h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__sd_005__02",
    "ph_y_mctq__sd_005__01a",
    "ph_y_mctq__sd_005__01b",
    "ph_y_mctq__sd__sleep__end__24h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep end): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__sleep__end__36h_t Munich Chronotype Questionnaire [Youth] (School Day - Sleep end): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd_005__02

    • ph_y_mctq__sd_005__01a

    • ph_y_mctq__sd_005__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep__end__36h_t(
  data,
  name = "ph_y_mctq__sd__sleep__end__36h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__sd__sleep__end__36h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__sd_005__02",
    "ph_y_mctq__sd_005__01a",
    "ph_y_mctq__sd_005__01b",
    "ph_y_mctq__sd__sleep__end__36h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep mid): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__sleep__mid__24h_t Munich Chronotype Questionnaire [Youth] (School Day - Sleep mid): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd__sleep__onset__24h_t (intermediate score)

    • ph_y_mctq__sd__sleep_dur (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep__mid__24h_t(
  data,
  name = "ph_y_mctq__sd__sleep__mid__24h_t",
  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

## Not run: 
compute_ph_y_mctq__sd__sleep__mid__24h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sd__sleep__mid__24h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep mid): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__sleep__mid__36h_t Munich Chronotype Questionnaire [Youth] (School Day - Sleep mid): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd__sleep__onset__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep_period (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep__mid__36h_t(
  data,
  name = "ph_y_mctq__sd__sleep__mid__36h_t",
  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

## Not run: 
compute_ph_y_mctq__sd__sleep__mid__36h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sd__sleep__mid__36h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep onset): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__sleep__onset__24h_t Munich Chronotype Questionnaire [Youth] (School Day - Sleep onset): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd__sleep__start__24h_t (intermediate score)

    • ph_y_mctq__sd__sleep_latent (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep__onset__24h_t(
  data,
  name = "ph_y_mctq__sd__sleep__onset__24h_t",
  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

## Not run: 
compute_ph_y_mctq__sd__sleep__onset__24h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sd__sleep__onset__24h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep onset): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__sleep__onset__36h_t Munich Chronotype Questionnaire [Youth] (School Day - Sleep onset): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd__sleep__start__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep_latent (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep__onset__36h_t(
  data,
  name = "ph_y_mctq__sd__sleep__onset__36h_t",
  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

## Not run: 
compute_ph_y_mctq__sd__sleep__onset__36h_t(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sd__sleep__onset__36h_t"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep start): Time [24 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__sleep__start__24h_t Munich Chronotype Questionnaire [Youth] (School Day - Sleep start): Time [24 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd_002__02

    • ph_y_mctq__sd_002__01a

    • ph_y_mctq__sd_002__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep__start__24h_t(
  data,
  name = "ph_y_mctq__sd__sleep__start__24h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__sd__sleep__start__24h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__sd_002__02",
    "ph_y_mctq__sd_002__01a",
    "ph_y_mctq__sd_002__01b",
    "ph_y_mctq__sd__sleep__start__24h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep start): Time [36 hour adjusted]"

Description

Computes the summary score ph_y_mctq__sd__sleep__start__36h_t Munich Chronotype Questionnaire [Youth] (School Day - Sleep start): Time [36 hour adjusted]

  • Summarized variables:

    • ph_y_mctq__sd_002__02

    • ph_y_mctq__sd_002__01a

    • ph_y_mctq__sd_002__01b

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep__start__36h_t(
  data,
  name = "ph_y_mctq__sd__sleep__start__36h_t",
  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

## Not run: 
data <- compute_ph_y_mctq__sd__sleep__start__36h_t(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__sd_002__02",
    "ph_y_mctq__sd_002__01a",
    "ph_y_mctq__sd_002__01b",
    "ph_y_mctq__sd__sleep__start__36h_t"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep wakenings after sleep onset): Sum"

Description

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

  • Excluded values: none

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

## Not run: 
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"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep): Duration"

Description

Computes the summary score ph_y_mctq__sd__sleep_dur Munich Chronotype Questionnaire [Youth] (School Day - Sleep): Duration

  • Summarized variables:

    • ph_y_mctq__sd__sleep__end__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep__onset__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep__waso_sum (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep_dur(
  data,
  name = "ph_y_mctq__sd__sleep_dur",
  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

## Not run: 
compute_ph_y_mctq__sd__sleep_dur(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sd__sleep_dur"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep): Inertia"

Description

Computes the summary score ph_y_mctq__sd__sleep_inertia Munich Chronotype Questionnaire [Youth] (School Day - Sleep): Inertia

  • Summarized variables:

    • ph_y_mctq__sd_006

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep_inertia(
  data,
  name = "ph_y_mctq__sd__sleep_inertia",
  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

## Not run: 
data <- compute_ph_y_mctq__sd__sleep_inertia(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__sd_006",
    "ph_y_mctq__sd__sleep_inertia"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep): Latency"

Description

Computes the summary score ph_y_mctq__sd__sleep_latent Munich Chronotype Questionnaire [Youth] (School Day - Sleep): Latency

  • Summarized variables:

    • ph_y_mctq__sd_003

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep_latent(
  data,
  name = "ph_y_mctq__sd__sleep_latent",
  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

## Not run: 
data <- compute_ph_y_mctq__sd__sleep_latent(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__sd_003",
    "ph_y_mctq__sd__sleep_latent"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day - Sleep): Period"

Description

Computes the summary score ph_y_mctq__sd__sleep_period Munich Chronotype Questionnaire [Youth] (School Day - Sleep): Period

  • Summarized variables:

    • ph_y_mctq__sd__sleep__end__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep__onset__36h_t (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd__sleep_period(
  data,
  name = "ph_y_mctq__sd__sleep_period",
  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

## Not run: 
compute_ph_y_mctq__sd__sleep_period(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sd__sleep_period"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (School Day): Count"

Description

Computes the summary score ph_y_mctq__sd_count Munich Chronotype Questionnaire [Youth] (School Day): Count

  • Summarized variables:

    • ph_y_mctq__school_001

    • ph_y_mctq__school_001__01

    • ph_y_mctq__school_001__v01 (>= 7.0.0)

    • ph_y_mctq__school_001__01__v1 (>= 7.0.0)

  • Excluded values: none

Usage

compute_ph_y_mctq__sd_count(data, name = "ph_y_mctq__sd_count", 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.

Details

In data release before 7.0 and 7.0.0 of the ABCDscores package, the variables ph_y_mctq__school_001__v01 and ph_y_mctq__school_001__01__v1 were not available. In this case, the function will create these variables internally and fill them with NA values. After 7.0.0, these variables are expected to be present.

Value

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

Examples

## Not run: 
data <- compute_ph_y_mctq__sd_count(data)
select(
  data,
  any_of(c(
    "ph_y_mctq__school_001",
    "ph_y_mctq__school_001__01",
    "ph_y_mctq__school_001__v01",
    "ph_y_mctq__school_001__01__v1",
    "ph_y_mctq__sd_count"
  ))
)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Sleep): Duration"

Description

Computes the summary score ph_y_mctq__sleep_dur Munich Chronotype Questionnaire [Youth] (Sleep): Duration

  • Summarized variables:

    • ph_y_mctq__sd_count (intermediate score)

    • ph_y_mctq__sd__sleep_dur (intermediate score)

    • ph_y_mctq__fd__sleep_dur (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sleep_dur(
  data,
  name = "ph_y_mctq__sleep_dur",
  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

## Not run: 
compute_ph_y_mctq__sleep_dur(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sleep_dur"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Sleep): Loss"

Description

Computes the summary score ph_y_mctq__sleep_loss Munich Chronotype Questionnaire [Youth] (Sleep): Loss

  • Summarized variables:

    • ph_y_mctq__fd__sleep_period (intermediate score)

    • ph_y_mctq__sd__sleep_period (intermediate score)

    • ph_y_mctq__sd_count (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sleep_loss(
  data,
  name = "ph_y_mctq__sleep_loss",
  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

## Not run: 
compute_ph_y_mctq__sleep_loss(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sleep_loss"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Sleep): Period"

Description

Computes the summary score ph_y_mctq__sleep_period Munich Chronotype Questionnaire [Youth] (Sleep): Period

  • Summarized variables:

    • ph_y_mctq__sd_count (intermediate score)

    • ph_y_mctq__sd__sleep_period (intermediate score)

    • ph_y_mctq__fd__sleep_period (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__sleep_period(
  data,
  name = "ph_y_mctq__sleep_period",
  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

## Not run: 
compute_ph_y_mctq__sleep_period(data) |>
  select(
    any_of(c(
      "ph_y_mctq__sleep_period"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Social Jetlag: Absolute): Time"

Description

Computes the summary score ph_y_mctq__socjl_absl Munich Chronotype Questionnaire [Youth] (Social Jetlag: Absolute): Time

  • Summarized variables:

    • ph_y_mctq__fd__sleep__mid__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep__mid__36h_t (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__socjl_absl(
  data,
  name = "ph_y_mctq__socjl_absl",
  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

## Not run: 
compute_ph_y_mctq__socjl_absl(data) |>
  select(
    any_of(c(
      "ph_y_mctq__socjl_absl"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Social Jetlag: Relative): Time"

Description

Computes the summary score ph_y_mctq__socjl_rel Munich Chronotype Questionnaire [Youth] (Social Jetlag: Relative): Time

  • Summarized variables:

    • ph_y_mctq__fd__sleep__mid__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep__mid__36h_t (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq__socjl_rel(
  data,
  name = "ph_y_mctq__socjl_rel",
  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

## Not run: 
compute_ph_y_mctq__socjl_rel(data) |>
  select(
    any_of(c(
      "ph_y_mctq__socjl_rel"
    ))
  )

## End(Not run)

Compute all the MCTQ variables

Description

Compute all the MCTQ variables

Usage

compute_ph_y_mctq_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Details

Make sure the data is the full set of all variables from MCTQ.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ph_y_mctq_all(data)

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth] (Chronotype): Time"

Description

Computes the summary score ph_y_mctq_chrono Munich Chronotype Questionnaire [Youth] (Chronotype): Time

  • Summarized variables:

    • ph_y_mctq__fd_007

    • ph_y_mctq__fd__sleep_period (intermediate score)

    • ph_y_mctq__sd__sleep_period (intermediate score)

    • ph_y_mctq__fd__sleep__mid__36h_t (intermediate score)

    • ph_y_mctq__fd__sleep__onset__36h_t (intermediate score)

    • ph_y_mctq__sleep_period (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq_chrono(data, name = "ph_y_mctq_chrono", 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

## Not run: 
compute_ph_y_mctq_chrono(data) |>
  select(
    any_of(c(
      "ph_y_mctq_chrono"
    ))
  )

## End(Not run)

Compute "Munich Chronotype Questionnaire [Youth]: Outlier"

Description

Computes the summary score ph_y_mctq_outlier Munich Chronotype Questionnaire [Youth]: Outlier

  • Summarized variables:

    • ph_y_mctq__sd__sleep__onset__36h_t (intermediate score)

    • ph_y_mctq__fd__sleep__onset__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep__mid__36h_t (intermediate score)

    • ph_y_mctq__fd__sleep__mid__36h_t (intermediate score)

    • ph_y_mctq__sd__sleep_dur (intermediate score)

    • ph_y_mctq__fd__sleep_dur (intermediate score)

  • Excluded values: none

Usage

compute_ph_y_mctq_outlier(data, name = "ph_y_mctq_outlier", 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

## Not run: 
compute_ph_y_mctq_outlier(data) |>
  select(
    any_of(c(
      "ph_y_mctq_outlier"
    ))
  )

## End(Not run)

Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Female): Approximate tanner stages - Number missing"

Description

Computes the summary score ph_y_pds__f__categ_nm Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Female): Approximate tanner stages - Number missing

  • Summarized variables:

    • ph_y_pds_002

    • ph_y_pds__f_001

    • ph_y_pds__f_002

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_y_pds__f_categ()


Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Female): Number missing"

Description

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

Value

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

See Also

compute_ph_y_pds__f_mean()


Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Male): Approximate tanner stages - Number missing"

Description

Computes the summary score ph_y_pds__m__categ_nm Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Male): Approximate tanner stages - Number missing

  • Summarized variables:

    • ph_y_pds_002

    • ph_y_pds__m_001

    • ph_y_pds__m_002

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_y_pds__m_categ()


Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Male): Number missing"

Description

Computes the summary score ph_y_pds__m_nm Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Male): Number missing

  • Summarized variables:

    • ph_y_pds_001

    • ph_y_pds_002

    • ph_y_pds_003

    • ph_y_pds__m_001

    • ph_y_pds__m_002

  • Excluded values:

    • 777

    • 999

Usage

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

Value

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

See Also

compute_ph_y_pds__m_mean()


Compute all the ph_y_pds summary scores

Description

This is a high-level function that computes all summary scores in this table. Make sure the data contains all the necessary columns.

Usage

compute_ph_y_pds_all(data)

Arguments

data

tbl. Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_ph_y_pds_all(data)

## End(Not run)

Compute annual session substance use age of onset for a participant

Description

For each participant returns the age of onset for the requested substance(s). The function:

  • determines the session of first use (via compute_ss_use_onset_event()) and extracts the reported age at that visit;

  • for substance(s) that have detailed first-use age items, also extracts the earliest reported age of first use across the relevant substance-specific onset items; and

  • returns the age of first use if available, otherwise returns the age reported at the visit. If neither value is available the result is NA.

Usage

compute_ss_use_onset_age(data, name, substance, algo = NULL)

Arguments

data

tibble. A dataframe produced by prepare_data_sdsu().

name

character(1). Name of the output score column to validate.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "Alcohol (Sipping)"

  • "Nicotine (Puffing)"

  • "Marijuana (Puffing)"

  • "Alcohol"

  • "Nicotine"

  • "Marijuana"

  • "Cocaine or Crack Cocaine"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Ketamine or Special K"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Ecstasy, Molly, or MDMA"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Anabolic Steroids"

  • "Inhalants"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Salvia"

  • "Prescription Stimulants"

  • "Prescription Opioids"

  • "'Fake' Marijuana or Synthetics"

  • "Other substances"

  • "Nicotine Vaping Products"

  • "Tobacco Cigarette"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Tobacco in a Pipe"

  • "Hookah with Tobacco"

  • "Nicotine Replacements"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Flavored Vaping Products"

  • "Smoking Marijuana Flower"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Marijuana Concentrates"

  • "Concentrated Marijuana Tinctures"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "CBD (Non-Medical Use)"

  • "Alcohol (Including low-level use)"

  • "Nicotine (Including low-level use)"

  • "Marijuana (Including low-level use)"

  • "Substance use (Not including alcohol, nicotine, and cannabis)"

  • "Substance use"

  • "Substance use (Including low-level use)"

algo

character. Mapping algorithm to apply to mid‑year sessions. Allowed values:

  • "next_existing_fy": assign a mid year to the next existing full year. If a participant ends with mid‑year visits, those terminal mid‑year records are dropped.

  • "next_potential_fy": assign a mid year to the next existing full year when present, otherwise assign to the next forecasted full year (that may never materialize).

  • "next_immediate_fy": assign a mid year to the next full year regardless of whether that full year record exists or not.

  • "remove_my": drop mid-year events and keep only full-year events. If NULL (default) no mapping is performed and data is returned unchanged.

Value

A tibble with columns participant_id and a character column named by name containing the age of onset or NA if there was no use.

See Also

map_mid_years()

Examples

## Not run: 
deap_data |>
  prepare_data_sdsu() |>
  compute_ss_use_onset_age(
    name = "su_alc_onset_age",
    substance = "Alcohol"
  )

## End(Not run)

Compute substance use onset session for each participant

Description

For each participant returns the session (character session_id) of first use for the requested substance(s). The function:

  • maps or removes mid‑year sessions according to algo (see map_mid_years()) by default no.

  • for each participant selects the earliest session where any use was observed.

Usage

compute_ss_use_onset_event(data, name, substance, algo = NULL)

Arguments

data

tibble. A dataframe produced by prepare_data_sdsu().

name

character(1). Name of the output score column to validate.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "Alcohol (Sipping)"

  • "Nicotine (Puffing)"

  • "Marijuana (Puffing)"

  • "Alcohol"

  • "Nicotine"

  • "Marijuana"

  • "Cocaine or Crack Cocaine"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Ketamine or Special K"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Ecstasy, Molly, or MDMA"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Anabolic Steroids"

  • "Inhalants"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Salvia"

  • "Prescription Stimulants"

  • "Prescription Opioids"

  • "'Fake' Marijuana or Synthetics"

  • "Other substances"

  • "Nicotine Vaping Products"

  • "Tobacco Cigarette"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Tobacco in a Pipe"

  • "Hookah with Tobacco"

  • "Nicotine Replacements"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Flavored Vaping Products"

  • "Smoking Marijuana Flower"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Marijuana Concentrates"

  • "Concentrated Marijuana Tinctures"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "CBD (Non-Medical Use)"

  • "Alcohol (Including low-level use)"

  • "Nicotine (Including low-level use)"

  • "Marijuana (Including low-level use)"

  • "Substance use (Not including alcohol, nicotine, and cannabis)"

  • "Substance use"

  • "Substance use (Including low-level use)"

algo

character. Mapping algorithm to apply to mid‑year sessions. Allowed values:

  • "next_existing_fy": assign a mid year to the next existing full year. If a participant ends with mid‑year visits, those terminal mid‑year records are dropped.

  • "next_potential_fy": assign a mid year to the next existing full year when present, otherwise assign to the next forecasted full year (that may never materialize).

  • "next_immediate_fy": assign a mid year to the next full year regardless of whether that full year record exists or not.

  • "remove_my": drop mid-year events and keep only full-year events. If NULL (default) no mapping is performed and data is returned unchanged.

Value

A tibble with columns participant_id and a character column named by name containing the session of onset or NA if there was no use.

See Also

map_mid_years()

Examples

## Not run: 
deap_data |>
  prepare_data_sdsu() |>
  compute_ss_use_onset_event(
    name = "su_alc_onset_event",
    substance = "Alcohol"
  )

## End(Not run)

Compute substance use Y/N for a participant

Description

For each participant computes a binary (1/0) indicator indicating any use of (one of) the given substance(s) at a session (or cumulatively up to and including that session when cumulative = TRUE). Parameter algo is set to "next_existing_fy".

Usage

compute_ss_use_yn(
  data,
  name,
  substance,
  algo = "next_existing_fy",
  cumulative = FALSE
)

Arguments

data

tibble. A dataframe produced by prepare_data_sdsu().

name

character(1). Name of the output score column to validate.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "Alcohol (Sipping)"

  • "Nicotine (Puffing)"

  • "Marijuana (Puffing)"

  • "Alcohol"

  • "Nicotine"

  • "Marijuana"

  • "Cocaine or Crack Cocaine"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Ketamine or Special K"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Ecstasy, Molly, or MDMA"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Anabolic Steroids"

  • "Inhalants"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Salvia"

  • "Prescription Stimulants"

  • "Prescription Opioids"

  • "'Fake' Marijuana or Synthetics"

  • "Other substances"

  • "Nicotine Vaping Products"

  • "Tobacco Cigarette"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Tobacco in a Pipe"

  • "Hookah with Tobacco"

  • "Nicotine Replacements"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Flavored Vaping Products"

  • "Smoking Marijuana Flower"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Marijuana Concentrates"

  • "Concentrated Marijuana Tinctures"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "CBD (Non-Medical Use)"

  • "Alcohol (Including low-level use)"

  • "Nicotine (Including low-level use)"

  • "Marijuana (Including low-level use)"

  • "Substance use (Not including alcohol, nicotine, and cannabis)"

  • "Substance use"

  • "Substance use (Including low-level use)"

algo

character. Mapping algorithm to apply to mid‑year sessions. Allowed values:

  • "next_existing_fy": assign a mid year to the next existing full year. If a participant ends with mid‑year visits, those terminal mid‑year records are dropped.

  • "next_potential_fy": assign a mid year to the next existing full year when present, otherwise assign to the next forecasted full year (that may never materialize).

  • "next_immediate_fy": assign a mid year to the next full year regardless of whether that full year record exists or not.

  • "remove_my": drop mid-year events and keep only full-year events. If NULL (default) no mapping is performed and data is returned unchanged.

cumulative

logical(1). If FALSE (default), returns use at each session. If TRUE, returns 1 from the first session where use was observed onward (i.e. ever used up to and including that session).

Value

A tibble with columns participant_id, session_id and a numeric column named by name containing 1 (use) or 0 (no use).

See Also

map_mid_years()

Examples

## Not run: 
deap_data |>
  prepare_data_sdsu() |>
  compute_ss_use_yn(
    name = "su_y_alc_use_yn",
    substance = "Alcohol"
  )

## End(Not run)

Compute all summary scores for su_p_ksads__aud

Description

This function computes all summary scores for the su_p_ksads__aud table. Make sure to have all necessary columns in the data frame.

Usage

compute_su_p_ksads__aud_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for su_p_ksads__dud

Description

This function computes all summary scores for the su_p_ksads__dud table. Make sure to have all necessary columns in the data frame.

Usage

compute_su_p_ksads__dud_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute "Alcohol Expectancies (AEQ-AB) [Youth] (Strength of negative expectancies): Number missing"

Description

Computes the summary score su_y_alcexp__neg_nm Alcohol Expectancies (AEQ-AB) [Youth] (Strength of negative expectancies): Number missing

  • Summarized variables:

    • su_y_alcexp__neg_001

    • su_y_alcexp__neg_002

    • su_y_alcexp__neg_003

  • Excluded values: none

Usage

compute_su_y_alcexp__neg_nm(data, name = "su_y_alcexp__neg_nm", combine = TRUE)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_alcexp__neg_prsum()


Compute "Alcohol Expectancies (AEQ-AB) [Youth] (Strength of positive expectancies): Number missing"

Description

Computes the summary score su_y_alcexp__pos_nm Alcohol Expectancies (AEQ-AB) [Youth] (Strength of positive expectancies): Number missing

  • Summarized variables:

    • su_y_alcexp__pos_001

    • su_y_alcexp__pos_002

    • su_y_alcexp__pos_003

  • Excluded values: none

Usage

compute_su_y_alcexp__pos_nm(data, name = "su_y_alcexp__pos_nm", combine = TRUE)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_alcexp__pos_prsum()


Compute all the su_y_alcexp scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_su_y_alcexp_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_alcexp_all(data)

## End(Not run)

Compute all Alcohol Hangover Symptoms Scale (HSS) Youth summary scores

Description

compute all summary scores of Alcohol Hangover Symptoms Scale (HSS) Youth

Usage

compute_su_y_alchss_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

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

Examples

## Not run: 
compute_su_y_alchss_all(data)

## End(Not run)

Compute "Alcohol Hangover Symptoms Scale (HSS) [Youth]: Count"

Description

Computes the summary score su_y_alchss_count Alcohol Hangover Symptoms Scale (HSS) [Youth]: Count

  • Summarized variables:

    • su_y_alchss_001

    • su_y_alchss_002

    • su_y_alchss_003

    • su_y_alchss_004

    • su_y_alchss_005

    • su_y_alchss_006

    • su_y_alchss_007

    • su_y_alchss_008

    • su_y_alchss_009

    • su_y_alchss_010

    • su_y_alchss_011

    • su_y_alchss_012

    • su_y_alchss_013

    • su_y_alchss_014

    • su_y_alchss_001__l

    • su_y_alchss_002__l

    • su_y_alchss_003__l

    • su_y_alchss_004__l

    • su_y_alchss_005__l

    • su_y_alchss_006__l

    • su_y_alchss_007__l

    • su_y_alchss_008__l

    • su_y_alchss_009__l

    • su_y_alchss_010__l

    • su_y_alchss_011__l

    • su_y_alchss_012__l

    • su_y_alchss_013__l

    • su_y_alchss_014__l

  • Excluded values: none

  • Validation criterion: maximally 0 of 2 items missing

Usage

compute_su_y_alchss_count(
  data,
  name = "su_y_alchss_count",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_su_y_alchss_sum()

Examples

## Not run: 
compute_su_y_alchss_count(data) |> View()

## End(Not run)

Compute "Alcohol Hangover Symptoms Scale (HSS) [Youth]: Number missing"

Description

Computes the summary score su_y_alchss_nm Alcohol Hangover Symptoms Scale (HSS) [Youth]: Number missing

  • Summarized variables:

    • su_y_alchss_001

    • su_y_alchss_002

    • su_y_alchss_003

    • su_y_alchss_004

    • su_y_alchss_005

    • su_y_alchss_006

    • su_y_alchss_007

    • su_y_alchss_008

    • su_y_alchss_009

    • su_y_alchss_010

    • su_y_alchss_011

    • su_y_alchss_012

    • su_y_alchss_013

    • su_y_alchss_014

    • su_y_alchss_001__l

    • su_y_alchss_002__l

    • su_y_alchss_003__l

    • su_y_alchss_004__l

    • su_y_alchss_005__l

    • su_y_alchss_006__l

    • su_y_alchss_007__l

    • su_y_alchss_008__l

    • su_y_alchss_009__l

    • su_y_alchss_010__l

    • su_y_alchss_011__l

    • su_y_alchss_012__l

    • su_y_alchss_013__l

    • su_y_alchss_014__l

  • Excluded values: none

Usage

compute_su_y_alchss_nm(data, name = "su_y_alchss_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Value

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

See Also

compute_su_y_alchss_sum()

Examples

## Not run: 
compute_su_y_alchss_nm(data)

## End(Not run)

Compute all the su_y_alcprob scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_su_y_alcprob_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_alcprob_all(data)

## End(Not run)

Compute "Alcohol Problem Index (RAPI) [Youth]: Number missing"

Description

Computes the summary score su_y_alcprob_nm Alcohol Problem Index (RAPI) [Youth]: Number missing

  • Summarized variables:

    • ab_p_demo__race_001___0

    • ab_p_demo__race_001___10

    • ab_p_demo__race_001___11

    • ab_p_demo__race_001___12

    • ab_p_demo__race_001___13

    • ab_p_demo__race_001___14

    • ab_p_demo__race_001___15

    • ab_p_demo__race_001___16

    • ab_p_demo__race_001___17

    • ab_p_demo__race_001___18

    • ab_p_demo__race_001___19

    • ab_p_demo__race_001___20

    • ab_p_demo__race_001___21

    • ab_p_demo__race_001___22

    • ab_p_demo__race_001___23

    • ab_p_demo__race_001___24

    • ab_p_demo__race_001___25

    • ab_p_demo__race_001___777

    • ab_p_demo__race_001___999

    • ab_p_demo__race_001__v01___999

    • ab_p_demo__race_001__v01___10

    • ab_p_demo__race_001__v01___11

    • ab_p_demo__race_001__v01___12

    • ab_p_demo__race_001__v01___20

    • ab_p_demo__race_001__v01___21

    • ab_p_demo__race_001__v01___22

    • ab_p_demo__race_001__v01___23

    • ab_p_demo__race_001__v01___13

    • ab_p_demo__race_001__v01___14

    • ab_p_demo__race_001__v01___15

    • ab_p_demo__race_001__v01___17

    • ab_p_demo__race_001__v01___18

    • ab_p_demo__race_001__v01___19

    • ab_p_demo__race_001__v01___16

    • ab_p_demo__race_001__v01___24

    • ab_p_demo__race_001__v01___777

  • Excluded values: none

Usage

compute_su_y_alcprob_nm(data, name = "su_y_alcprob_nm", combine = TRUE)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_alcprob_prsum()


Compute "Alcohol Subject Response and Effects [Youth] (Last 6 months): Count [Validation: None missing or declined]"

Description

Computes the summary score su_y_alcsre__6mo_count Alcohol Subject Response and Effects [Youth] (Last 6 months): Count [Validation: None missing or declined]

  • Summarized variables:

    • su_y_alcsre__6mo_001

    • su_y_alcsre__6mo_002

    • su_y_alcsre__6mo_003

    • su_y_alcsre__6mo_004

  • Excluded values: none

  • Validation criterion: maximally 0 of 4 items missing

Usage

compute_su_y_alcsre__6mo_count(
  data,
  name = "su_y_alcsre__6mo_count",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Value

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


Compute "Alcohol Subject Response and Effects [Youth] (Last 6 months): Number missing"

Description

Computes the summary score su_y_alcsre__6mo_nm Alcohol Subject Response and Effects [Youth] (Last 6 months): Number missing

  • Summarized variables:

    • su_y_alcsre__6mo_001

    • su_y_alcsre__6mo_002

    • su_y_alcsre__6mo_003

    • su_y_alcsre__6mo_004

  • Excluded values: none

Usage

compute_su_y_alcsre__6mo_nm(data, name = "su_y_alcsre__6mo_nm", 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.


Compute "Alcohol Subject Response and Effects [Youth] (First 5 times ever drank): Count [Validation: None missing or declined]"

Description

Computes the summary score su_y_alcsre__first5_count Alcohol Subject Response and Effects [Youth] (First 5 times ever drank): Count [Validation: None missing or declined]

  • Summarized variables:

    • su_y_alcsre__first5_001

    • su_y_alcsre__first5_002

    • su_y_alcsre__first5_003

    • su_y_alcsre__first5_004

  • Excluded values: none

  • Validation criterion: maximally 0 of 4 items missing

Usage

compute_su_y_alcsre__first5_count(
  data,
  name = "su_y_alcsre__first5_count",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Value

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


Compute "Alcohol Subject Response and Effects [Youth] (First 5 times ever drank): Number missing"

Description

Computes the summary score su_y_alcsre__first5_nm Alcohol Subject Response and Effects [Youth] (First 5 times ever drank): Number missing

  • Summarized variables:

    • su_y_alcsre__first5_001

    • su_y_alcsre__first5_002

    • su_y_alcsre__first5_003

    • su_y_alcsre__first5_004

  • Excluded values: none

Usage

compute_su_y_alcsre__first5_nm(
  data,
  name = "su_y_alcsre__first5_nm",
  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.


Compute "Alcohol Subject Response and Effects [Youth] (Heaviest drinking period): Count [Validation: None missing or declined]"

Description

Computes the summary score su_y_alcsre__hvy_count Alcohol Subject Response and Effects [Youth] (Heaviest drinking period): Count [Validation: None missing or declined]

  • Summarized variables:

    • su_y_alcsre__hvy_001

    • su_y_alcsre__hvy_002

    • su_y_alcsre__hvy_003

    • su_y_alcsre__hvy_004

  • Excluded values: none

  • Validation criterion: maximally 0 of 4 items missing

Usage

compute_su_y_alcsre__hvy_count(
  data,
  name = "su_y_alcsre__hvy_count",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Value

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


Compute "Alcohol Subject Response and Effects [Youth] (Heaviest drinking period): Number missing"

Description

Computes the summary score su_y_alcsre__hvy_nm Alcohol Subject Response and Effects [Youth] (Heaviest drinking period): Number missing

  • Summarized variables:

    • su_y_alcsre__hvy_001

    • su_y_alcsre__hvy_002

    • su_y_alcsre__hvy_003

    • su_y_alcsre__hvy_004

  • Excluded values: none

Usage

compute_su_y_alcsre__hvy_nm(data, name = "su_y_alcsre__hvy_nm", 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.


Compute all summary scores for su_y_alcsre.

Description

This function computes all summary scores for the su_y_alcsre form. Make sure to have all necessary columns in the data frame.

Usage

compute_su_y_alcsre_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_alcsre_all(data)

## End(Not run)

Compute "Cigarette Expectancies (ASCQ) [Youth] (Strength of negative expectancies): Number missing"

Description

Computes the summary score su_y_cigexp__neg_nm Cigarette Expectancies (ASCQ) [Youth] (Strength of negative expectancies): Number missing

  • Summarized variables:

    • su_y_cigexp__neg_001

    • su_y_cigexp__neg_002

  • Excluded values: none

Usage

compute_su_y_cigexp__neg_nm(data, name = "su_y_cigexp__neg_nm", combine = TRUE)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_cigexp__neg_prsum()


Compute "Cigarette Expectancies (ASCQ) [Youth] (Strength of negative expectancies): Prorated sum (v01)"

Description

Computes the summary score su_y_cigexp__neg_prsum__v01 Cigarette Expectancies (ASCQ) [Youth] (Strength of negative expectancies): Prorated sum (v01)

Note: all 0s are changed to 1s prior to calculating pro-rated sum

  • Summarized variables:

    • su_y_cigexp__neg_001

    • su_y_cigexp__neg_002

  • Excluded values: none

  • Validation criterion: maximally 0 of 2 items missing

Usage

compute_su_y_cigexp__neg_prsum__v01(
  data,
  name = "su_y_cigexp__neg_prsum__v01",
  combine = TRUE,
  max_na = 0
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Value

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

See Also

compute_su_y_cigexp__neg_prsum()


Compute "Cigarette Expectancies (ASCQ) [Youth] (Strength of positive expectancies): Number missing"

Description

Computes the summary score su_y_cigexp__pos_nm Cigarette Expectancies (ASCQ) [Youth] (Strength of positive expectancies): Number missing

  • Summarized variables:

    • su_y_cigexp__pos_001

    • su_y_cigexp__pos_002

    • su_y_cigexp__pos_003

    • su_y_cigexp__pos_004

  • Excluded values: none

Usage

compute_su_y_cigexp__pos_nm(data, name = "su_y_cigexp__pos_nm", combine = TRUE)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_cigexp__pos_prsum()


Compute "Cigarette Expectancies (ASCQ) [Youth] (Strength of positive expectancies): Prorated sum (v01)"

Description

Computes the summary score su_y_cigexp__pos_prsum__v01 Cigarette Expectancies (ASCQ) [Youth] (Strength of positive expectancies): Prorated sum (v01) [Validation: No more than 2 missing or declined]

Note: all 0s are changed to 1s prior to calculating pro-rated sum

  • Summarized variables:

    • su_y_cigexp__pos_001

    • su_y_cigexp__pos_002

    • su_y_cigexp__pos_003

    • su_y_cigexp__pos_004

  • Excluded values: none

  • Validation criterion: maximally 2 of 4 items missing

  • Notes:

    • Values in all input variables were recoded:

      • "0" –> "1"

Usage

compute_su_y_cigexp__pos_prsum__v01(
  data,
  name = "su_y_cigexp__pos_prsum__v01",
  combine = TRUE,
  max_na = 2
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Value

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

See Also

compute_su_y_cigexp__pos_prsum()


Compute all the su_y_cigexp scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_su_y_cigexp_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_cigexp_all(data)

## End(Not run)

Compute all the su_y_drgprob scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_su_y_drgprob_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_drgprob_all(data)

## End(Not run)

Compute "Drug Problem Index (DAPI) [Youth]: Number missing"

Description

Computes the summary score su_y_drgprob_nm Drug Problem Index (DAPI) [Youth]: Number missing

  • Summarized variables:

    • su_y_drgprob_001

    • su_y_drgprob_002

    • su_y_drgprob_003

    • su_y_drgprob_004

    • su_y_drgprob_005

    • su_y_drgprob_006

    • su_y_drgprob_007

    • su_y_drgprob_008

    • su_y_drgprob_009

    • su_y_drgprob_010

    • su_y_drgprob_012

    • su_y_drgprob_013

    • su_y_drgprob_014

    • su_y_drgprob_015

    • su_y_drgprob_016

    • su_y_drgprob_017

    • su_y_drgprob_018

  • Excluded values: none

Usage

compute_su_y_drgprob_nm(data, name = "su_y_drgprob_nm", combine = TRUE)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_drgprob_prsum()


Compute all summary scores for su_y_ksads__aud

Description

This function computes all summary scores for the su_y_ksads__aud table. Make sure to have all necessary columns in the data frame.

Usage

compute_su_y_ksads__aud_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute all summary scores for su_y_ksads__dud

Description

This function computes all summary scores for the su_y_ksads__dud table. Make sure to have all necessary columns in the data frame.

Usage

compute_su_y_ksads__dud_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.


Compute "Marijuana Expectancies (MEEQ-B) [Youth] (Strength of negative expectancies): Number missing"

Description

Computes the summary score su_y_mjexp__neg_nm Marijuana Expectancies (MEEQ-B) [Youth] (Strength of negative expectancies): Number missing

  • Summarized variables:

    • su_y_mjexp__neg_001

    • su_y_mjexp__neg_002

    • su_y_mjexp__neg_003

  • Excluded values: none

Usage

compute_su_y_mjexp__neg_nm(data, name = "su_y_mjexp__neg_nm", combine = TRUE)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_mjexp__neg_prsum()


Compute "Marijuana Expectancies (MEEQ-B) [Youth] (Strength of positive expectancies): Number missing"

Description

Computes the summary score su_y_mjexp__pos_nm Marijuana Expectancies (MEEQ-B) [Youth] (Strength of positive expectancies): Number missing

  • Summarized variables:

    • su_y_mjexp__pos_001

    • su_y_mjexp__pos_002

    • su_y_mjexp__pos_003

  • Excluded values: none

Usage

compute_su_y_mjexp__pos_nm(data, name = "su_y_mjexp__pos_nm", combine = TRUE)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_mjexp__pos_prsum()


Compute all the su_y_mjexp scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_su_y_mjexp_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_mjexp_all(data)

## End(Not run)

Compute all the su_y_mjprob scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_su_y_mjprob_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_mjprob_all(data)

## End(Not run)

Compute "Marijuana Problem Index (MAPI) [Youth]: Number missing"

Description

Computes the summary score su_y_mjprob_nm Marijuana Problem Index (MAPI) [Youth]: Number missing

  • Summarized variables:

    • su_y_mjprob_001

    • su_y_mjprob_002

    • su_y_mjprob_003

    • su_y_mjprob_004

    • su_y_mjprob_005

    • su_y_mjprob_006

    • su_y_mjprob_007

    • su_y_mjprob_008

    • su_y_mjprob_009

    • su_y_mjprob_010

    • su_y_mjprob_011

    • su_y_mjprob_012

    • su_y_mjprob_016

    • su_y_mjprob_017

    • su_y_mjprob_018

  • Excluded values: none

Usage

compute_su_y_mjprob_nm(data, name = "su_y_mjprob_nm", combine = TRUE)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_mjprob_prsum()


Compute "Marijuana Subjective Response and Effects [Youth] (Negative): Number missing"

Description

Computes the summary score su_y_mjsre__neg_nm Marijuana Subjective Response and Effects [Youth] (Negative): Number missing

  • Summarized variables:

    • su_y_mjsre__neg_001

    • su_y_mjsre__neg_002

    • su_y_mjsre__neg_003

    • su_y_mjsre__neg_004

    • su_y_mjsre__neg_005

    • su_y_mjsre__neg_006

    • su_y_mjsre__neg_007

    • su_y_mjsre__neg_008

  • Excluded values: none

Usage

compute_su_y_mjsre__neg_nm(data, name = "su_y_mjsre__neg_nm", 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.


Compute "Marijuana Subjective Response and Effects [Youth] (Positive): Number missing"

Description

Computes the summary score su_y_mjsre__pos_nm Marijuana Subjective Response and Effects [Youth] (Positive): Number missing

  • Summarized variables:

    • su_y_mjsre__pos_001

    • su_y_mjsre__pos_002

    • su_y_mjsre__pos_003

  • Excluded values: none

Usage

compute_su_y_mjsre__pos_nm(data, name = "su_y_mjsre__pos_nm", 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.


Compute all summary scores for su_y_mjsre.

Description

This function computes all summary scores for the su_y_mjsre form. Make sure to have all necessary columns in the data frame.

Usage

compute_su_y_mjsre_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_mjsre_all(data)

## End(Not run)

Compute "Marijuana Subjective Response and Effects [Youth] (NA): Number missing"

Description

Computes the summary score su_y_mjsre_nm Marijuana Subjective Response and Effects [Youth] (NA): Number missing

  • Summarized variables:

    • su_y_mjsre__pos_001

    • su_y_mjsre__pos_002

    • su_y_mjsre__pos_003

    • su_y_mjsre__neg_001

    • su_y_mjsre__neg_002

    • su_y_mjsre__neg_003

    • su_y_mjsre__neg_004

    • su_y_mjsre__neg_005

    • su_y_mjsre__neg_006

    • su_y_mjsre__neg_007

    • su_y_mjsre__neg_008

  • Excluded values: none

Usage

compute_su_y_mjsre_nm(data, name = "su_y_mjsre_nm", 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.


Compute "Nicotine Subjective Response and Effects [Youth] (Positive and negative effects of first smokeless tobacco or chew use): Number missing"

Description

Computes the summary score su_y_nicsre__chew_nm Nicotine Subjective Response and Effects [Youth] (Positive and negative effects of first smokeless tobacco or chew use): Number missing

  • Summarized variables:

    • su_y_nicsre__chew__pos_001

    • su_y_nicsre__chew__neg_001

  • Excluded values: none

Usage

compute_su_y_nicsre__chew_nm(
  data,
  name = "su_y_nicsre__chew_nm",
  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.


Compute "Nicotine Subjective Response and Effects [Youth] (Positive and negative effects of first cigarette use): Number missing"

Description

Computes the summary score su_y_nicsre__cig_nm Nicotine Subjective Response and Effects [Youth] (Positive and negative effects of first cigarette use): Number missing

  • Summarized variables:

    • su_y_nicsre__cig__pos_001

    • su_y_nicsre__cig__neg_001

  • Excluded values: none

Usage

compute_su_y_nicsre__cig_nm(data, name = "su_y_nicsre__cig_nm", 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.


Compute "Nicotine Subjective Response and Effects [Youth] (Positive and negative effects of first vape use): Number missing"

Description

Computes the summary score su_y_nicsre__vape_nm Nicotine Subjective Response and Effects [Youth] (Positive and negative effects of first vape use): Number missing

  • Summarized variables:

    • su_y_nicsre__vape__pos_001

    • su_y_nicsre__vape__pos_001__v01

    • su_y_nicsre__vape__neg_001

    • su_y_nicsre__vape__neg_001__v01

  • Excluded values: none

Usage

compute_su_y_nicsre__vape_nm(
  data,
  name = "su_y_nicsre__vape_nm",
  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.


Compute all summary scores for su_y_nicsre.

Description

This function computes all summary scores for the su_y_nicsre form. Make sure to have all necessary columns in the data frame.

Usage

compute_su_y_nicsre_all(data)

Arguments

data

tbl. Data frame containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_nicsre_all(data)

## End(Not run)

Compute "ENDS Expectancies [Youth] (Strength of negative expectancies): Number missing"

Description

Computes the summary score su_y_nicvapeexp__neg_nm ENDS Expectancies [Youth] (Strength of negative expectancies): Number missing

  • Summarized variables:

    • su_y_nicvapeexp__neg_001

    • su_y_nicvapeexp__neg_002

    • su_y_nicvapeexp__neg_003

    • su_y_nicvapeexp__neg_004

  • Excluded values: none

Usage

compute_su_y_nicvapeexp__neg_nm(
  data,
  name = "su_y_nicvapeexp__neg_nm",
  combine = TRUE
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_nicvapeexp__neg_prsum()


Compute "ENDS Expectancies [Youth] (Strength of positive expectancies): Number missing"

Description

Computes the summary score su_y_nicvapeexp__pos_nm ENDS Expectancies [Youth] (Strength of positive expectancies): Number missing

  • Summarized variables:

    • su_y_nicvapeexp__pos_001

    • su_y_nicvapeexp__pos_002

    • su_y_nicvapeexp__pos_003

    • su_y_nicvapeexp__pos_004

  • Excluded values: none

Usage

compute_su_y_nicvapeexp__pos_nm(
  data,
  name = "su_y_nicvapeexp__pos_nm",
  combine = TRUE
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

Value

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

See Also

compute_su_y_nicvapeexp__pos_prsum()


Compute all the su_y_nicvapeexp scores

Description

A single function to compute all scores in the above domain using default arguments.

Usage

compute_su_y_nicvapeexp_all(data)

Arguments

data

tbl, Dataframe containing the columns to be summarized.

Value

tbl. The input data frame with the summary scores appended as new columns.

Examples

## Not run: 
compute_su_y_nicvapeexp_all(data)

## End(Not run)

Count days since last use of a given substance

Description

Computes the number of days since the last use of a given substance as of the day of the substance use interview. Returns NA for the participants with no reported use of the provided substance.

Usage

compute_su_y_sui__last__day_count(data, name, substance, combine = TRUE)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance to compute the score for. Must be one of the following values:

  • "alc"

  • "alc__sip"

  • "rxstim"

  • "cath"

  • "cbd"

  • "coc"

  • "dxm"

  • "ghb"

  • "hall"

  • "inh"

  • "ket"

  • "meth"

  • "mdma"

  • "mj__blunt"

  • "mj__conc"

  • "mj__conc__smoke"

  • "mj__conc__vape"

  • "mj__drink"

  • "mj__edbl"

  • "mj__smoke"

  • "mj__vape"

  • "mj__synth"

  • "mj__tinc"

  • "nic__chew"

  • "nic__cigar"

  • "nic__cig"

  • "nic__hookah"

  • "nic__pipe"

  • "nic__rplc"

  • "nic__vape"

  • "opi"

  • "othdrg"

  • "qc"

  • "roid"

  • "rxopi"

  • "salv"

  • "shroom"

  • "rxsed"

  • "vape"

  • "vape__flav"

combine

logical. Whether to combine the summary score column with the input data frame (Default: 'TRUE“).

Value

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

Examples

## Not run: 
compute_su_y_sui__last__day_count(
  data = data_sui,
  name = "su_y_sui__alc__last__day_count",
  substance = "alc"
)

## End(Not run)

Compute age of regular use for a given substance

Description

Computes the age (in years) of regular use of a given substance. Returns NA for the participants with no regular use of the provided substance reported.

Usage

compute_su_y_sui__reg_useage(data, name, substance, combine = TRUE)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance to compute the score for. Must be one of the following values:

  • "alc"

  • "alc__sip"

  • "rxstim"

  • "cath"

  • "cbd"

  • "coc"

  • "dxm"

  • "ghb"

  • "hall"

  • "inh"

  • "ket"

  • "meth"

  • "mdma"

  • "mj__blunt"

  • "mj__conc"

  • "mj__conc__smoke"

  • "mj__conc__vape"

  • "mj__drink"

  • "mj__edbl"

  • "mj__smoke"

  • "mj__vape"

  • "mj__synth"

  • "mj__tinc"

  • "nic__chew"

  • "nic__cigar"

  • "nic__cig"

  • "nic__hookah"

  • "nic__pipe"

  • "nic__rplc"

  • "nic__vape"

  • "opi"

  • "othdrg"

  • "qc"

  • "roid"

  • "rxopi"

  • "salv"

  • "shroom"

  • "rxsed"

  • "vape"

  • "vape__flav"

combine

logical. Whether to combine the summary score column with the input data frame (Default: 'TRUE“).

Value

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

Examples

## Not run: 
compute_su_y_sui__reg_useage(
  data = data_sui,
  name = "su_y_sui__alc__reg_useage",
  substance = "alc"
)

## End(Not run)

Compute TLFB first or last date of substance use

Description

Computes either the first or last date of use for a given (set of) substance(s). Optionally, allows to filter by period (detailed and/or estimated); only considering a specified number of days before the TLFB interview; only considering days with co-use of (a)other substance(s); and/or only binge use.

Usage

compute_tlfb_dt(
  data,
  name,
  substance = NULL,
  period = NULL,
  days = NULL,
  co_use = NULL,
  binge = NULL,
  position
)

Arguments

data

tibble. A data frame containing the TLFB raw data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "'Fake' Marijuana or Synthetics"

  • "Alcohol"

  • "Anabolic Steroids"

  • "Any Other Drug They Used to Get High"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "CBD (Non-Medical Use)"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Cocaine or Crack Cocaine"

  • "Concentrated Marijuana Tinctures"

  • "Ecstasy, Molly, or MDMA"

  • "Electronic Nicotine or Vaping Products"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Hookah with Tobacco"

  • "Inhalants"

  • "Ketamine or Special K"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Nicotine Replacements"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "Prescription Pain Relievers or Opioids"

  • "Prescription Stimulants"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Salvia"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Smoking Marijuana Flower"

  • "Smoking Marijuana Oils or Concentrates"

  • "Tobacco Cigarette"

  • "Tobacco in a Pipe"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "Marijuana (all forms)"

  • "Nicotine (all forms)"

(Default: NULL, i.e., all substances are considered.)

period

character (vector). The period for which the score is computed for. Must be one of "detailed" (last year before date of TLFB interview) or "estimated" (more than one year before date of TLFB). (Default: NULL, i.e., all periods are considered). Cannot be used in combination with days.

days

integer. Number of days before the TLFB interview to consider. (Default: NULL, i.e., all days are considered). Cannot be used in combination with period.

co_use

character (vector). Co-use substance(s). Must be one or several of the possible values for substance listed above. Only days where the specified substance(s) was/were used together with (one of) the co-use substance(s) are considered. (Default: NULL, i.e., co-use is not considered). co_use cannot be specified without substance and can only contain substance(s) that are not specified in substance.

binge

(named list of) numeric. Binge threshold(s) for the substance(s). If only one value is provided, it is used, independent of the sex of the participant. If a list is provided, it must contain two named elements: "F" (female) and "M" (male) with the respective sex-specific binge thresholds. Only days where the the quantity of the substance(s) exceeds the specified threshold(s) are considered. (Default: NULL, i.e., binge behavior is not considered).

position

character. The position of the substance use event. Must be one of "first" or "last".

Value

A tibble with the computed score for each participant/event.

See Also

compute_tlfb_abst()

Examples

## Not run: 
compute_tlfb_dt(
  data = data_tlfb,
  name = "su_y_tlfb__alc__first__cum_dt",
  substance = "Alcohol",
  position = "first"
)

## End(Not run)

Compute TLFB maximum dose

Description

Computes the maximum dose over all use days for a given (set of) substance(s). Optionally, allows to filter by period (detailed and/or estimated); only considering a specified number of days before the TLFB interview; only considering specific day types (weekends or week days); only considering days with co-use of (a)other substance(s); and/or only binge use.

Usage

compute_tlfb_maxdose(
  data,
  name,
  substance = NULL,
  period = NULL,
  days = NULL,
  wknd = NULL,
  co_use = NULL,
  binge = NULL
)

Arguments

data

tibble. A data frame containing the TLFB raw data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "'Fake' Marijuana or Synthetics"

  • "Alcohol"

  • "Anabolic Steroids"

  • "Any Other Drug They Used to Get High"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "CBD (Non-Medical Use)"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Cocaine or Crack Cocaine"

  • "Concentrated Marijuana Tinctures"

  • "Ecstasy, Molly, or MDMA"

  • "Electronic Nicotine or Vaping Products"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Hookah with Tobacco"

  • "Inhalants"

  • "Ketamine or Special K"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Nicotine Replacements"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "Prescription Pain Relievers or Opioids"

  • "Prescription Stimulants"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Salvia"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Smoking Marijuana Flower"

  • "Smoking Marijuana Oils or Concentrates"

  • "Tobacco Cigarette"

  • "Tobacco in a Pipe"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "Marijuana (all forms)"

  • "Nicotine (all forms)"

(Default: NULL, i.e., all substances are considered.)

period

character (vector). The period for which the score is computed for. Must be one of "detailed" (last year before date of TLFB interview) or "estimated" (more than one year before date of TLFB). (Default: NULL, i.e., all periods are considered). Cannot be used in combination with days.

days

integer. Number of days before the TLFB interview to consider. (Default: NULL, i.e., all days are considered). Cannot be used in combination with period.

wknd

logical. Whether the score should be computed for weekends only (TRUE) or for week days only (FALSE). (Default: NULL, i.e., all days are considered).

co_use

character (vector). Co-use substance(s). Must be one or several of the possible values for substance listed above. Only days where the specified substance(s) was/were used together with (one of) the co-use substance(s) are considered. (Default: NULL, i.e., co-use is not considered). co_use cannot be specified without substance and can only contain substance(s) that are not specified in substance.

binge

(named list of) numeric. Binge threshold(s) for the substance(s). If only one value is provided, it is used, independent of the sex of the participant. If a list is provided, it must contain two named elements: "F" (female) and "M" (male) with the respective sex-specific binge thresholds. Only days where the the quantity of the substance(s) exceeds the specified threshold(s) are considered. (Default: NULL, i.e., binge behavior is not considered).

Value

A tibble with the computed score for each participant/event.

Examples

## Not run: 
compute_tlfb_maxdose(
  data = data_tlfb,
  name = "su_y_tlfb__alc__3mo_maxdose",
  substance = "Alcohol",
  days = 90
)

## End(Not run)

Compute TLFB mean quantity

Description

Computes the mean quantity per use day for a given (set of) substance(s). Optionally, allows to filter by period (detailed and/or estimated); only considering a specified number of days before the TLFB interview; only considering specific day types (weekends or week days); only considering days with co-use of (a)other substance(s); and/or only binge use.

Usage

compute_tlfb_mean(
  data,
  name,
  substance = NULL,
  period = NULL,
  days = NULL,
  wknd = NULL,
  co_use = NULL,
  binge = NULL
)

Arguments

data

tibble. A data frame containing the TLFB raw data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "'Fake' Marijuana or Synthetics"

  • "Alcohol"

  • "Anabolic Steroids"

  • "Any Other Drug They Used to Get High"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "CBD (Non-Medical Use)"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Cocaine or Crack Cocaine"

  • "Concentrated Marijuana Tinctures"

  • "Ecstasy, Molly, or MDMA"

  • "Electronic Nicotine or Vaping Products"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Hookah with Tobacco"

  • "Inhalants"

  • "Ketamine or Special K"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Nicotine Replacements"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "Prescription Pain Relievers or Opioids"

  • "Prescription Stimulants"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Salvia"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Smoking Marijuana Flower"

  • "Smoking Marijuana Oils or Concentrates"

  • "Tobacco Cigarette"

  • "Tobacco in a Pipe"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "Marijuana (all forms)"

  • "Nicotine (all forms)"

(Default: NULL, i.e., all substances are considered.)

period

character (vector). The period for which the score is computed for. Must be one of "detailed" (last year before date of TLFB interview) or "estimated" (more than one year before date of TLFB). (Default: NULL, i.e., all periods are considered). Cannot be used in combination with days.

days

integer. Number of days before the TLFB interview to consider. (Default: NULL, i.e., all days are considered). Cannot be used in combination with period.

wknd

logical. Whether the score should be computed for weekends only (TRUE) or for week days only (FALSE). (Default: NULL, i.e., all days are considered).

co_use

character (vector). Co-use substance(s). Must be one or several of the possible values for substance listed above. Only days where the specified substance(s) was/were used together with (one of) the co-use substance(s) are considered. (Default: NULL, i.e., co-use is not considered). co_use cannot be specified without substance and can only contain substance(s) that are not specified in substance.

binge

(named list of) numeric. Binge threshold(s) for the substance(s). If only one value is provided, it is used, independent of the sex of the participant. If a list is provided, it must contain two named elements: "F" (female) and "M" (male) with the respective sex-specific binge thresholds. Only days where the the quantity of the substance(s) exceeds the specified threshold(s) are considered. (Default: NULL, i.e., binge behavior is not considered).

Value

A tibble with the computed score for each participant/event.

Examples

## Not run: 
compute_tlfb_mean(
  data = data_tlfb,
  name = "su_y_tlfb__alc__1mo_mean",
  substance = "Alcohol",
  days = 30
)

## End(Not run)

Compute TLFB total dose

Description

Computes the total dose over all use day for a given (set of) substance(s). Optionally, allows to filter by period (detailed and/or estimated); only considering a specified number of days before the TLFB interview; only considering specific day types (weekends or week days); only considering days with co-use of (a)other substance(s); and/or only binge use.

Usage

compute_tlfb_totdose(
  data,
  name,
  substance = NULL,
  period = NULL,
  days = NULL,
  wknd = NULL,
  co_use = NULL,
  binge = NULL
)

Arguments

data

tibble. A data frame containing the TLFB raw data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "'Fake' Marijuana or Synthetics"

  • "Alcohol"

  • "Anabolic Steroids"

  • "Any Other Drug They Used to Get High"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "CBD (Non-Medical Use)"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Cocaine or Crack Cocaine"

  • "Concentrated Marijuana Tinctures"

  • "Ecstasy, Molly, or MDMA"

  • "Electronic Nicotine or Vaping Products"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Hookah with Tobacco"

  • "Inhalants"

  • "Ketamine or Special K"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Nicotine Replacements"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "Prescription Pain Relievers or Opioids"

  • "Prescription Stimulants"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Salvia"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Smoking Marijuana Flower"

  • "Smoking Marijuana Oils or Concentrates"

  • "Tobacco Cigarette"

  • "Tobacco in a Pipe"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "Marijuana (all forms)"

  • "Nicotine (all forms)"

(Default: NULL, i.e., all substances are considered.)

period

character (vector). The period for which the score is computed for. Must be one of "detailed" (last year before date of TLFB interview) or "estimated" (more than one year before date of TLFB). (Default: NULL, i.e., all periods are considered). Cannot be used in combination with days.

days

integer. Number of days before the TLFB interview to consider. (Default: NULL, i.e., all days are considered). Cannot be used in combination with period.

wknd

logical. Whether the score should be computed for weekends only (TRUE) or for week days only (FALSE). (Default: NULL, i.e., all days are considered).

co_use

character (vector). Co-use substance(s). Must be one or several of the possible values for substance listed above. Only days where the specified substance(s) was/were used together with (one of) the co-use substance(s) are considered. (Default: NULL, i.e., co-use is not considered). co_use cannot be specified without substance and can only contain substance(s) that are not specified in substance.

binge

(named list of) numeric. Binge threshold(s) for the substance(s). If only one value is provided, it is used, independent of the sex of the participant. If a list is provided, it must contain two named elements: "F" (female) and "M" (male) with the respective sex-specific binge thresholds. Only days where the the quantity of the substance(s) exceeds the specified threshold(s) are considered. (Default: NULL, i.e., binge behavior is not considered).

Value

A tibble with the computed score for each participant/event.

Examples

## Not run: 
compute_tlfb_totdose(
  data = data_tlfb,
  name = "su_y_tlfb__alc__binge_totdose",
  substance = "Alcohol",
  binge = list("F" = 4, "M" = 5)
)

## End(Not run)

Compute TLFB lifetime total dose

Description

Computes the lifetime total dose over all use day for a given (set of) substance(s). Optionally, allows to filter by period (detailed and/or estimated); only considering a specified number of days before the TLFB interview; only considering specific day types (weekends or week days); only considering days with co-use of (a)other substance(s); and/or only binge use.

Usage

compute_tlfb_totdose_sum(
  data,
  name,
  substance = NULL,
  period = NULL,
  days = NULL,
  wknd = NULL,
  co_use = NULL,
  binge = NULL
)

Arguments

data

tibble. A data frame containing the TLFB raw data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "'Fake' Marijuana or Synthetics"

  • "Alcohol"

  • "Anabolic Steroids"

  • "Any Other Drug They Used to Get High"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "CBD (Non-Medical Use)"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Cocaine or Crack Cocaine"

  • "Concentrated Marijuana Tinctures"

  • "Ecstasy, Molly, or MDMA"

  • "Electronic Nicotine or Vaping Products"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Hookah with Tobacco"

  • "Inhalants"

  • "Ketamine or Special K"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Nicotine Replacements"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "Prescription Pain Relievers or Opioids"

  • "Prescription Stimulants"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Salvia"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Smoking Marijuana Flower"

  • "Smoking Marijuana Oils or Concentrates"

  • "Tobacco Cigarette"

  • "Tobacco in a Pipe"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "Marijuana (all forms)"

  • "Nicotine (all forms)"

(Default: NULL, i.e., all substances are considered.)

period

character (vector). The period for which the score is computed for. Must be one of "detailed" (last year before date of TLFB interview) or "estimated" (more than one year before date of TLFB). (Default: NULL, i.e., all periods are considered). Cannot be used in combination with days.

days

integer. Number of days before the TLFB interview to consider. (Default: NULL, i.e., all days are considered). Cannot be used in combination with period.

wknd

logical. Whether the score should be computed for weekends only (TRUE) or for week days only (FALSE). (Default: NULL, i.e., all days are considered).

co_use

character (vector). Co-use substance(s). Must be one or several of the possible values for substance listed above. Only days where the specified substance(s) was/were used together with (one of) the co-use substance(s) are considered. (Default: NULL, i.e., co-use is not considered). co_use cannot be specified without substance and can only contain substance(s) that are not specified in substance.

binge

(named list of) numeric. Binge threshold(s) for the substance(s). If only one value is provided, it is used, independent of the sex of the participant. If a list is provided, it must contain two named elements: "F" (female) and "M" (male) with the respective sex-specific binge thresholds. Only days where the the quantity of the substance(s) exceeds the specified threshold(s) are considered. (Default: NULL, i.e., binge behavior is not considered).

Value

A tibble with the computed score for each participant/event.

Examples

## Not run: 
compute_tlfb_totdose_sum(
  data = data_tlfb,
  name = "su_y_tlfb__alc__totdose_sum",
  substance = "Alcohol"
)

## End(Not run)

Compute TLFB use days

Description

Computes the number of use days for a given (set of) substance(s). Optionally, allows to filter by period (detailed and/or estimated); only considering a specified number of days before the TLFB interview; only considering specific day types (weekends or week days); only considering days with co-use of (a)other substance(s); and/or only binge use.

Usage

compute_tlfb_ud(
  data,
  name,
  substance = NULL,
  period = NULL,
  days = NULL,
  wknd = NULL,
  co_use = NULL,
  binge = NULL
)

Arguments

data

tibble. A data frame containing the TLFB raw data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "'Fake' Marijuana or Synthetics"

  • "Alcohol"

  • "Anabolic Steroids"

  • "Any Other Drug They Used to Get High"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "CBD (Non-Medical Use)"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Cocaine or Crack Cocaine"

  • "Concentrated Marijuana Tinctures"

  • "Ecstasy, Molly, or MDMA"

  • "Electronic Nicotine or Vaping Products"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Hookah with Tobacco"

  • "Inhalants"

  • "Ketamine or Special K"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Nicotine Replacements"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "Prescription Pain Relievers or Opioids"

  • "Prescription Stimulants"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Salvia"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Smoking Marijuana Flower"

  • "Smoking Marijuana Oils or Concentrates"

  • "Tobacco Cigarette"

  • "Tobacco in a Pipe"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "Marijuana (all forms)"

  • "Nicotine (all forms)"

(Default: NULL, i.e., all substances are considered.)

period

character (vector). The period for which the score is computed for. Must be one of "detailed" (last year before date of TLFB interview) or "estimated" (more than one year before date of TLFB). (Default: NULL, i.e., all periods are considered). Cannot be used in combination with days.

days

integer. Number of days before the TLFB interview to consider. (Default: NULL, i.e., all days are considered). Cannot be used in combination with period.

wknd

logical. Whether the score should be computed for weekends only (TRUE) or for week days only (FALSE). (Default: NULL, i.e., all days are considered).

co_use

character (vector). Co-use substance(s). Must be one or several of the possible values for substance listed above. Only days where the specified substance(s) was/were used together with (one of) the co-use substance(s) are considered. (Default: NULL, i.e., co-use is not considered). co_use cannot be specified without substance and can only contain substance(s) that are not specified in substance.

binge

(named list of) numeric. Binge threshold(s) for the substance(s). If only one value is provided, it is used, independent of the sex of the participant. If a list is provided, it must contain two named elements: "F" (female) and "M" (male) with the respective sex-specific binge thresholds. Only days where the the quantity of the substance(s) exceeds the specified threshold(s) are considered. (Default: NULL, i.e., binge behavior is not considered).

Value

A tibble with the computed score for each participant/event.

Examples

## Not run: 
compute_tlfb_ud(
  data = data_tlfb,
  name = "su_y_tlfb__alc__1mo__wknd_ud",
  substance = "Alcohol",
  days = 30,
  wknd = TRUE
)

## End(Not run)

Convert MCTQ time data to 24h or 36 format

Description

Utility function to convert MCTQ survey responses to 24h or 36h format times.

Usage

convert_time_mctq(data, name, col_hrs_a, col_hrs_b, col_minute, scale = "24h")

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the new column with the summary score.

col_hrs_a

character. The name of the column with the first time.

1, 4 AM | 2, 5 AM | 3, 6 AM | 4, 7 AM | 5, 8 AM | 6, 9 AM | 7, 10 AM | 8, 11 AM | 9, 12 PM | 10, 1 PM | 11, 2 PM | 12, 3 PM | 13, 4 PM

col_hrs_b

character. The name of the column with the second time.

1, 5 PM | 2, 6 PM | 3, 7 PM | 4, 8 PM | 5, 9 PM | 6, 10 PM | 7, 11 PM | 8, 12 AM | 9, 1 AM | 10, 2 AM | 11, 3 AM

col_minute

character. The name of the column with the minutes. If the column value is NA, the minute is set to 0.

1, 0 minutes | 2, 5 minutes | 3, 10 minutes | 4, 15 minutes | 5, 20 minutes | 6, 25 minutes | 7, 30 minutes | 8, 35 minutes | 9, 40 minutes | 10, 45 minutes | 11, 50 minutes | 12, 55 minutes

scale

character. The scale of the time format. Default is "24h". The other option is "36h".

Details

Expect values 0 <= value < 24 for 24h format. Expect values 12 <= value < 36 for 36h format.

Value

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

Examples

col_hrs_a <- "ph_y_mctq__fd_001__01a"
col_hrs_b <- "ph_y_mctq__fd_001__01b"
col_minute <- "ph_y_mctq__fd_001__02"
name <- "ph_y_mctq__fd__bed__start__24h_t"
data <- dplyr::tibble(
  ph_y_mctq__fd_001__01a = c(NA, NA, NA, NA, NA, 1, 7, 3, NA),
  ph_y_mctq__fd_001__01b = c(6, 7, 8, 8, 10, NA, NA, NA, NA),
  ph_y_mctq__fd_001__02 = c(1, 1, 1, 7, 7, 1, 4, 1, NA)
)
convert_time_mctq(data, name, col_hrs_a, col_hrs_b, col_minute)
name <- "ph_y_mctq__fd__bed__start__36h_t"
convert_time_mctq(data, name, col_hrs_a, col_hrs_b, col_minute, "36h")

Creates a new column by converting session_id column into a numeric

Description

Creates a new column which contains the parsed numeric value for the visit. Annual visits are set to integers, where 0 = baseline, 1 = year 1, and so on. Mid-years are defined as 0.5 increments of the prior annual visits, e.g., 0.5 = between baseline and year 1, 1.5 = between year 1 and 2, and so on.

Usage

create_session_num(data, name = "session_num")

Arguments

data

tbl. Data frame containing the session_id column.

name

character of length 1. The name of the newly created and appended column. Default: session_num

Value

tbl. The input data frame with the name column added.

Examples

# Example data
dat <- tibble::tibble(
  participant_id = c("A123", "A123", "A123", "A123"),
  session_id = c("ses-00S", "ses-00A", "ses-00M", "ses-01A"),
  a = c(1, 2, 3, 4),
  b = c(10, 11, 12, NA)
)

# Create a new column (default: `session_num`) with numeric session
create_session_num(
  dat
)

# Create a new column called `num` that contains the session numbers
create_session_num(
  dat,
  name = "num"
)

Filter TLFB data

Description

This function filters the TLFB (Timeline Followback) data based on specified substance(s); period (estimated vs. detailed); number of days before the TLFB interview; weekend-only usage; co-use of other substances; and/or binge use.

Usage

filter_tlfb(
  data,
  substance = NULL,
  period = NULL,
  days = NULL,
  wknd = NULL,
  co_use = NULL,
  binge = NULL
)

Arguments

data

tibble. A data frame containing the TLFB raw data.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "'Fake' Marijuana or Synthetics"

  • "Alcohol"

  • "Anabolic Steroids"

  • "Any Other Drug They Used to Get High"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "CBD (Non-Medical Use)"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Cocaine or Crack Cocaine"

  • "Concentrated Marijuana Tinctures"

  • "Ecstasy, Molly, or MDMA"

  • "Electronic Nicotine or Vaping Products"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Hookah with Tobacco"

  • "Inhalants"

  • "Ketamine or Special K"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Nicotine Replacements"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "Prescription Pain Relievers or Opioids"

  • "Prescription Stimulants"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Salvia"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Smoking Marijuana Flower"

  • "Smoking Marijuana Oils or Concentrates"

  • "Tobacco Cigarette"

  • "Tobacco in a Pipe"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "Marijuana (all forms)"

  • "Nicotine (all forms)"

(Default: NULL, i.e., all substances are considered.)

period

character (vector). The period for which the score is computed for. Must be one of "detailed" (last year before date of TLFB interview) or "estimated" (more than one year before date of TLFB). (Default: NULL, i.e., all periods are considered). Cannot be used in combination with days.

days

integer. Number of days before the TLFB interview to consider. (Default: NULL, i.e., all days are considered). Cannot be used in combination with period.

wknd

logical. Whether the score should be computed for weekends only (TRUE) or for week days only (FALSE). (Default: NULL, i.e., all days are considered).

co_use

character (vector). Co-use substance(s). Must be one or several of the possible values for substance listed above. Only days where the specified substance(s) was/were used together with (one of) the co-use substance(s) are considered. (Default: NULL, i.e., co-use is not considered). co_use cannot be specified without substance and can only contain substance(s) that are not specified in substance.

binge

(named list of) numeric. Binge threshold(s) for the substance(s). If only one value is provided, it is used, independent of the sex of the participant. If a list is provided, it must contain two named elements: "F" (female) and "M" (male) with the respective sex-specific binge thresholds. Only days where the the quantity of the substance(s) exceeds the specified threshold(s) are considered. (Default: NULL, i.e., binge behavior is not considered).

Value

A filtered data frame based on the specified criteria.

Examples

## Not run: 
filtered_data <- filter_tlfb(
  data,
  substance = "Alcohol",
  wknd_only = TRUE,
  period = "estimated",
  days = 30
)

## End(Not run)

Get T-score table from list of tscores (Internal)

Description

This function retrieves the tscore table from a list of tscores based on the function name. The function should be used internally.

Usage

get_tscore_tbl(list_tscore, func_name)

Arguments

list_tscore

list. List of tscores. see details.

func_name

character. The name of the function.

Details

The list_tscore should be a list of prepared tscore tables. The list has two layers of structure: the first layer is the name of form, and the second layer is the keyword of the tscore table.

list
|- form_1
|  |- keyword_1
|  |- keyword_2
|  |- ...
|- form_2
|  |- keyword_1
|  |- keyword_2
|  |- ...
|- ...

This object is prepared by the DSM team and for internal users, please ask the DSM team for the rds file.

Forms and keywords

Forms and keywords are based on the function names. A function should contain both the form and keyword in its name, with only one exception being the overall score of a form, which does not have a keyword. The function name should be in the format of compute_form_xx__keyword_tscore or compute_form_xx_tscore. The function name will be split by ⁠_⁠ and the unique keywords will be used to search for the tscore table.

Value

tbl. The tscore table. If there is no match or more than one match, an error will be thrown.

Examples

## Not run: 
list_tscore <- readRDS("aseba_tscore.rds")
get_tscore_tbl(list_tscore, "compute_mh_p_abcl__afs__frnd_tscore")

## End(Not run)

Create static variable, one per participant, using longitudinal responses

Description

Update an existing field to include longitudinal responses. Use data for each id from the first available event and set that value for all event rows.

Usage

make_static(
  data,
  id = "participant_id",
  event = "session_id",
  exclude = NULL,
  var_in,
  var_out
)

Arguments

data

Dataframe with fields specified in id, event, and var.

id

character of length 1. Name of field that contains the IDs for which we need to assess the longitudinal data.

event

character of length 1. Name of field that contains the (longitudinal) event IDs.

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

var_in

character of length 1. Name of the field that contains the longitudinal values or responses.

var_out

character of length 1. Name of the new field that contains one static value per id computed from the longitudinal values or responses in var_in.

Value

Dataframe with two columns: id and var_out

Examples

data <- tibble::tribble(
  ~"id", ~"event", ~"values",
  "A", 1, NA,
  "A", 2, 2,
  "A", 3, 3,
  "B", 1, NA,
  "B", 2, NA,
  "B", 3, 1
)

make_static(
  data,
  var_in = "values",
  var_out = "static_nothing_excluded",
  id = "id",
  event = "event"
)

make_static(
  data,
  var_in = "values",
  var_out = "static_excluding_1and2",
  exclude = c("1", "2"),
  id = "id",
  event = "event"
)

Markdown bullet point list

Description

Creates a bullet point list in markdown format. Copy of gluedown::md_bullet() but with the added ability to specify an indent to create nested lists and the option to use code font.

Usage

md_bullet(
  x,
  indent = 0,
  code = FALSE,
  italic = FALSE,
  marker = c("*", "-", "+")
)

Arguments

x

character (vector). Text to convert into a bullet point list.

indent

numeric, positive whole number. Number of spaces to indent the bullet point list by (Default: 0).

code

logical. If the text will be formatted as code (Default: TRUE).

italic

logical. If the text will be formatted as italic (Default: FALSE).

marker

character. The bullet list marker to use (Default: "*").

Value

glue vector. A bullet point list in markdown format.

Examples

md_bullet(c("First item", "Second item", "Third item"), code = TRUE)

md_bullet(c("First item", "Second item", "Third item"), indent = 2)

Recode levels

Description

Recodes specified levels of a character/factor variable, e.g., to apply reverse coding before summary score computation.

Usage

recode_levels(data, vars, recode, temp = FALSE)

Arguments

data

tbl. Data frame containing the columns to be recoded.

vars

character (vector). The name(s) of the column(s) to be recoded.

recode

named character vector. The levels to be recoded, with the name being the original value and the value being the value to recode to.

temp

logical. If TRUE creates a new column to save the recoded values. The new columns will be named as ⁠temp_{vars}⁠.

Value

tbl. The input data frame with the recoded variable(s).

Examples

data <- tibble::tibble(
  var_a = c("1", "2", "3", "4", "5", NA, "999", "777"),
  var_b = c("5", "4", "3", "2", "1", "777", NA, "999")
)

# recode individual variables
data |>
  recode_levels(
    vars = "var_a",
    recode = c("999" = "0", "777" = "0")
  ) |>
  recode_levels(
    vars = "var_b",
    recode = c("999" = "6", "777" = "7")
  )

# apply the same recoding to several variables
data |>
  recode_levels(
    vars = c(
      "var_a",
      "var_b"
    ),
    recode = c(
      "1" = "5",
      "2" = "4",
      "4" = "2",
      "5" = "1"
    )
  )

Compute the number or count of matching conditions

Description

Computes the number of conditions (provided as a character vectorcond), involving the input variables vars, that were found to be TRUE. Options available to exclude certain values from the input variables (provided as a character vector exclude).

Usage

ss_count(
  data,
  name,
  vars,
  vars_temp = NULL,
  exclude = NULL,
  combine = FALSE,
  allow_missingness = TRUE,
  cond
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the summary score.

vars

character vector. The name(s) of the column(s) to be summarized.

vars_temp

character vector. The name(s) of temporary column(s) used to compute the summary score. Note, these columns are not checked for missingness. See allow_missingness.

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

combine

logical. Whether to combine the summary score column with the input data frame (Default: FALSE).

allow_missingness

logical. Default set to TRUE. If TRUE, summary score is set to NA only when ALL the in-going fields have missingness. If FALSE, summary score is set to NA when ANY of the in-going fields have missingness. NOTE: exclude operation is performed prior to checking for missingness.

cond

character vector. Each specified condition, involving the values of specific input fields, gets tested for 1 (TRUE) or 0 (FALSE). If a condition is specified as "field_name", the numeric value in the field is counted and could be greater than 1. Whereas other conditions when met can get a value of 1 or 0. The summary score is a sum over all the values obtained from testing each condition specified in cond.

Value

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

Examples

dat <- tibble::tibble(
  id   = c("1", "2", "3", "4", "5", "6", "7", "8"),
  a_1  = c(1, 1, NA, 1, 1, 1, 1, 1),
  a_2  = c(1, NA, NA, 1, 1, NA, 1, 1),
  b_1  = c(1, 1, NA, NA, 1, 1, 1, 1),
  b_2  = c(1, 1, NA, 1, 1, NA, 1, 1),
  c    = c(NA, 1, NA, 1, 777, 0, 1, 0)
)

# define conditions to assess
conditions <- c(
  "a_1 == 1 & a_2 == 1",
  "b_1 == 1 & b_2 == 1",
  "c"
)

# count number of matched conditions
ss_count(
  data    = dat,
  name    = "ss",
  vars    = c("a_1", "a_2", "b_1", "b_2", "c"),
  cond    = conditions,
  combine = TRUE
)

ss_count(
  data    = dat,
  name    = "ss",
  vars    = c("a_1", "a_2", "b_1", "b_2", "c"),
  cond    = conditions,
  exclude = c("777"),
  combine = TRUE
)

conditions <- paste(
  c(
    "a_1 == 1 & a_2 == 1",
    "b_1 == 1 & b_2 == 1",
    "c >= 1"
  ),
  collapse = "&"
)

ss_count(
  data    = dat,
  name    = "ss",
  vars    = c("a_1", "a_2", "b_1", "b_2", "c"),
  cond    = conditions,
  exclude = c("777"),
  combine = TRUE
)

ss_count(
  data = dat,
  name = "ss",
  vars = c("a_1", "a_2", "b_1", "b_2", "c"),
  cond = conditions,
  exclude = c("777"),
  allow_missingness = FALSE,
  combine = TRUE
)

Compute the number or count of matching conditions

Description

Computes the number of conditions (provided as a character vectorcond), involving the input variables vars, that were found to be TRUE. Options available to exclude certain values from the input variables (provided as a character vector exclude).

Usage

ss_count_cond(data, name, vars, exclude = NULL, combine = FALSE, cond, max_na)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the summary score.

vars

character vector. The names of the columns to be summarized.

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

combine

logical. Whether to combine the summary score column with the input data frame (Default: FALSE).

cond

character vector. Each specified condition, involving the values of specific input fields, gets tested for 1 (TRUE) or 0 (FALSE). If a condition is specified as "field_name", the numeric value in the field is counted and could be greater than 1. Whereas other conditions when met can get a value of 1 or 0. The summary score is a sum over all the values obtained from testing each condition specified in cond.

max_na

numeric, positive whole number. Number of missing items allowed.

Value

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


Compute max across columns

Description

Computes the max of a set of variables, with the option to exclude certain values (for non-responses like "Don't know"/"Decline to answer") and to set a maximum number of missing values.

Usage

ss_max(
  data,
  name,
  vars,
  max_na = NULL,
  exclude = NULL,
  events = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the summary score.

vars

character vector. The names of the columns to be summarized.

max_na

numeric, positive whole number. Number of missing items allowed (Default: NULL; no restriction on missing values).

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

events

character (vector). Only compute the summary score for the specified events (Default: NULL; computed for all events).

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Value

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

Examples

data <- tibble::tribble(
  ~id,    ~session_id, ~A, ~B,  ~C, ~D,
  "id1",  "1",         1,  5,   2,  NA,
  "id1",  "2",         2,  4,   NA, NA,
  "id1",  "3",         3,  3,   3,  3,
  "id1",  "4",         4,  2,   4,  2,
  "id1",  "5",         5,  1,   5,  3
)

ss_max(
  data,
  name = "summary",
  vars = c("A", "B", "C", "D")
)

ss_max(
  data,
  name = "summary",
  vars = c("A", "B", "C", "D"),
  max_na = 1,
  exclude = c("1")
)

ss_max(
  data,
  name = "summary",
  vars = c("A", "B", "C", "D"),
  max_na = 1,
  exclude = c("1"),
  events = c("4")
)

Compute mean

Description

Computes the mean of a set of variables, with the option to exclude certain values (for non-responses like "Don't know"/"Decline to answer") and to set a maximum number of missing values.

Usage

ss_mean(
  data,
  name,
  vars,
  max_na = NULL,
  exclude = NULL,
  events = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the summary score.

vars

character vector. The names of the columns to be summarized.

max_na

numeric, positive whole number. Number of missing items allowed (Default: NULL; no restriction on missing values).

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

events

character (vector). Only compute the summary score for the specified events (Default: NULL; computed for all events).

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Value

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

Examples

data <- tibble::tribble(
  ~session_id, ~a, ~b,  ~c,  ~d,  ~e,
  "ses-00A",   1,  1,   1,   1,   NA,
  "ses-01A",   2,  777, 2,   2,   2,
  "ses-02A",   3,  3,   999, 3,   3,
  "ses-02A",   4,  4,   4,   777, NA,
  "ses-03A",   5,  NA,  777, 999, 5,
  "ses-03A",   NA, NA,  NA,  NA,  NA,
  "ses-04A",   1,  NA,  NA,  NA,  NA
)

data |>
  ss_mean(
    name = "mean",
    vars = c("a", "b", "c", "d", "e"),
    max_na = 1,
    exclude = c("777", "999")
  )

data |>
  ss_mean(
    name = "mean",
    vars = c("a", "b", "c", "d", "e"),
    max_na = 1,
    exclude = c("777", "999"),
    combine = FALSE
  )

data |>
  ss_mean(
    name = "mean",
    vars = c("a", "b", "c", "d", "e"),
    max_na = NULL,
    exclude = NULL,
    events = c("ses-00A", "ses-01A"),
  )

Compute mean of positive values

Description

Computes the mean of strictly positive values for a set of variables, with the option to exclude certain values (for non-responses like "Don't know"/"Decline to answer") and to set a maximum number of missing values.

Usage

ss_mean_pos(
  data,
  name,
  vars,
  max_na = NULL,
  exclude = NULL,
  events = NULL,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the summary score.

vars

character vector. The names of the columns to be summarized.

max_na

numeric, positive whole number. Number of missing items allowed (Default: NULL; no restriction on missing values).

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

events

character (vector). Only compute the summary score for the specified events (Default: NULL; computed for all events).

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Value

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

Examples

data <- tibble::tribble(
  ~session_id, ~a, ~b, ~c, ~d, ~e,
  "ses-00A", -1, 1, 1, 1, NA,
  "ses-01A", 2, 777, 2, 2, 2,
  "ses-02A", 3, 3, 999, 3, 3,
  "ses-02A", 4, 4, 4, 777, NA,
  "ses-03A", 5, NA, 777, 999, 5,
  "ses-03A", NA, NA, NA, NA, NA,
  "ses-04A", 1, NA, NA, NA, NA
)

data |>
  ss_mean_pos(
    name = "mean",
    vars = c("a", "b", "c", "d", "e"),
    max_na = 1,
    exclude = c("777", "999")
  )

data |>
  ss_mean_pos(
    name = "mean",
    vars = c("a", "b", "c", "d", "e"),
    max_na = 1,
    exclude = c("777", "999"),
    combine = FALSE
  )

data |>
  ss_mean_pos(
    name = "mean",
    vars = c("a", "b", "c", "d", "e"),
    max_na = NULL,
    exclude = NULL,
    events = c("ses-00A", "ses-01A"),
  )

Compute number missing

Description

Computes the number of missing items among a set of variables, with the option to exclude certain values (for non-responses like "Don't know" / "Decline to answer"). If all items are NA, the summary score will not be computed (assuming that the questionnaire was not filled out at all).

Usage

ss_nm(data, name, vars, exclude = NULL, events = NULL, combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the summary score.

vars

character vector. The names of the columns to be summarized.

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

events

character (vector). Only compute the summary score for the specified events (Default: NULL; computed for all events).

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Value

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

Examples

data <- tibble::tribble(
  ~session_id, ~a, ~b,  ~c,  ~d,  ~e,
  "ses-00A",   1,  1,   1,   1,   NA,
  "ses-01A",   2,  777, 2,   2,   2,
  "ses-02A",   3,  3,   999, 3,   3,
  "ses-02A",   4,  4,   4,   777, NA,
  "ses-03A",   5,  NA,  777, 999, 5,
  "ses-03A",   NA, NA,  NA,  NA,  NA,
  "ses-04A",   1,  NA,  NA,  NA,  NA
)

data |>
  ss_nm(
    name    = "nm",
    vars    = c("a", "b", "c", "d", "e"),
    exclude = c("777", "999")
  )

data |>
  ss_nm(
    name    = "nm",
    vars    = c("a", "b", "c", "d", "e"),
    exclude = c("777", "999"),
    event   = c("ses-00A", "ses-01A")
  )

Compute pro-rated sum

Description

Computes the pro-rated sum of a set of variables, with the option to exclude certain values (for non-responses like "Don't know"/"Decline to answer") and to set a maximum number of missing values. Also include a second field

Usage

ss_prsum(
  data,
  name,
  vars,
  max_na = NULL,
  exclude = NULL,
  events = NULL,
  as_integer = TRUE,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the summary score.

vars

character vector. The names of the columns to be summarized.

max_na

numeric, positive whole number. Number of missing items allowed (Default: NULL; no restriction on missing values).

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

events

character (vector). Only compute the summary score for the specified events (Default: NULL; computed for all events).

as_integer

logical. Whether to coerce the summary score to an integer, default is TRUE. If FALSE, the summary score will be a double.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Value

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

Examples

data <- tibble::tibble(
  participant_id = c("A", "A", "A", "B", "A", "B", "A"),
  session_id     = c("ses-00A", "ses-01A", "ses-02A", "ses-02A", "ses-03A", "0ses-3A", "ses-04A"),
  a              = c(1, 2, 3, 4, 5, NA, 1),
  b              = c(1, 777, 3, 4, NA, NA, NA),
  c              = c(1, 2, 999, 4, 777, NA, NA),
  d              = c(1, 2, 3, 777, 999, NA, NA),
  e              = c(NA, 2, 3, NA, 5, NA, NA)
)

data |>
  ss_prsum(
    name = "score_prorated_sum",
    vars = c("a", "b", "c", "d", "e"),
    max_na = 1,
    exclude = c("777", "999")
  )

data |>
  ss_prsum(
    name = "score_prorated_sum",
    vars = c("a", "b", "c", "d", "e"),
    max_na = 1,
    exclude = c("777", "999"),
    combine = FALSE
  )

data |>
  ss_prsum(
    name = "score_prorated_sum",
    vars = c("a", "b", "c", "d", "e"),
    max_na = NULL,
    exclude = NULL,
    events = c("ses-00A", "ses-01A"),
  )

Compute sum

Description

Computes the sum of a set of variables, with the option to exclude certain values (for non-responses like "Don't know"/"Decline to answer") and to set a maximum number of missing values.

Usage

ss_sum(
  data,
  name,
  vars,
  max_na = NULL,
  exclude = NULL,
  events = NULL,
  as_integer = TRUE,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. The name of the summary score.

vars

character vector. The names of the columns to be summarized.

max_na

numeric, positive whole number. Number of missing items allowed (Default: NULL; no restriction on missing values).

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

events

character (vector). Only compute the summary score for the specified events (Default: NULL; computed for all events).

as_integer

logical. Whether to coerce the summary score to an integer, default is TRUE. If FALSE, the summary score will be a double.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Value

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

Examples

data <- tibble::tribble(
  ~session_id, ~a, ~b,  ~c,  ~d,  ~e,
  "ses-00A",   1,  1,   1,   1,   NA,
  "ses-01A",   2,  777, 2,   2,   2,
  "ses-02A",   3,  3,   999, 3,   3,
  "ses-02A",   4,  4,   4,   777, NA,
  "ses-03A",   5,  NA,  777, 999, 5,
  "ses-03A",   NA, NA,  NA,  NA,  NA,
  "ses-04A",   1,  NA,  NA,  NA,  NA
)

data |>
  ss_sum(
    name = "mean",
    vars = c("a", "b", "c", "d", "e"),
    max_na = 1,
    exclude = c("777", "999")
  )

data |>
  ss_sum(
    name = "mean",
    vars = c("a", "b", "c", "d", "e"),
    max_na = 1,
    exclude = c("777", "999"),
    combine = FALSE
  )

data |>
  ss_sum(
    name = "mean",
    vars = c("a", "b", "c", "d", "e"),
    max_na = NULL,
    exclude = NULL,
    events = c("ses-00A", "ses-01A"),
  )

Compute T-score

Description

This function computes the T-score based on the given columns, and the provided T-score table.

Usage

ss_tscore(
  data,
  data_norm = NULL,
  vars,
  name = "tscore",
  max_na = NULL,
  exclude = NULL,
  col_age = "age",
  col_sex = "sex",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

data_norm

tbl. Data frame containing the T-score table. See details.

vars

character vector. The names of the columns to be summarized.

name

character. The column name of the T-score.

max_na

numeric, positive whole number. Number of missing items allowed (Default: NULL; no restriction on missing values).

exclude

character (vector). The value(s) to be excluded (Default: NULL; all values are used).

col_age

character. The name of the age column.

col_sex

character The name of sex column.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Details

T-score table

The data_norm should be a data frame containing the T-score table. The default value NULL is only used for internal usage (see below). For normal usage, the data_norm should be provided.

The table should have the following columns:

  • sex: character or factor both ok. The biological sex of the participant. The values should be either "1" (male) or "2" (female).

  • age_min: numeric. The minimum age of the participant.

  • age_max: numeric. The maximum age of the participant.

  • scale_r: numeric. The raw score of the scale.

  • scale_t: numeric. The T-score of the scale.

For example

A tibble: n x 5

sex age_min age_max scale_r scale_t
⁠<chr>⁠ ⁠<dbl>⁠ ⁠<dbl>⁠ ⁠<dbl>⁠ ⁠<dbl>⁠
1 18 35 50 1
1 18 35 50.5 2
1 18 35 51 3
1 18 35 51.5 4
...

out-range values

  • If the age of the participant is out of the range of the T-score table, the function will return NA.

  • If the raw score is out of the range of the T-score table, the function will return NA.

  • If any of the sex column is not "1" or "2", the function will return NA.

  • If any of the required columns has NA, that row will return NA.

Internal usage

When used in DSM internally, the data_norm can be omitted. Instead, the function will try to find the T-score table from the list_tscore option, and tries to find the tscore list based on object name provided in the list_tscore option. Once the object is found, the function will automatically extract the T-score table based on the function name.

  • The list_tscore object should present in the global environment.

  • See get_tscore_tbl() for more details on how to construct the list_tscore.

For example

my_tscore <<- readRDS("aseba_tscore.rds")
options(list_tscore = "my_tscore")
compute_mh_x_yyyy_zz_tscore(data)

Value

tbl. The input data frame with the T-score appended as a new column if combine is TRUE, otherwise only the T-score column.

Examples

data_norm <- tibble::tibble(
  sex = c("1", "1", "1", "1", "1"),
  age_min = 18,
  age_max = 35,
  scale_r = 0:4,
  scale_t = 20:24
)
data <- tibble::tibble(
  var1 = c(0, 1, NA, 1, 2),
  var2 = c(1, 2, 1, 2, 5),
  age = c(18, 20, 25, 99, 35),
  sex = c("1", "1", "1", "1", "1")
)
ss_tscore(
  data = data,
  data_norm = data_norm,
  max_na = 0,
  vars = c("var1", "var2")
)

Compute age of onset use for a given substance

Description

Computes the age (in years) of onset use of a given substance. Returns NA for the participants with no onset use of the provided substance reported.

Usage

sui_substances

compute_su_y_sui__onset_useage(data, name, substance, combine = TRUE)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance to compute the score for. Must be one of the following values:

  • "alc"

  • "alc__sip"

  • "rxstim"

  • "cath"

  • "cbd"

  • "coc"

  • "dxm"

  • "ghb"

  • "hall"

  • "inh"

  • "ket"

  • "meth"

  • "mdma"

  • "mj__blunt"

  • "mj__conc"

  • "mj__conc__smoke"

  • "mj__conc__vape"

  • "mj__drink"

  • "mj__edbl"

  • "mj__smoke"

  • "mj__vape"

  • "mj__synth"

  • "mj__tinc"

  • "nic__chew"

  • "nic__cigar"

  • "nic__cig"

  • "nic__hookah"

  • "nic__pipe"

  • "nic__rplc"

  • "nic__vape"

  • "opi"

  • "othdrg"

  • "qc"

  • "roid"

  • "rxopi"

  • "salv"

  • "shroom"

  • "rxsed"

  • "vape"

  • "vape__flav"

combine

logical. Whether to combine the summary score column with the input data frame (Default: 'TRUE“).

Format

sui_substances is a character vector of substances keywords.

Value

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

Examples

## Not run: 
compute_su_y_sui__onset_useage(
  data = data_sui,
  name = "su_y_sui__alc__onset_useage",
  substance = "alc"
)

## End(Not run)

Compute TLFB length of abstinence

Description

Computes the length of abstinence in days for a given (set of) substance(s). Optionally, allows to filter by period (detailed and/or estimated); only considering a specified number of days before the TLFB interview; and/or only binge use.

Usage

tlfb_substances

compute_tlfb_abst(
  data,
  name,
  substance = NULL,
  period = NULL,
  days = NULL,
  binge = NULL
)

Arguments

data

tibble. A data frame containing the TLFB raw data.

name

character. The name of the output column for the computed score.

substance

character (vector). The substance(s) to compute the score for. Must be one or several of the following values:

  • "'Fake' Marijuana or Synthetics"

  • "Alcohol"

  • "Anabolic Steroids"

  • "Any Other Drug They Used to Get High"

  • "Blunts or Combined Tobacco and Marijuana in Joints"

  • "CBD (Non-Medical Use)"

  • "Cathinones such as Bath Salts, Drone, or Meph"

  • "Cigars, Little Cigars, or Cigarillos"

  • "Cocaine or Crack Cocaine"

  • "Concentrated Marijuana Tinctures"

  • "Ecstasy, Molly, or MDMA"

  • "Electronic Nicotine or Vaping Products"

  • "GHB, Liquid G, or Georgia Homeboy"

  • "Hallucinogen Drugs including LSD, PCP, Peyote, Mescaline, DMT, AMT, or Foxy"

  • "Heroin, Opium, Junk, Smack, or Dope"

  • "Hookah with Tobacco"

  • "Inhalants"

  • "Ketamine or Special K"

  • "Marijuana Edibles"

  • "Marijuana Infused Alcohol Drinks"

  • "Methamphetamine, Meth, or Crystal Meth"

  • "Nicotine Replacements"

  • "OTC Cough or Cold Medicine, DXM, 'Lean', or 'Purple Drank'"

  • "Prescription Anxiolytics, Tranquilizers, or Sedatives"

  • "Prescription Pain Relievers or Opioids"

  • "Prescription Stimulants"

  • "Psilocybin, Magic Mushrooms, or Shrooms"

  • "Salvia"

  • "Smokeless Tobacco, Chew, or Snus"

  • "Smoking Marijuana Flower"

  • "Smoking Marijuana Oils or Concentrates"

  • "Tobacco Cigarette"

  • "Tobacco in a Pipe"

  • "Vaped Marijuana Flower"

  • "Vaped Marijuana Oils or Concentrates"

  • "Marijuana (all forms)"

  • "Nicotine (all forms)"

(Default: NULL, i.e., all substances are considered.)

period

character (vector). The period for which the score is computed for. Must be one of "detailed" (last year before date of TLFB interview) or "estimated" (more than one year before date of TLFB). (Default: NULL, i.e., all periods are considered). Cannot be used in combination with days.

days

integer. Number of days before the TLFB interview to consider. (Default: NULL, i.e., all days are considered). Cannot be used in combination with period.

binge

(named list of) numeric. Binge threshold(s) for the substance(s). If only one value is provided, it is used, independent of the sex of the participant. If a list is provided, it must contain two named elements: "F" (female) and "M" (male) with the respective sex-specific binge thresholds. Only days where the the quantity of the substance(s) exceeds the specified threshold(s) are considered. (Default: NULL, i.e., binge behavior is not considered).

Format

tlfb_substances is a character vector of all substances that can be reported in the TLFB.

Value

A tibble with the computed score for each participant/event.

Examples

## Not run: 
compute_tlfb_abst(
  data = data_tlfb,
  name = "su_y_tlfb__alc__cum_abst",
  substance = "Alcohol"
)

## End(Not run)

Compute "Cohort description: Highest education across caregivers"

Description

Computes the summary score ab_g_dyn__cohort_edu__cgs Cohort description: Highest education across caregivers

  • Summarized variables:

    • ab_p_demo__edu__slf_001

    • ab_p_demo__edu__slf_001__v01

    • ab_p_demo__edu__slf_001__v02

    • ab_p_demo__edu__prtnr_001

    • ab_p_demo__edu__prtnr_001__v01

  • Excluded values:

    • 777

    • 999

Usage

vars_ab_g_dyn__cohort_edu__cgs

compute_ab_g_dyn__cohort_edu__cgs(
  data,
  name = "ab_g_dyn__cohort_edu__cgs",
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame 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 vector. Values to be excluded from the summary score calculation.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Format

a character vector of all column names used to compute summary score of ab_g_dyn__cohort_edu__cgs.

Value

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


Compute "Cohort description: Household income - 6 levels"

Description

Computes the summary score ab_g_dyn__cohort_income__hhold__6lvl Cohort description: Household income - 6 levels

  • Summarized variables:

    • ab_p_demo__income__hhold_001

    • ab_p_demo__income__hhold_001__v01

Usage

vars_ab_g_dyn__cohort_income__hhold__6lvl

compute_ab_g_dyn__cohort_income__hhold__6lvl(
  data,
  name = "ab_g_dyn__cohort_income__hhold__6lvl",
  combine = TRUE
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Format

a character vector of all column names used to compute summary score of ab_g_dyn__cohort_income__hhold__6lvl.

Value

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


Compute "Cohort description: Caregivers' partnership and employment status"

Description

Computes the summary score ab_g_dyn__cohort_prtnrshp__employ Cohort description: Caregivers' partnership and employment status

  • Summarized variables:

    • ab_p_demo__marital__slf_001

    • ab_p_demo__prtnr_001

    • ab_p_demo__empl__slf_001

    • ab_p_demo__empl__prtnr_001

    • ab_p_demo__empl__prtnr_001__v01

  • Excluded values:

    • 777

    • 999

Usage

vars_ab_g_dyn__cohort_prtnrshp__employ

compute_ab_g_dyn__cohort_prtnrshp__employ(
  data,
  name = "ab_g_dyn__cohort_prtnrshp__employ",
  combine = TRUE
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Format

a character vector of all column names used to compute summary score of ab_g_dyn__cohort_prtnrshp__employ.

Value

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


Compute "Cohort description: Ethnicity (Hispanic or not Hispanic) [Based on baseline response; missingness filled in from longitudinal responses]"

Description

Computes the summary score ab_g_stc__cohort_ethn Cohort description: Ethnicity (Hispanic or not Hispanic) [Based on baseline response; missingness filled in from longitudinal responses]

  • Summarized variables:

    • ab_p_demo__ethn_001

    • ab_p_demo__ethn_001__v01

  • Excluded values:

    • 777

    • 999

  • Notes:

    • Values in ab_p_demo__ethn_001__v01 were recoded:

      • "0" –> "2",

      • "2" –> "1"

      • "3" –> "1"

      • "4" –> "1"

    • Values in ab_p_demo__ethn_001 were recoded:

      • "0" –> "2"

Usage

vars_ab_g_stc__cohort_ethn

compute_ab_g_stc__cohort_ethn(
  data,
  name = "ab_g_stc__cohort_ethn",
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame 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 vector. Values to be excluded from the summary score calculation.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Format

a character vector of all column names used to compute summary score of ab_g_stc__cohort_ethn.

Value

tbl. The input data frame with the summary score appended as a new column (default). If combine == FALSE, a data frame with two columns: participant ID and summary score.


Compute "Cohort description: Ethno-racial identity (Legacy ABCD variable reporting 6 levels; Hispanic ethnicity report outweighs any racial endorements) [Based on baseline response; missingness filled in from longitudinal responses]"

Description

Computes the summary score ab_g_stc__cohort_ethnrace__leg Cohort description: Ethno-racial identity (Legacy ABCD variable reporting 6 levels; Hispanic ethnicity report outweighs any racial endorements) [Based on baseline response; missingness filled in from longitudinal responses]

  • Summarized variables:

    • ab_p_demo__ethn_001

    • ab_p_demo__ethn_001__v01

    • ab_p_demo__race_001___0

    • ab_p_demo__race_001___10

    • ab_p_demo__race_001___11

    • ab_p_demo__race_001___12

    • ab_p_demo__race_001___13

    • ab_p_demo__race_001___14

    • ab_p_demo__race_001___15

    • ab_p_demo__race_001___16

    • ab_p_demo__race_001___17

    • ab_p_demo__race_001___18

    • ab_p_demo__race_001___19

    • ab_p_demo__race_001___20

    • ab_p_demo__race_001___21

    • ab_p_demo__race_001___22

    • ab_p_demo__race_001___23

    • ab_p_demo__race_001___24

    • ab_p_demo__race_001___25

    • ab_p_demo__race_001___777

    • ab_p_demo__race_001___999

    • ab_p_demo__race_001__v01___999

    • ab_p_demo__race_001__v01___10

    • ab_p_demo__race_001__v01___11

    • ab_p_demo__race_001__v01___12

    • ab_p_demo__race_001__v01___20

    • ab_p_demo__race_001__v01___21

    • ab_p_demo__race_001__v01___22

    • ab_p_demo__race_001__v01___23

    • ab_p_demo__race_001__v01___13

    • ab_p_demo__race_001__v01___14

    • ab_p_demo__race_001__v01___15

    • ab_p_demo__race_001__v01___17

    • ab_p_demo__race_001__v01___18

    • ab_p_demo__race_001__v01___19

    • ab_p_demo__race_001__v01___16

    • ab_p_demo__race_001__v01___24

    • ab_p_demo__race_001__v01___777

Usage

vars_ab_g_stc__cohort_ethnrace__leg

compute_ab_g_stc__cohort_ethnrace__leg(
  data,
  name = "ab_g_stc__cohort_ethnrace__leg",
  combine = TRUE
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Format

a character vector of all column names used to compute summary score of ab_g_stc__cohort_ethnrace__leg.

Value

tbl. The input data frame with the summary score appended as a new column (default). If combine == FALSE, a data frame with two columns: participant ID and summary score.


Compute "Cohort description: Ethno-racial identity (8 level aggregation providing information on Black identity for multiracial endorements) [Based on baseline response; missingness filled in from longitudinal responses]"

Description

Computes the summary score ab_g_stc__cohort_ethnrace__mblack Cohort description: Ethno-racial identity (8 level aggregation providing information on Black identity for multiracial endorements) [Based on baseline response; missingness filled in from longitudinal responses]

  • Summarized variables:

    • ab_p_demo__ethn_001

    • ab_p_demo__ethn_001__v01

    • ab_p_demo__race_001___0

    • ab_p_demo__race_001___10

    • ab_p_demo__race_001___11

    • ab_p_demo__race_001___12

    • ab_p_demo__race_001___13

    • ab_p_demo__race_001___14

    • ab_p_demo__race_001___15

    • ab_p_demo__race_001___16

    • ab_p_demo__race_001___17

    • ab_p_demo__race_001___18

    • ab_p_demo__race_001___19

    • ab_p_demo__race_001___20

    • ab_p_demo__race_001___21

    • ab_p_demo__race_001___22

    • ab_p_demo__race_001___23

    • ab_p_demo__race_001___24

    • ab_p_demo__race_001___25

    • ab_p_demo__race_001___777

    • ab_p_demo__race_001___999

    • ab_p_demo__race_001__v01___999

    • ab_p_demo__race_001__v01___10

    • ab_p_demo__race_001__v01___11

    • ab_p_demo__race_001__v01___12

    • ab_p_demo__race_001__v01___20

    • ab_p_demo__race_001__v01___21

    • ab_p_demo__race_001__v01___22

    • ab_p_demo__race_001__v01___23

    • ab_p_demo__race_001__v01___13

    • ab_p_demo__race_001__v01___14

    • ab_p_demo__race_001__v01___15

    • ab_p_demo__race_001__v01___17

    • ab_p_demo__race_001__v01___18

    • ab_p_demo__race_001__v01___19

    • ab_p_demo__race_001__v01___16

    • ab_p_demo__race_001__v01___24

    • ab_p_demo__race_001__v01___777

Usage

vars_ab_g_stc__cohort_ethnrace__mblack

compute_ab_g_stc__cohort_ethnrace__mblack(
  data,
  name = "ab_g_stc__cohort_ethnrace__mblack",
  combine = TRUE
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Format

a character vector of all column names used to compute summary score of ab_g_stc__cohort_ethnrace__mblack.

Value

tbl. The input data frame with the summary score appended as a new column (default). If combine == FALSE, a data frame with two columns: participant ID and summary score.


Compute "Cohort description: Ethno-racial identity (15 level classification from fc_p_meim_001) [Based on baseline response; missingness filled in from longitudinal responses]"

Description

Computes the summary score ab_g_stc__cohort_ethnrace__meim Cohort description: Ethno-racial identity (15 level classification from fc_p_meim_001) [Based on baseline response; missingness filled in from longitudinal responses]

  • Summarized variables:

    • fc_p_meim_001

  • Excluded values:

    • 777

    • 999

Usage

vars_ab_g_stc__cohort_ethnrace__meim

compute_ab_g_stc__cohort_ethnrace__meim(
  data,
  name = "ab_g_stc__cohort_ethnrace__meim",
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame 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 vector. Values to be excluded from the summary score calculation.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Format

a character vector of all column names used to compute summary score of ab_g_stc__cohort_ethnrace__meim.

Value

tbl. The input data frame with the summary score appended as a new column (default). If combine == FALSE, a data frame with two columns: participant ID and summary score.


Compute "Cohort description: Ethno-racial identity (8 level aggregation providing information on ethnicity for multiracial endorements) [Based on baseline response; missingness filled in from longitudinal responses]"

Description

Computes the summary score ab_g_stc__cohort_ethnrace__mhisp Cohort description: Ethno-racial identity (8 level aggregation providing information on ethnicity for multiracial endorements) [Based on baseline response; missingness filled in from longitudinal responses]

  • Summarized variables:

    • ab_p_demo__ethn_001

    • ab_p_demo__ethn_001__v01

    • ab_p_demo__race_001___0

    • ab_p_demo__race_001___10

    • ab_p_demo__race_001___11

    • ab_p_demo__race_001___12

    • ab_p_demo__race_001___13

    • ab_p_demo__race_001___14

    • ab_p_demo__race_001___15

    • ab_p_demo__race_001___16

    • ab_p_demo__race_001___17

    • ab_p_demo__race_001___18

    • ab_p_demo__race_001___19

    • ab_p_demo__race_001___20

    • ab_p_demo__race_001___21

    • ab_p_demo__race_001___22

    • ab_p_demo__race_001___23

    • ab_p_demo__race_001___24

    • ab_p_demo__race_001___25

    • ab_p_demo__race_001___777

    • ab_p_demo__race_001___999

    • ab_p_demo__race_001__v01___999

    • ab_p_demo__race_001__v01___10

    • ab_p_demo__race_001__v01___11

    • ab_p_demo__race_001__v01___12

    • ab_p_demo__race_001__v01___20

    • ab_p_demo__race_001__v01___21

    • ab_p_demo__race_001__v01___22

    • ab_p_demo__race_001__v01___23

    • ab_p_demo__race_001__v01___13

    • ab_p_demo__race_001__v01___14

    • ab_p_demo__race_001__v01___15

    • ab_p_demo__race_001__v01___17

    • ab_p_demo__race_001__v01___18

    • ab_p_demo__race_001__v01___19

    • ab_p_demo__race_001__v01___16

    • ab_p_demo__race_001__v01___24

    • ab_p_demo__race_001__v01___777

Usage

vars_ab_g_stc__cohort_ethnrace__mhisp

compute_ab_g_stc__cohort_ethnrace__mhisp(
  data,
  name = "ab_g_stc__cohort_ethnrace__mhisp",
  combine = TRUE
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Format

a character vector of all column names used to compute summary score of ab_g_stc__cohort_ethnrace__mhisp.

Value

tbl. The input data frame with the summary score appended as a new column (default). If combine == FALSE, a data frame with two columns: participant ID and summary score.


Compute "Cohort description: Race (NIH classification reporting 7 levels) [Based on baseline response; missingness filled in from longitudinal responses]"

Description

Computes the summary score ab_g_stc__cohort_race__nih Cohort description: Race (NIH classification reporting 7 levels) [Based on baseline response; missingness filled in from longitudinal responses]

  • Summarized variables:

    • ab_p_demo__race_001___0

    • ab_p_demo__race_001___10

    • ab_p_demo__race_001___11

    • ab_p_demo__race_001___12

    • ab_p_demo__race_001___13

    • ab_p_demo__race_001___14

    • ab_p_demo__race_001___15

    • ab_p_demo__race_001___16

    • ab_p_demo__race_001___17

    • ab_p_demo__race_001___18

    • ab_p_demo__race_001___19

    • ab_p_demo__race_001___20

    • ab_p_demo__race_001___21

    • ab_p_demo__race_001___22

    • ab_p_demo__race_001___23

    • ab_p_demo__race_001___24

    • ab_p_demo__race_001___25

    • ab_p_demo__race_001___777

    • ab_p_demo__race_001___999

    • ab_p_demo__race_001__v01___999

    • ab_p_demo__race_001__v01___10

    • ab_p_demo__race_001__v01___11

    • ab_p_demo__race_001__v01___12

    • ab_p_demo__race_001__v01___20

    • ab_p_demo__race_001__v01___21

    • ab_p_demo__race_001__v01___22

    • ab_p_demo__race_001__v01___23

    • ab_p_demo__race_001__v01___13

    • ab_p_demo__race_001__v01___14

    • ab_p_demo__race_001__v01___15

    • ab_p_demo__race_001__v01___17

    • ab_p_demo__race_001__v01___18

    • ab_p_demo__race_001__v01___19

    • ab_p_demo__race_001__v01___16

    • ab_p_demo__race_001__v01___24

    • ab_p_demo__race_001__v01___777

Usage

vars_ab_g_stc__cohort_race__nih

compute_ab_g_stc__cohort_race__nih(
  data,
  name = "ab_g_stc__cohort_race__nih",
  combine = TRUE
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: FALSE)

Format

a tibble of all column names, baseline and longitudinal, used to compute summary score of ab_g_stc__cohort_race__nih.

Value

tbl. The input data frame with the summary score appended as a new column (default). If combine == FALSE, a data frame with two columns: participant ID and summary score.


Compute "Demographics [Parent] (Native American Acculturation): Mean"

Description

Computes the summary score ab_p_demo__ntvam_mean (Demographics [Parent] (Native American Acculturation): Mean)

  • Summarized variables:

    • ab_p_demo__ntvam_005

    • ab_p_demo__ntvam_006

    • ab_p_demo__ntvam_007

  • Excluded values:

    • 999

  • Validation criterion: maximally 0 of 3 items missing

Usage

vars_ab_p_demo__ntvam

compute_ab_p_demo__ntvam_mean(
  data,
  name = "ab_p_demo__ntvam_mean",
  max_na = 0,
  exclude = c("999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_ab_p_demo__ntvam is a character vector of all column names used to compute summary score of ab_p_demo__ntvam.

Value

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


Compute "Family Environment Scale [Parent] (Cohesion): Mean"

Description

Computes the summary score fc_p_fes__cohes_mean (Family Environment Scale [Parent] (Cohesion): Mean)

  • Summarized variables:

    • fc_p_fes__cohes_001

    • fc_p_fes__cohes_002

    • fc_p_fes__cohes_003

    • fc_p_fes__cohes_004

    • fc_p_fes__cohes_005

    • fc_p_fes__cohes_006

    • fc_p_fes__cohes_007

    • fc_p_fes__cohes_008

    • fc_p_fes__cohes_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing

Usage

vars_fc_p_fes__cohes

compute_fc_p_fes__cohes_mean(
  data,
  name = "fc_p_fes__cohes_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_fes__cohes is a character vector of all column names used to compute summary score of fc_p_fes__cohes.

Value

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


Compute "Family Environment Scale [Parent] (Conflict): Mean"

Description

Computes the summary score fc_p_fes__confl_mean (Family Environment Scale [Parent] (Conflict): Mean)

  • Summarized variables:

    • fc_p_fes__confl_001

    • fc_p_fes__confl_002

    • fc_p_fes__confl_003

    • fc_p_fes__confl_004

    • fc_p_fes__confl_005

    • fc_p_fes__confl_006

    • fc_p_fes__confl_007

    • fc_p_fes__confl_008

    • fc_p_fes__confl_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing

Usage

vars_fc_p_fes__confl

compute_fc_p_fes__confl_mean(
  data,
  name = "fc_p_fes__confl_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_fes__confl is a character vector of all column names used to compute summary score of fc_p_fes__confl.

Value

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


Compute "Family Environment Scale [Parent] (Expression): Mean"

Description

Computes the summary score fc_p_fes__expr_mean (Family Environment Scale [Parent] (Expression): Mean)

  • Summarized variables:

    • fc_p_fes__expr_001

    • fc_p_fes__expr_002

    • fc_p_fes__expr_003

    • fc_p_fes__expr_004

    • fc_p_fes__expr_005

    • fc_p_fes__expr_006

    • fc_p_fes__expr_007

    • fc_p_fes__expr_008

    • fc_p_fes__expr_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing

Usage

vars_fc_p_fes__expr

compute_fc_p_fes__expr_mean(
  data,
  name = "fc_p_fes__expr_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_fes__expr is a character vector of all column names used to compute summary score of fc_p_fes__expr.

Value

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


Compute "Family Environment Scale [Parent] (Intellectual and cultural): Mean"

Description

Computes the summary score fc_p_fes__intelcult_mean (Family Environment Scale [Parent] (Intellectual and cultural): Mean)

  • Summarized variables:

    • fc_p_fes__intelcult_001

    • fc_p_fes__intelcult_002

    • fc_p_fes__intelcult_003

    • fc_p_fes__intelcult_004

    • fc_p_fes__intelcult_005

    • fc_p_fes__intelcult_006

    • fc_p_fes__intelcult_007

    • fc_p_fes__intelcult_008

    • fc_p_fes__intelcult_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing

Usage

vars_fc_p_fes__intelcult

compute_fc_p_fes__intelcult_mean(
  data,
  name = "fc_p_fes__intelcult_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_fes__intelcult is a character vector of all column names used to compute summary score of fc_p_fes__intelcult.

Value

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


Compute "Family Environment Scale [Parent] (Organization): Mean"

Description

Computes the summary score fc_p_fes__org_mean (Family Environment Scale [Parent] (Organization): Mean)

  • Summarized variables:

    • fc_p_fes__org_001

    • fc_p_fes__org_002

    • fc_p_fes__org_003

    • fc_p_fes__org_004

    • fc_p_fes__org_005

    • fc_p_fes__org_006

    • fc_p_fes__org_007

    • fc_p_fes__org_008

    • fc_p_fes__org_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing

Usage

vars_fc_p_fes__org

compute_fc_p_fes__org_mean(
  data,
  name = "fc_p_fes__org_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_fes__org is a character vector of all column names used to compute summary score of fc_p_fes__org.

Value

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


Compute "Family Environment Scale [Parent] (Activity and recreational): Mean"

Description

Computes the summary score fc_p_fes__rec_mean (Family Environment Scale [Parent] (Activity and recreational): Mean)

  • Summarized variables:

    • fc_p_fes__rec_001

    • fc_p_fes__rec_002

    • fc_p_fes__rec_003

    • fc_p_fes__rec_004

    • fc_p_fes__rec_005

    • fc_p_fes__rec_006

    • fc_p_fes__rec_007

    • fc_p_fes__rec_008

    • fc_p_fes__rec_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 9 items missing

Usage

vars_fc_p_fes__rec

compute_fc_p_fes__rec_mean(
  data,
  name = "fc_p_fes__rec_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_fes__rec is a character vector of all column names used to compute summary score of fc_p_fes__rec.

Value

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


Compute "The Multigroup Ethnic Identity Measure-Revised [Parent]: Mean"

Description

Computes the summary score fc_p_meim_mean (The Multigroup Ethnic Identity Measure-Revised [Parent]: Mean)

  • Summarized variables:

    • fc_p_meim__commattach_001

    • fc_p_meim__commattach_002

    • fc_p_meim__commattach_003

    • fc_p_meim__explor_001

    • fc_p_meim__explor_002

    • fc_p_meim__explor_003

  • Excluded values: none

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_fc_p_meim

compute_fc_p_meim_mean(
  data,
  name = "fc_p_meim_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_meim is a character vector of all column names used to compute summary score of fc_p_meim.

Value

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


Compute "The Multigroup Ethnic Identity Measure-Revised [Parent] (Commitment and attachment): Mean"

Description

Computes the summary score fc_p_meim__commattach_mean (The Multigroup Ethnic Identity Measure-Revised [Parent] (Commitment and attachment): Mean)

  • Summarized variables:

    • fc_p_meim__commattach_001

    • fc_p_meim__commattach_002

    • fc_p_meim__commattach_003

  • Excluded values: none

  • Validation criterion: none of 3 items missing

Usage

vars_fc_p_meim__commattach

compute_fc_p_meim__commattach_mean(
  data,
  name = "fc_p_meim__commattach_mean",
  max_na = 0,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_meim__commattach is a character vector of all column names used to compute summary score of fc_p_meim__commattach.

Value

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


Compute "The Multigroup Ethnic Identity Measure-Revised [Parent] (Exploration): Mean"

Description

Computes the summary score fc_p_meim__explor_mean (The Multigroup Ethnic Identity Measure-Revised [Parent] (Exploration): Mean)

  • Summarized variables:

    • fc_p_meim__explor_001

    • fc_p_meim__explor_002

    • fc_p_meim__explor_003

  • Excluded values: none

  • Validation criterion: none of 3 items missing

Usage

vars_fc_p_meim__explor

compute_fc_p_meim__explor_mean(
  data,
  name = "fc_p_meim__explor_mean",
  max_na = 0,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_meim__explor is a character vector of all column names used to compute summary score of fc_p_meim__explor.

Value

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


Compute "Neighborhood Collective Efficacy [Parent]: Mean"

Description

Computes the summary score fc_p_nce_mean (Neighborhood Collective Efficacy [Parent]: Mean)

  • Summarized variables:

    • fc_p_nce__cc_001

    • fc_p_nce__cc_002

    • fc_p_nce__cc_003

    • fc_p_nce__cc_004

    • fc_p_nce__cc_005

    • fc_p_nce__isc_001

    • fc_p_nce__isc_002

    • fc_p_nce__isc_003

    • fc_p_nce__isc_004

    • fc_p_nce__isc_005

  • Excluded values:

    • 777

  • Validation criterion: maximally 2 of 10 items missing

  • Notes:

    • The following variables are reverse coded before computing the summary score:

      • fc_p_nce__cc_003

      • fc_p_nce__cc_004

    • The value "99" (Don't know) is recoded to "3" (Neither... nor...)

Usage

vars_fc_p_nce

compute_fc_p_nce_mean(data, name = "fc_p_nce_mean", max_na = 2, combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 2).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_nce is a character vector of all column names used to compute summary score of fc_p_nce.

Value

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


Compute "Neighborhood Collective Efficacy [Parent] (Community cohesion): Mean"

Description

Computes the summary score fc_p_nce__cc_mean (Neighborhood Collective Efficacy [Parent] (Community cohesion): Mean)

  • Summarized variables:

    • fc_p_nce__cc_001

    • fc_p_nce__cc_002

    • fc_p_nce__cc_003

    • fc_p_nce__cc_004

    • fc_p_nce__cc_005

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 5 items missing

  • Notes:

    • The following variables are reverse coded before computing the summary score:

      • fc_p_nce__cc_003

      • fc_p_nce__cc_004

    • The value "99" (Don't know) is recoded to "3" (Neither... nor...)

Usage

vars_fc_p_nce__cc

compute_fc_p_nce__cc_mean(
  data,
  name = "fc_p_nce__cc_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_nce__cc is a character vector of all column names used to compute summary score of fc_p_nce__cc.

Value

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


Compute "Neighborhood Collective Efficacy [Parent] (Informal social control): Mean"

Description

Computes the summary score fc_p_nce__isc_mean (Neighborhood Collective Efficacy [Parent] (Informal social control): Mean)

  • Summarized variables:

    • fc_p_nce__isc_001

    • fc_p_nce__isc_002

    • fc_p_nce__isc_003

    • fc_p_nce__isc_004

    • fc_p_nce__isc_005

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 5 items missing

  • Note: The value "99" (Don't know) is recoded to "3" (Neither... nor...)

Usage

vars_fc_p_nce__isc

compute_fc_p_nce__isc_mean(
  data,
  name = "fc_p_nce__isc_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_nce__isc is a character vector of all column names used to compute summary score of fc_p_nce__isc.

Value

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


Compute "Neighborhood Safety & Crime [Parent] (Neighborhood safety): Mean"

Description

Computes the summary score fc_p_nsc__ns_mean (Neighborhood Safety & Crime [Parent] (Neighborhood safety): Mean)

  • Summarized variables:

    • fc_p_nsc__ns_001

    • fc_p_nsc__ns_002

    • fc_p_nsc__ns_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: none of 3 items missing

Usage

vars_fc_p_nsc__ns

compute_fc_p_nsc__ns_mean(
  data,
  name = "fc_p_nsc__ns_mean",
  max_na = 0,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_nsc__ns is a character vector of all column names used to compute summary score of fc_p_nsc__ns.

Value

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


Compute "Parental Knowledge Scale [Parent]: Mean"

Description

Computes the summary score fc_p_pk__knowl_mean (Parental Knowledge Scale [Parent]: Mean)

  • Summarized variables:

    • fc_p_pk__knowl_001

    • fc_p_pk__knowl_002

    • fc_p_pk__knowl_003

    • fc_p_pk__knowl_004

    • fc_p_pk__knowl_005

    • fc_p_pk__knowl_006

    • fc_p_pk__knowl_007

    • fc_p_pk__knowl_008

    • fc_p_pk__knowl_009

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 9 items missing

  • Notes: All items are reverse coded before computing the summary score.

Usage

vars_fc_p_pk__knowl

compute_fc_p_pk__knowl_mean(
  data,
  name = "fc_p_pk__knowl_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_pk__knowl is a character vector of all column names used to compute summary score of fc_p_pk__knowl.

Value

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


Compute "Prosocial Behavior [Parent]: Mean"

Description

Computes the summary score fc_p_psb_mean (Prosocial Behavior [Parent]: Mean)

  • Summarized variables:

    • fc_p_psb_001

    • fc_p_psb_002

    • fc_p_psb_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: none of 3 items missing

Usage

vars_fc_p_psb

compute_fc_p_psb_mean(
  data,
  name = "fc_p_psb_mean",
  max_na = 0,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_psb is a character vector of all column names used to compute summary score of fc_p_psb.

Value

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


Compute "Values Scale [Parent] (Familism): Mean (Subscales: supp, ref, obl)"

Description

Computes the summary score fc_p_vs__famil_mean (Values Scale [Parent] (Familism): Mean (Subscales: supp, ref, obl))

  • Summarized variables:

    • fc_p_vs__supp_001

    • fc_p_vs__supp_002

    • fc_p_vs__supp_003

    • fc_p_vs__supp_004

    • fc_p_vs__supp_005

    • fc_p_vs__supp_006

    • fc_p_vs__ref_001

    • fc_p_vs__ref_002

    • fc_p_vs__ref_003

    • fc_p_vs__ref_004

    • fc_p_vs__ref_005

    • fc_p_vs__obl_001

    • fc_p_vs__obl_002

    • fc_p_vs__obl_003

    • fc_p_vs__obl_004

    • fc_p_vs__obl_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion:

    • maximally 3 of 16 items missing

    • all sub-scales can be calculated

Usage

vars_fc_p_vs__famil

compute_fc_p_vs__famil_mean(
  data,
  name = "fc_p_vs__famil_mean",
  max_na = 3,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric vector of positive whole number. Number of missing items allowed (Default: 3).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

a character vector of all column names used to compute summary score of fc_p_vs__famil_mean and fc_p_vs__famil_nm.

Value

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


Compute "Values Scale [Parent] (Familism): Mean - Version 1 (Subscales: supp, ref)"

Description

Computes the summary score fc_p_vs__famil_mean__v01 (Values Scale [Parent] (Familism): Mean - Version 1 (Subscales: supp, ref))

  • Summarized variables:

    • fc_p_vs__supp_001

    • fc_p_vs__supp_002

    • fc_p_vs__supp_003

    • fc_p_vs__supp_004

    • fc_p_vs__supp_005

    • fc_p_vs__supp_006

    • fc_p_vs__ref_001

    • fc_p_vs__ref_002

    • fc_p_vs__ref_003

    • fc_p_vs__ref_004

    • fc_p_vs__ref_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion:

    • maximally 2 of 11 items missing

    • all sub-scales can be calculated

Usage

vars_fc_p_vs__famil__v01

compute_fc_p_vs__famil_mean__v01(
  data,
  name = "fc_p_vs__famil_mean__v01",
  max_na = 2,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric vector of positive whole number. Number of missing items allowed (Default: 2).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

a character vector of all column names used to compute summary score of fc_p_vs__famil_mean__v01 and fc_p_vs__famil_nm__v01.

Value

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

See Also

compute_fc_p_vs__famil_mean()


Compute "Values Scale [Parent] (Independence and self-reliance): Mean"

Description

Computes the summary score fc_p_vs__indselfrel_mean (Values Scale [Parent] (Independence and self-reliance): Mean)

  • Summarized variables:

    • fc_p_vs__indselfrel_001

    • fc_p_vs__indselfrel_002

    • fc_p_vs__indselfrel_003

    • fc_p_vs__indselfrel_004

    • fc_p_vs__indselfrel_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_p_vs__indselfrel

compute_fc_p_vs__indselfrel_mean(
  data,
  name = "fc_p_vs__indselfrel_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_vs__indselfrel is a character vector of all column names used to compute summary score of fc_p_vs__indselfrel.

Value

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


Compute "Values Scale [Parent] (Family obligation): Mean"

Description

Computes the summary score fc_p_vs__obl_mean (Values Scale [Parent] (Family obligation): Mean)

  • Summarized variables:

    • fc_p_vs__obl_001

    • fc_p_vs__obl_002

    • fc_p_vs__obl_003

    • fc_p_vs__obl_004

    • fc_p_vs__obl_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_p_vs__obl

compute_fc_p_vs__obl_mean(
  data,
  name = "fc_p_vs__obl_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_vs__obl is a character vector of all column names used to compute summary score of fc_p_vs__obl.

Value

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


Compute "Values Scale [Parent] (Family as referent): Mean"

Description

Computes the summary score fc_p_vs__ref_mean (Values Scale [Parent] (Family as referent): Mean)

  • Summarized variables:

    • fc_p_vs__ref_001

    • fc_p_vs__ref_002

    • fc_p_vs__ref_003

    • fc_p_vs__ref_004

    • fc_p_vs__ref_005

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_p_vs__ref

compute_fc_p_vs__ref_mean(
  data,
  name = "fc_p_vs__ref_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_vs__ref is a character vector of all column names used to compute summary score of fc_p_vs__ref.

Value

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


Compute "Values Scale [Parent] (Religion): Mean"

Description

Computes the summary score fc_p_vs__relig_mean (Values Scale [Parent] (Religion): Mean)

  • Summarized variables:

    • fc_p_vs__relig_001

    • fc_p_vs__relig_002

    • fc_p_vs__relig_003

    • fc_p_vs__relig_004

    • fc_p_vs__relig_005

    • fc_p_vs__relig_006

    • fc_p_vs__relig_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_fc_p_vs__relig

compute_fc_p_vs__relig_mean(
  data,
  name = "fc_p_vs__relig_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_p_vs__relig is a character vector of all column names used to compute summary score of fc_p_vs__relig.

Value

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


Compute "Values Scale [Parent] (Family support): Mean"

Description

Computes the summary score fc_p_vs__supp_mean (Values Scale [Parent] (Family support): Mean)

  • Summarized variables:

    • fc_p_vs__supp_001

    • fc_p_vs__supp_002

    • fc_p_vs__supp_003

    • fc_p_vs__supp_004

    • fc_p_vs__supp_005

    • fc_p_vs__supp_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_fc_p_vs__supp

compute_fc_p_vs__supp_mean(
  data,
  name = "fc_p_vs__supp_mean",
  max_na = 1,
  exclude = c("777", "999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

a character vector of all column names used to compute summary score of fc_p_vs__supp.

Value

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


Compute "Activity Space [Youth] (Safety): Mean"

Description

Computes the summary score fc_y_as__safe_mean (Activity Space [Youth] (Safety): Mean)

  • Summarized variables:

    • fc_y_as__safe_001a

    • fc_y_as__safe_001b

    • fc_y_as__safe_001c

  • Excluded values: none

  • Validation criterion: none of 3 items missing

Usage

vars_fc_y_as__safe

compute_fc_y_as__safe_mean(
  data,
  name = "fc_y_as__safe_mean",
  max_na = 0,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_as__safe is a character vector of all column names used to compute summary score of fc_y_as__safe.

Value

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


Compute "Children's Report of Parental Behavioral Inventory [Youth] (Caregiver A): Mean"

Description

Computes the summary score fc_y_crpbi__cg1_mean (Children's Report of Parental Behavioral Inventory [Youth] (Caregiver A): Mean)

  • Summarized variables:

    • fc_y_crpbi__cg1_002

    • fc_y_crpbi__cg1_003

    • fc_y_crpbi__cg1_004

    • fc_y_crpbi__cg1_005

    • fc_y_crpbi__cg1_006

  • Excluded values: none

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_y_crpbi__cg1

compute_fc_y_crpbi__cg1_mean(
  data,
  name = "fc_y_crpbi__cg1_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_crpbi__cg1 is a character vector of all column names used to compute summary score of fc_y_crpbi__cg1.

Value

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


Compute "Children's Report of Parental Behavioral Inventory [Youth] (Caregiver B): Mean"

Description

Computes the summary score fc_y_crpbi__cg2_mean (Children's Report of Parental Behavioral Inventory [Youth] (Caregiver B): Mean)

  • Summarized variables:

    • fc_y_crpbi__cg2_002

    • fc_y_crpbi__cg2_003

    • fc_y_crpbi__cg2_004

    • fc_y_crpbi__cg2_005

    • fc_y_crpbi__cg2_006

  • Excluded values: none

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_y_crpbi__cg2

compute_fc_y_crpbi__cg2_mean(
  data,
  name = "fc_y_crpbi__cg2_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_crpbi__cg2 is a character vector of all column names used to compute summary score of fc_y_crpbi__cg2.

Value

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


Compute "Experiences with Unfair Treatment [Youth] (Ethnicity): Mean"

Description

Computes the summary score fc_y_eut__ethn_mean (Experiences with Unfair Treatment [Youth] (Ethnicity): Mean)

  • Summarized variables:

    • fc_y_eut__ethn_001a

    • fc_y_eut__ethn_001b

    • fc_y_eut__ethn_001c/fc_y_eut__ethn_001c__v01

    • fc_y_eut__ethn_001d (only from event "ses-06A" onwards)

    • fc_y_eut__ethn_002

    • fc_y_eut__ethn_003a/fc_y_eut__ethn_003a__v01

    • fc_y_eut__ethn_003b/fc_y_eut__ethn_003b__v01

    • fc_y_eut__ethn_003c/fc_y_eut__ethn_003c__v01

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion:

    • before event ses-06A: none of 7 items missing

    • starting at event ses-06A: maximally 1 of 8 items missing

Usage

vars_fc_y_eut__ethn

compute_fc_y_eut__ethn_mean(data, name = "fc_y_eut__ethn_mean", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_eut__ethn is a character vector of all column names used to compute summary score of fc_y_eut__ethn.

Value

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


Compute "Family Environment Scale [Youth] (Cohesion): Mean"

Description

Computes the summary score fc_y_fes__cohes_mean (Family Environment Scale [Youth] (Cohesion): Mean)

  • Summarized variables:

    • fc_y_fes__cohes_001

    • fc_y_fes__cohes_002

    • fc_y_fes__cohes_003

    • fc_y_fes__cohes_004

    • fc_y_fes__cohes_005

    • fc_y_fes__cohes_006

    • fc_y_fes__cohes_007

    • fc_y_fes__cohes_008

    • fc_y_fes__cohes_009

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 9 items missing

Usage

vars_fc_y_fes__cohes

compute_fc_y_fes__cohes_mean(
  data,
  name = "fc_y_fes__cohes_mean",
  max_na = 1,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_fes__cohes is a character vector of all column names used to compute summary score of fc_y_fes__cohes.

Value

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


Compute "Family Environment Scale [Youth] (Conflict): Mean"

Description

Computes the summary score fc_y_fes__confl_mean (Family Environment Scale [Youth] (Conflict): Mean)

  • Summarized variables:

    • fc_y_fes__confl_001

    • fc_y_fes__confl_002

    • fc_y_fes__confl_003

    • fc_y_fes__confl_004

    • fc_y_fes__confl_005

    • fc_y_fes__confl_006

    • fc_y_fes__confl_007

    • fc_y_fes__confl_008

    • fc_y_fes__confl_009

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 9 items missing

Usage

vars_fc_y_fes__confl

compute_fc_y_fes__confl_mean(
  data,
  name = "fc_y_fes__confl_mean",
  max_na = 1,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_fes__confl is a character vector of all column names used to compute summary score of fc_y_fes__confl.

Value

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


Compute "UCLA Loneliness Scale [Youth]: Mean"

Description

Computes the summary score fc_y_lone_mean (UCLA Loneliness Scale [Youth]: Mean)

  • Summarized variables:

    • fc_y_lone_001

    • fc_y_lone_002

    • fc_y_lone_003

    • fc_y_lone_004

    • fc_y_lone_005

    • fc_y_lone_006

    • fc_y_lone_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_fc_y_lone

compute_fc_y_lone_mean(
  data,
  name = "fc_y_lone_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_lone is a character vector of all column names used to compute summary score of fc_y_lone.

Value

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


Compute "The Multigroup Ethnic Identity Measure-Revised [Youth]: Mean"

Description

Computes the summary score fc_y_meim_mean (The Multigroup Ethnic Identity Measure-Revised [Youth]: Mean)

  • Summarized variables:

    • fc_y_meim__commattach_001

    • fc_y_meim__commattach_002

    • fc_y_meim__commattach_003

    • fc_y_meim__explor_001

    • fc_y_meim__explor_002

    • fc_y_meim__explor_003

  • Excluded values: none

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_fc_y_meim

compute_fc_y_meim_mean(
  data,
  name = "fc_y_meim_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_meim is a character vector of all column names used to compute summary score of fc_y_meim.

Value

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


Compute "The Multigroup Ethnic Identity Measure-Revised [Youth] (Commitment and attachment): Mean"

Description

Computes the summary score fc_y_meim__commattach_mean (The Multigroup Ethnic Identity Measure-Revised [Youth] (Commitment and attachment): Mean)

  • Summarized variables:

    • fc_y_meim__commattach_001

    • fc_y_meim__commattach_002

    • fc_y_meim__commattach_003

  • Excluded values: none

  • Validation criterion: none of 3 items missing

Usage

vars_fc_y_meim__commattach

compute_fc_y_meim__commattach_mean(
  data,
  name = "fc_y_meim__commattach_mean",
  max_na = 0,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_meim__commattach is a character vector of all column names used to compute summary score of fc_y_meim__commattach.

Value

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


Compute "The Multigroup Ethnic Identity Measure-Revised [Youth] (Exploration): Mean"

Description

Computes the summary score fc_y_meim__explor_mean (The Multigroup Ethnic Identity Measure-Revised [Youth] (Exploration): Mean)

  • Summarized variables:

    • fc_y_meim__explor_001

    • fc_y_meim__explor_002

    • fc_y_meim__explor_003

  • Excluded values: none

  • Validation criterion: none of 3 items missing

Usage

vars_fc_y_meim__explor

compute_fc_y_meim__explor_mean(
  data,
  name = "fc_y_meim__explor_mean",
  max_na = 0,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_meim__explor is a character vector of all column names used to compute summary score of fc_y_meim__explor.

Value

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


Compute "Multidimensional Neglectful Behavior Scale [Youth]: Mean"

Description

Computes the summary score fc_y_mnbs_mean (Multidimensional Neglectful Behavior Scale [Youth]: Mean)

  • Summarized variables:

    • fc_y_mnbs__edusupp_001

    • fc_y_mnbs__edusupp_002

    • fc_y_mnbs__edusupp_003

    • fc_y_mnbs__superv_001

    • fc_y_mnbs__superv_002

    • fc_y_mnbs__superv_003

    • fc_y_mnbs__superv_004

    • fc_y_mnbs__superv_005

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_fc_y_mnbs

compute_fc_y_mnbs_mean(
  data,
  name = "fc_y_mnbs_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_mnbs is a character vector of all column names used to compute summary score of fc_y_mnbs.

Value

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


Compute "Multidimensional Neglectful Behavior Scale [Youth] (Education support): Mean"

Description

Computes the summary score fc_y_mnbs__edusupp_mean (Multidimensional Neglectful Behavior Scale [Youth] (Education support): Mean)

  • Summarized variables:

    • fc_y_mnbs__edusupp_001

    • fc_y_mnbs__edusupp_002

    • fc_y_mnbs__edusupp_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

vars_fc_y_mnbs__edusupp

compute_fc_y_mnbs__edusupp_mean(
  data,
  name = "fc_y_mnbs__edusupp_mean",
  max_na = 0,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_mnbs__edusupp is a character vector of all column names used to compute summary score of fc_y_mnbs__edusupp.

Value

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


Compute "Multidimensional Neglectful Behavior Scale [Youth] (Supervision): Mean"

Description

Computes the summary score fc_y_mnbs__superv_mean (Multidimensional Neglectful Behavior Scale [Youth] (Supervision): Mean)

  • Summarized variables:

    • fc_y_mnbs__superv_001

    • fc_y_mnbs__superv_002

    • fc_y_mnbs__superv_003

    • fc_y_mnbs__superv_004

    • fc_y_mnbs__superv_005

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_y_mnbs__superv

compute_fc_y_mnbs__superv_mean(
  data,
  name = "fc_y_mnbs__superv_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_mnbs__superv is a character vector of all column names used to compute summary score of fc_y_mnbs__superv.

Value

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


Compute "Native American Acculturation [Youth]: Mean"

Description

Computes the summary score fc_y_naa_mean (Native American Acculturation [Youth]: Mean)

  • Summarized variables:

    • fc_y_naa_001

    • fc_y_naa_002

    • fc_y_naa_003

  • Excluded values:

    • 999

  • Validation criterion: maximally 0 of 3 items missing

Usage

vars_fc_y_naa

compute_fc_y_naa_mean(
  data,
  name = "fc_y_naa_mean",
  max_na = 0,
  exclude = c("999"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_naa is a character vector of all column names used to compute summary score of fc_y_naa.

Value

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


Compute "Parental Monitoring [Youth]: Mean"

Description

Computes the summary score fc_y_pm_mean (Parental Monitoring [Youth]: Mean)

  • Summarized variables:

    • fc_y_pm_001

    • fc_y_pm_002

    • fc_y_pm_003

    • fc_y_pm_004

    • fc_y_pm_005

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_y_pm

compute_fc_y_pm_mean(data, name = "fc_y_pm_mean", max_na = 1, combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_pm is a character vector of all column names used to compute summary score of fc_y_pm.

Value

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


Compute "Peer Network Health [Youth]: Sum"

Description

Computes the summary score fc_y_pnh_sum (Peer Network Health [Youth]: Sum)

  • Summarized variables:

    • fc_y_pnh_001

    • fc_y_pnh_002

    • fc_y_pnh_002__01

    • fc_y_pnh_003

    • fc_y_pnh_003__01

  • Excluded values:

    • 777

  • Validation criterion: none of 5 items missing

  • Notes:

    • fc_y_pnh_001 is scored: No = 0; Yes = 3

    • fc_y_pnh_002/fc_y_pnh_003 are scored: No = 0; Yes = 2

    • fc_y_pnh_002__01/fc_y_pnh_003__01 are scored with their original values (1 through 10)

Usage

vars_fc_y_pnh

compute_fc_y_pnh_sum(
  data,
  name = "fc_y_pnh_sum",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_pnh is a character vector of all column names used to compute summary score of fc_y_pnh.

Value

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


Compute "Prosocial Behavior [Youth]: Mean"

Description

Computes the summary score fc_y_psb_mean (Prosocial Behavior [Youth]: Mean)

  • Summarized variables:

    • fc_y_psb_001

    • fc_y_psb_002

    • fc_y_psb_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

vars_fc_y_psb

compute_fc_y_psb_mean(
  data,
  name = "fc_y_psb_mean",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_psb is a character vector of all column names used to compute summary score of fc_y_psb.

Value

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


Compute "Resistance to Peer Influence [Youth]: Mean"

Description

Computes the summary score fc_y_rpi_mean (Resistance to Peer Influence [Youth]: Mean)

  • Summarized variables:

    • fc_y_rpi_001

    • fc_y_rpi_002

    • fc_y_rpi_003

    • fc_y_rpi_004

    • fc_y_rpi_005

    • fc_y_rpi_006

    • fc_y_rpi_007

    • fc_y_rpi_008

    • fc_y_rpi_009

    • fc_y_rpi_010

  • Excluded values: none

  • Validation criterion: maximally 3 of 10 items missing

  • Note: The following variables are reverse coded before computing the summary score:

    • fc_y_rpi_002

    • fc_y_rpi_006

    • fc_y_rpi_010

Usage

vars_fc_y_rpi

compute_fc_y_rpi_mean(data, name = "fc_y_rpi_mean", max_na = 3, combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 3).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_rpi is a character vector of all column names used to compute summary score of fc_y_rpi.

Value

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


Compute "School Risk & Protective Factors [Youth] (School disengagement): Mean"

Description

Computes the summary score fc_y_srpf__dis_mean (School Risk & Protective Factors [Youth] (School disengagement): Mean)

  • Summarized variables:

    • fc_y_srpf__dis_001

    • fc_y_srpf__dis_002

  • Excluded values:

    • 777

  • Validation criterion: none of 2 items missing

Usage

vars_fc_y_srpf__dis

compute_fc_y_srpf__dis_mean(
  data,
  name = "fc_y_srpf__dis_mean",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_srpf__dis is a character vector of all column names used to compute summary score of fc_y_srpf__dis.

Value

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


Compute "School Risk & Protective Factors [Youth] (School environment): Mean"

Description

Computes the summary score fc_y_srpf__env_mean (School Risk & Protective Factors [Youth] (School environment): Mean)

  • Summarized variables:

    • fc_y_srpf__env_001

    • fc_y_srpf__env_002

    • fc_y_srpf__env_003

    • fc_y_srpf__env_004

    • fc_y_srpf__env_005

    • fc_y_srpf__env_006

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_fc_y_srpf__env

compute_fc_y_srpf__env_mean(
  data,
  name = "fc_y_srpf__env_mean",
  max_na = 1,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_srpf__env is a character vector of all column names used to compute summary score of fc_y_srpf__env.

Value

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


Compute "School Risk & Protective Factors [Youth] (School involvement): Mean"

Description

Computes the summary score fc_y_srpf__involv_mean (School Risk & Protective Factors [Youth] (School involvement): Mean)

  • Summarized variables:

    • fc_y_srpf__involv_001

    • fc_y_srpf__involv_002

    • fc_y_srpf__involv_003

    • fc_y_srpf__involv_004

  • Excluded values:

    • 777

  • Validation criterion: none of 4 items missing

Usage

vars_fc_y_srpf__involv

compute_fc_y_srpf__involv_mean(
  data,
  name = "fc_y_srpf__involv_mean",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_srpf__involv is a character vector of all column names used to compute summary score of fc_y_srpf__involv.

Value

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


Compute "Values Scale [Youth] (Familism): Mean (Subscales: supp, ref, obl)"

Description

Computes the summary score fc_y_vs__famil_mean (Values Scale [Youth] (Familism): Mean (Subscales: supp, ref, obl))

  • Summarized variables:

    • fc_y_vs__supp_001

    • fc_y_vs__supp_002

    • fc_y_vs__supp_003

    • fc_y_vs__supp_004

    • fc_y_vs__supp_005

    • fc_y_vs__supp_006

    • fc_y_vs__ref_001

    • fc_y_vs__ref_002

    • fc_y_vs__ref_003

    • fc_y_vs__ref_004

    • fc_y_vs__ref_005

    • fc_y_vs__obl_001

    • fc_y_vs__obl_002

    • fc_y_vs__obl_003

    • fc_y_vs__obl_004

    • fc_y_vs__obl_005

  • Excluded values:

    • 777

  • Validation criterion:

    • maximally 3 of 16 items missing

    • all sub-scales can be calculated

Usage

vars_fc_y_vs__famil

compute_fc_y_vs__famil_mean(
  data,
  name = "fc_y_vs__famil_mean",
  max_na = 3,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric vector of positive whole number. Number of missing items allowed (Default: 3).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

a character vector of all column names used to compute summary score of fc_y_vs__famil_mean and fc_y_vs__famil_nm.

Value

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


Compute "Values Scale [Youth] (Familism): Mean - Version 1 (Subscales: supp, ref)"

Description

Computes the summary score fc_y_vs__famil_mean__v01 (Values Scale [Youth] (Familism): Mean - Version 1 (Subscales: supp, ref))

  • Summarized variables:

    • fc_y_vs__supp_001

    • fc_y_vs__supp_002

    • fc_y_vs__supp_003

    • fc_y_vs__supp_004

    • fc_y_vs__supp_005

    • fc_y_vs__supp_006

    • fc_y_vs__ref_001

    • fc_y_vs__ref_002

    • fc_y_vs__ref_003

    • fc_y_vs__ref_004

    • fc_y_vs__ref_005

  • Excluded values:

    • 777

  • Validation criterion:

    • maximally 2 of 11 items missing

    • all sub-scales can be calculated

Usage

vars_fc_y_vs__famil__v01

compute_fc_y_vs__famil_mean__v01(
  data,
  name = "fc_y_vs__famil_mean__v01",
  max_na = 2,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric vector of positive whole number. Number of missing items allowed (Default: 2).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

a character vector of all column names used to compute summary score of fc_y_vs__famil_mean__v01 and fc_y_vs__famil_nm__v01.

Value

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

See Also

compute_fc_y_vs__famil_mean()


Compute "Values Scale [Youth] (Independence and self-reliance): Mean"

Description

Computes the summary score fc_y_vs__indselfrel_mean (Values Scale [Youth] (Independence and self-reliance): Mean)

  • Summarized variables:

    • fc_y_vs__indselfrel_001

    • fc_y_vs__indselfrel_002

    • fc_y_vs__indselfrel_003

    • fc_y_vs__indselfrel_004

    • fc_y_vs__indselfrel_005

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_y_vs__indselfrel

compute_fc_y_vs__indselfrel_mean(
  data,
  name = "fc_y_vs__indselfrel_mean",
  max_na = 1,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_vs__indselfrel is a character vector of all column names used to compute summary score of fc_y_vs__indselfrel.

Value

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


Compute "Values Scale [Youth] (Family obligation): Mean"

Description

Computes the summary score fc_y_vs__obl_mean (Values Scale [Youth] (Family obligation): Mean)

  • Summarized variables:

    • fc_y_vs__obl_001

    • fc_y_vs__obl_002

    • fc_y_vs__obl_003

    • fc_y_vs__obl_004

    • fc_y_vs__obl_005

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_y_vs__obl

compute_fc_y_vs__obl_mean(
  data,
  name = "fc_y_vs__obl_mean",
  max_na = 1,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_vs__obl is a character vector of all column names used to compute summary score of fc_y_vs__obl.

Value

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


Compute "Values Scale [Youth] (Family as referent): Mean"

Description

Computes the summary score fc_y_vs__ref_mean (Values Scale [Youth] (Family as referent): Mean)

  • Summarized variables:

    • fc_y_vs__ref_001

    • fc_y_vs__ref_002

    • fc_y_vs__ref_003

    • fc_y_vs__ref_004

    • fc_y_vs__ref_005

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_fc_y_vs__ref

compute_fc_y_vs__ref_mean(
  data,
  name = "fc_y_vs__ref_mean",
  max_na = 1,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_vs__ref is a character vector of all column names used to compute summary score of fc_y_vs__ref.

Value

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


Compute "Values Scale [Youth] (Religion): Mean"

Description

Computes the summary score fc_y_vs__relig_mean (Values Scale [Youth] (Religion): Mean)

  • Summarized variables:

    • fc_y_vs__relig_001

    • fc_y_vs__relig_002

    • fc_y_vs__relig_003

    • fc_y_vs__relig_004

    • fc_y_vs__relig_005

    • fc_y_vs__relig_006

    • fc_y_vs__relig_007

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_fc_y_vs__relig

compute_fc_y_vs__relig_mean(
  data,
  name = "fc_y_vs__relig_mean",
  max_na = 1,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_vs__relig is a character vector of all column names used to compute summary score of fc_y_vs__relig.

Value

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


Compute "Values Scale [Youth] (Family support): Mean"

Description

Computes the summary score fc_y_vs__supp_mean (Values Scale [Youth] (Family support): Mean)

  • Summarized variables:

    • fc_y_vs__supp_001

    • fc_y_vs__supp_002

    • fc_y_vs__supp_003

    • fc_y_vs__supp_004

    • fc_y_vs__supp_005

    • fc_y_vs__supp_006

  • Excluded values:

    • 777

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_fc_y_vs__supp

compute_fc_y_vs__supp_mean(
  data,
  name = "fc_y_vs__supp_mean",
  max_na = 1,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_vs__supp is a character vector of all column names used to compute summary score of fc_y_vs__supp.

Value

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


Compute "Wills Problem Solving Scale [Youth]: Mean"

Description

Computes the summary score fc_y_wpss_mean (Wills Problem Solving Scale [Youth]: Mean)

  • Summarized variables:

    • fc_y_wpss_001

    • fc_y_wpss_002

    • fc_y_wpss_003

    • fc_y_wpss_004

    • fc_y_wpss_005

    • fc_y_wpss_006

  • Excluded values: none

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_fc_y_wpss

compute_fc_y_wpss_mean(
  data,
  name = "fc_y_wpss_mean",
  max_na = 1,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score. Default is the name in the description.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

combine

logical. If TRUE, the summary score is appended to the input data frame. If FALSE, the summary score is returned as a separate data frame. Default is TRUE.

Format

vars_fc_y_wpss is a character vector of all column names used to compute summary score of fc_y_wpss.

Value

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


Compute "Adult Behavior Checklist [Parent]: Number missing"

Description

Computes the summary score mh_p_abcl_nm Adult Behavior Checklist [Parent]: Number missing

  • Summarized variables:

    • mh_p_abcl__rule_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__tho_001

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__tho_002

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__tho_003

    • mh_p_abcl__tho_004

    • mh_p_abcl__tho_006

    • mh_p_abcl__rule_002

    • mh_p_abcl__tho__dep_002

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__attn__adhd_001

    • mh_p_abcl__attn__adhd_003

    • mh_p_abcl__attn__adhd_004

    • mh_p_abcl__attn__adhd_005

    • mh_p_abcl__attn__adhd_006

    • mh_p_abcl__attn__adhd_007

    • mh_p_abcl__othpr__adhd_002

    • mh_p_abcl__othpr__adhd_003

    • mh_p_abcl__othpr__adhd_004

    • mh_p_abcl__rule__adhd_001

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__attn__antsoc_001

    • mh_p_abcl__othpr__antsoc_002

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__othpr__anx_001

    • mh_p_abcl__othpr__anx_002

    • mh_p_abcl__othpr__anx_003

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__othpr__avoid_001

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_005

    • mh_p_abcl__attn__dep_001

    • mh_p_abcl__attn__dep_002

    • mh_p_abcl__attn__dep_003

    • mh_p_abcl__othpr__dep_001

    • mh_p_abcl__othpr__dep_002

    • mh_p_abcl__othpr__dep_003

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__wthdr__dep_001

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

    • mh_p_abcl__aggr_002

    • mh_p_abcl__aggr_003

    • mh_p_abcl__aggr_004

    • mh_p_abcl__aggr_005

    • mh_p_abcl__aggr_006

    • mh_p_abcl__aggr_007

    • mh_p_abcl__anxdep_001

    • mh_p_abcl__anxdep_002

    • mh_p_abcl__anxdep_003

    • mh_p_abcl__anxdep_004

    • mh_p_abcl__attn_001

    • mh_p_abcl__attn_002

    • mh_p_abcl__attn_003

    • mh_p_abcl__attn_004

    • mh_p_abcl__attn_005

    • mh_p_abcl__attn_006

    • mh_p_abcl__rule_003

    • mh_p_abcl__intru_001

    • mh_p_abcl__intru_002

    • mh_p_abcl__intru_003

    • mh_p_abcl__intru_004

    • mh_p_abcl__intru_005

    • mh_p_abcl__intru_006

    • mh_p_abcl__wthdr_001

    • mh_p_abcl__wthdr_002

    • mh_p_abcl__wthdr_003

    • mh_p_abcl__wthdr_004

    • mh_p_abcl__som_001

    • mh_p_abcl__othpr_001

    • mh_p_abcl__othpr_002

    • mh_p_abcl__othpr_003

    • mh_p_abcl__othpr_004

    • mh_p_abcl__othpr_005

    • mh_p_abcl__othpr_006

    • mh_p_abcl__othpr_007

    • mh_p_abcl__othpr_008

    • mh_p_abcl__othpr_009

    • mh_p_abcl__othpr_010

    • mh_p_abcl__othpr_011

    • mh_p_abcl__othpr_012

    • mh_p_abcl__tho_005

    • mh_p_abcl__tho_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl

compute_mh_p_abcl_nm(
  data,
  name = "mh_p_abcl_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.

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.

Format

vars_mh_p_abcl is vector of all column names used to compute summary score of mh_p_abcl scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl_nm(data) |>
  select(
    any_of(c("mh_p_abcl_nm", vars_mh_p_abcl))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Adaptive Functioning Scale - Friends): Number missing"

Description

Computes the summary score mh_p_abcl__afs__frnd_nm Adult Behavior Checklist [Parent] (Adaptive Functioning Scale - Friends): Number missing

  • Summarized variables:

    • mh_p_abcl__frnd_001

    • mh_p_abcl__frnd_002

    • mh_p_abcl__frnd_003

    • mh_p_abcl__frnd_004

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__afs__frnd

compute_mh_p_abcl__afs__frnd_nm(
  data,
  name = "mh_p_abcl__afs__frnd_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.

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.

Format

vars_mh_p_abcl__afs__frnd is vector of all column names used to compute summary score of mh_p_abcl__afs__frnd scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__afs__frnd_nm(data) |>
  select(
    any_of(c("mh_p_abcl__afs__frnd_nm", vars_mh_p_abcl__afs__frnd))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] Sex Assignment"

Description

Computes the summary score mh_p_abcl__cg2_sex Adult Behavior Checklist [Parent] Sex Assignment

  • Summarized variables:

    • mh_p_abcl__cg2_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__cg2

compute_mh_p_abcl__cg2_sex(data, name = "mh_p_abcl__cg2_sex", combine = TRUE)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

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.

Format

vars_mh_p_abcl__cg2 is vector of all column names used to compute summary score of mh_p_abcl__cg2 scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__cg2_sex(data) |>
  select(
    any_of(c("mh_p_abcl__cg2_sex", vars_mh_p_abcl__cg2))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Critical items): Number missing"

Description

Computes the summary score mh_p_abcl__critic_nm Adult Behavior Checklist [Parent] (Critical items): Number missing

  • Summarized variables:

    • mh_p_abcl__rule_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__tho_001

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__tho_002

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__tho_003

    • mh_p_abcl__tho_004

    • mh_p_abcl__tho_006

    • mh_p_abcl__rule_002

    • mh_p_abcl__tho__dep_002

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__anxdep__dep_004

Usage

vars_mh_p_abcl__critic

compute_mh_p_abcl__critic_nm(
  data,
  name = "mh_p_abcl__critic_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.

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.

Format

vars_mh_p_abcl__critic is vector of all column names used to compute summary score of mh_p_abcl__critic scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__critic_nm(data) |>
  select(
    any_of(c("mh_p_abcl__critic_nm", vars_mh_p_abcl__critic))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): Number missing"

Description

Computes the summary score mh_p_abcl__dsm__adhd_nm Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): Number missing

  • Summarized variables:

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__attn__adhd_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__attn__adhd_003

    • mh_p_abcl__attn__adhd_004

    • mh_p_abcl__attn__adhd_005

    • mh_p_abcl__attn__adhd_006

    • mh_p_abcl__attn__adhd_007

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__othpr__adhd_002

    • mh_p_abcl__othpr__adhd_003

    • mh_p_abcl__othpr__adhd_004

    • mh_p_abcl__rule__adhd_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__dsm__adhd

compute_mh_p_abcl__dsm__adhd_nm(
  data,
  name = "mh_p_abcl__dsm__adhd_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.

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.

Format

vars_mh_p_abcl__dsm__adhd is vector of all column names used to compute summary score of mh_p_abcl__dsm__adhd scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__dsm__adhd_nm(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__adhd_nm", vars_mh_p_abcl__dsm__adhd))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): Number missing"

Description

Computes the summary score mh_p_abcl__dsm__antsoc_nm Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): Number missing

  • Summarized variables:

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__attn__antsoc_001

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__othpr__antsoc_002

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__dsm__antsoc

compute_mh_p_abcl__dsm__antsoc_nm(
  data,
  name = "mh_p_abcl__dsm__antsoc_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.

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.

Format

vars_mh_p_abcl__dsm__antsoc is vector of all column names used to compute summary score of mh_p_abcl__dsm__antsoc scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__dsm__antsoc_nm(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__antsoc_nm", vars_mh_p_abcl__dsm__antsoc))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety problems): Number missing"

Description

Computes the summary score mh_p_abcl__dsm__anx_nm Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety problems): Number missing

  • Summarized variables:

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__othpr__anx_001

    • mh_p_abcl__othpr__anx_002

    • mh_p_abcl__othpr__anx_003

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__dsm__anx

compute_mh_p_abcl__dsm__anx_nm(
  data,
  name = "mh_p_abcl__dsm__anx_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.

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.

Format

vars_mh_p_abcl__dsm__anx is vector of all column names used to compute summary score of mh_p_abcl__dsm__anx scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__dsm__anx_nm(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__anx_nm", vars_mh_p_abcl__dsm__anx))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): Number missing"

Description

Computes the summary score mh_p_abcl__dsm__avoid_nm Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): Number missing

  • Summarized variables:

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__othpr__avoid_001

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__dsm__avoid

compute_mh_p_abcl__dsm__avoid_nm(
  data,
  name = "mh_p_abcl__dsm__avoid_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.

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.

Format

vars_mh_p_abcl__dsm__avoid is vector of all column names used to compute summary score of mh_p_abcl__dsm__avoid scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__dsm__avoid_nm(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__avoid_nm", vars_mh_p_abcl__dsm__avoid))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): Number missing"

Description

Computes the summary score mh_p_abcl__dsm__dep_nm Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): Number missing

  • Summarized variables:

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__anxdep__dep_005

    • mh_p_abcl__attn__dep_001

    • mh_p_abcl__attn__dep_002

    • mh_p_abcl__attn__dep_003

    • mh_p_abcl__othpr__dep_001

    • mh_p_abcl__othpr__dep_002

    • mh_p_abcl__othpr__dep_003

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__tho__dep_002

    • mh_p_abcl__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__dsm__dep

compute_mh_p_abcl__dsm__dep_nm(
  data,
  name = "mh_p_abcl__dsm__dep_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.

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.

Format

vars_mh_p_abcl__dsm__dep is vector of all column names used to compute summary score of mh_p_abcl__dsm__dep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__dsm__dep_nm(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__dep_nm", vars_mh_p_abcl__dsm__dep))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): Number missing"

Description

Computes the summary score mh_p_abcl__dsm__somat_nm Adult Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): Number missing

  • Summarized variables:

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__dsm__somat

compute_mh_p_abcl__dsm__somat_nm(
  data,
  name = "mh_p_abcl__dsm__somat_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.

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.

Format

vars_mh_p_abcl__dsm__somat is vector of all column names used to compute summary score of mh_p_abcl__dsm__somat scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__dsm__somat_nm(data) |>
  select(
    any_of(c("mh_p_abcl__dsm__somat_nm", vars_mh_p_abcl__dsm__somat))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Substance use): Number missing"

Description

Computes the summary score mh_p_abcl__su_nm Adult Behavior Checklist [Parent] (Substance use): Number missing

  • Summarized variables:

    • mh_p_abcl__drg_001

    • mh_p_abcl__drunk_001

    • mh_p_abcl__nic_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__su

compute_mh_p_abcl__su_nm(
  data,
  name = "mh_p_abcl__su_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.

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.

Format

vars_mh_p_abcl__su is vector of all column names used to compute summary score of mh_p_abcl__su scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__su_nm(data) |>
  select(
    any_of(c("mh_p_abcl__su_nm", vars_mh_p_abcl__su))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Days drug use): Number missing"

Description

Computes the summary score mh_p_abcl__su__drg_nm Adult Behavior Checklist [Parent] (Days drug use): Number missing

  • Summarized variables:

    • mh_p_abcl__drg_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__su__drg

compute_mh_p_abcl__su__drg_nm(
  data,
  name = "mh_p_abcl__su__drg_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.

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.

Format

vars_mh_p_abcl__su__drg is vector of all column names used to compute summary score of mh_p_abcl__su__drg scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__su__drg_nm(data) |>
  select(
    any_of(c("mh_p_abcl__su__drg_nm", vars_mh_p_abcl__su__drg))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Days Drunk): Number missing"

Description

Computes the summary score mh_p_abcl__su__drunk_nm Adult Behavior Checklist [Parent] (Days Drunk): Number missing

  • Summarized variables:

    • mh_p_abcl__drunk_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__su__drunk

compute_mh_p_abcl__su__drunk_nm(
  data,
  name = "mh_p_abcl__su__drunk_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.

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.

Format

vars_mh_p_abcl__su__drunk is vector of all column names used to compute summary score of mh_p_abcl__su__drunk scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__su__drunk_nm(data) |>
  select(
    any_of(c("mh_p_abcl__su__drunk_nm", vars_mh_p_abcl__su__drunk))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Tobacco per day): Number missing"

Description

Computes the summary score mh_p_abcl__su__nic_nm Adult Behavior Checklist [Parent] (Tobacco per day): Number missing

  • Summarized variables:

    • mh_p_abcl__nic_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__su__nic

compute_mh_p_abcl__su__nic_nm(
  data,
  name = "mh_p_abcl__su__nic_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.

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.

Format

vars_mh_p_abcl__su__nic is vector of all column names used to compute summary score of mh_p_abcl__su__nic scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__su__nic_nm(data) |>
  select(
    any_of(c("mh_p_abcl__su__nic_nm", vars_mh_p_abcl__su__nic))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): Number missing"

Description

Computes the summary score mh_p_abcl__synd__aggr_nm Adult Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): Number missing

  • Summarized variables:

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr_002

    • mh_p_abcl__aggr_003

    • mh_p_abcl__aggr_004

    • mh_p_abcl__aggr_005

    • mh_p_abcl__aggr_006

    • mh_p_abcl__aggr_007

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__aggr

compute_mh_p_abcl__synd__aggr_nm(
  data,
  name = "mh_p_abcl__synd__aggr_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.

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.

Format

vars_mh_p_abcl__synd__aggr is vector of all column names used to compute summary score of mh_p_abcl__synd__aggr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__aggr_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__aggr_nm", vars_mh_p_abcl__synd__aggr))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): Number missing"

Description

Computes the summary score mh_p_abcl__synd__anxdep_nm Adult Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): Number missing

  • Summarized variables:

    • mh_p_abcl__anxdep_001

    • mh_p_abcl__anxdep_002

    • mh_p_abcl__anxdep_003

    • mh_p_abcl__anxdep_004

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__anxdep__dep_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__anxdep

compute_mh_p_abcl__synd__anxdep_nm(
  data,
  name = "mh_p_abcl__synd__anxdep_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.

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.

Format

vars_mh_p_abcl__synd__anxdep is vector of all column names used to compute summary score of mh_p_abcl__synd__anxdep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__anxdep_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__anxdep_nm", vars_mh_p_abcl__synd__anxdep))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Attention problems): Number missing"

Description

Computes the summary score mh_p_abcl__synd__attn_nm Adult Behavior Checklist [Parent] (Syndrome Scale - Attention problems): Number missing

  • Summarized variables:

    • mh_p_abcl__attn_001

    • mh_p_abcl__attn_002

    • mh_p_abcl__attn_003

    • mh_p_abcl__attn_004

    • mh_p_abcl__attn_005

    • mh_p_abcl__attn_006

    • mh_p_abcl__attn__adhd_001

    • mh_p_abcl__attn__adhd_002

    • mh_p_abcl__attn__adhd_003

    • mh_p_abcl__attn__adhd_004

    • mh_p_abcl__attn__adhd_005

    • mh_p_abcl__attn__adhd_006

    • mh_p_abcl__attn__adhd_007

    • mh_p_abcl__attn__antsoc_001

    • mh_p_abcl__attn__dep_001

    • mh_p_abcl__attn__dep_002

    • mh_p_abcl__attn__dep_003

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__attn

compute_mh_p_abcl__synd__attn_nm(
  data,
  name = "mh_p_abcl__synd__attn_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.

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.

Format

vars_mh_p_abcl__synd__attn is vector of all column names used to compute summary score of mh_p_abcl__synd__attn scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__attn_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__attn_nm", vars_mh_p_abcl__synd__attn))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - External): Number missing"

Description

Computes the summary score mh_p_abcl__synd__ext_nm Adult Behavior Checklist [Parent] (Syndrome Scale - External): Number missing

  • Summarized variables:

    • mh_p_abcl__aggr_001

    • mh_p_abcl__aggr_002

    • mh_p_abcl__aggr_003

    • mh_p_abcl__aggr_004

    • mh_p_abcl__aggr_005

    • mh_p_abcl__aggr_006

    • mh_p_abcl__aggr_007

    • mh_p_abcl__aggr__adhd_001

    • mh_p_abcl__aggr__antsoc_001

    • mh_p_abcl__aggr__antsoc_002

    • mh_p_abcl__aggr__antsoc_003

    • mh_p_abcl__aggr__antsoc_004

    • mh_p_abcl__aggr__antsoc_005

    • mh_p_abcl__aggr__antsoc_006

    • mh_p_abcl__aggr__antsoc_007

    • mh_p_abcl__aggr__antsoc_008

    • mh_p_abcl__rule_001

    • mh_p_abcl__rule_002

    • mh_p_abcl__rule_003

    • mh_p_abcl__rule__adhd_001

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

    • mh_p_abcl__intru_001

    • mh_p_abcl__intru_002

    • mh_p_abcl__intru_003

    • mh_p_abcl__intru_004

    • mh_p_abcl__intru_005

    • mh_p_abcl__intru_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__ext

compute_mh_p_abcl__synd__ext_nm(
  data,
  name = "mh_p_abcl__synd__ext_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.

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.

Format

vars_mh_p_abcl__synd__ext is vector of all column names used to compute summary score of mh_p_abcl__synd__ext scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__ext_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__ext_nm", vars_mh_p_abcl__synd__ext))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Internalizing): Number missing"

Description

Computes the summary score mh_p_abcl__synd__int_nm Adult Behavior Checklist [Parent] (Internalizing): Number missing

  • Summarized variables:

    • mh_p_abcl__anxdep_001

    • mh_p_abcl__anxdep_002

    • mh_p_abcl__anxdep_003

    • mh_p_abcl__anxdep_004

    • mh_p_abcl__anxdep__anx_001

    • mh_p_abcl__anxdep__anx_002

    • mh_p_abcl__anxdep__anx_003

    • mh_p_abcl__anxdep__avoid_001

    • mh_p_abcl__anxdep__avoid_002

    • mh_p_abcl__anxdep__dep_001

    • mh_p_abcl__anxdep__dep_002

    • mh_p_abcl__anxdep__dep_003

    • mh_p_abcl__anxdep__dep_004

    • mh_p_abcl__anxdep__dep_005

    • mh_p_abcl__wthdr_001

    • mh_p_abcl__wthdr_002

    • mh_p_abcl__wthdr_003

    • mh_p_abcl__wthdr_004

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

    • mh_p_abcl__wthdr__dep_001

    • mh_p_abcl__som_001

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__int

compute_mh_p_abcl__synd__int_nm(
  data,
  name = "mh_p_abcl__synd__int_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.

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.

Format

vars_mh_p_abcl__synd__int is vector of all column names used to compute summary score of mh_p_abcl__synd__int scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__int_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__int_nm", vars_mh_p_abcl__synd__int))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Intrusive): Number missing"

Description

Computes the summary score mh_p_abcl__synd__intru_nm Adult Behavior Checklist [Parent] (Syndrome Scale - Intrusive): Number missing

  • Summarized variables:

    • mh_p_abcl__intru_001

    • mh_p_abcl__intru_002

    • mh_p_abcl__intru_003

    • mh_p_abcl__intru_004

    • mh_p_abcl__intru_005

    • mh_p_abcl__intru_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__intru

compute_mh_p_abcl__synd__intru_nm(
  data,
  name = "mh_p_abcl__synd__intru_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.

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.

Format

vars_mh_p_abcl__synd__intru is vector of all column names used to compute summary score of mh_p_abcl__synd__intru scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__intru_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__intru_nm", vars_mh_p_abcl__synd__intru))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Other problems): Number missing"

Description

Computes the summary score mh_p_abcl__synd__othpr_nm Adult Behavior Checklist [Parent] (Syndrome Scale - Other problems): Number missing

  • Summarized variables:

    • mh_p_abcl__othpr_001

    • mh_p_abcl__othpr_002

    • mh_p_abcl__othpr_003

    • mh_p_abcl__othpr_004

    • mh_p_abcl__othpr_005

    • mh_p_abcl__othpr_006

    • mh_p_abcl__othpr_007

    • mh_p_abcl__othpr_008

    • mh_p_abcl__othpr_009

    • mh_p_abcl__othpr_010

    • mh_p_abcl__othpr_011

    • mh_p_abcl__othpr_012

    • mh_p_abcl__othpr__adhd_001

    • mh_p_abcl__othpr__adhd_002

    • mh_p_abcl__othpr__adhd_003

    • mh_p_abcl__othpr__adhd_004

    • mh_p_abcl__othpr__antsoc_001

    • mh_p_abcl__othpr__antsoc_002

    • mh_p_abcl__othpr__anx_001

    • mh_p_abcl__othpr__anx_002

    • mh_p_abcl__othpr__anx_003

    • mh_p_abcl__othpr__avoid_001

    • mh_p_abcl__othpr__dep_001

    • mh_p_abcl__othpr__dep_002

    • mh_p_abcl__othpr__dep_003

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__othpr

compute_mh_p_abcl__synd__othpr_nm(
  data,
  name = "mh_p_abcl__synd__othpr_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.

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.

Format

vars_mh_p_abcl__synd__othpr is vector of all column names used to compute summary score of mh_p_abcl__synd__othpr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__othpr_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__othpr_nm", vars_mh_p_abcl__synd__othpr))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): Number missing"

Description

Computes the summary score mh_p_abcl__synd__rule_nm Adult Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): Number missing

  • Summarized variables:

    • mh_p_abcl__rule_001

    • mh_p_abcl__rule_002

    • mh_p_abcl__rule_003

    • mh_p_abcl__rule__adhd_001

    • mh_p_abcl__rule__antsoc_001

    • mh_p_abcl__rule__antsoc_002

    • mh_p_abcl__rule__antsoc_003

    • mh_p_abcl__rule__antsoc_004

    • mh_p_abcl__rule__antsoc_005

    • mh_p_abcl__rule__antsoc_006

    • mh_p_abcl__rule__antsoc_007

    • mh_p_abcl__rule__antsoc_008

    • mh_p_abcl__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__rule

compute_mh_p_abcl__synd__rule_nm(
  data,
  name = "mh_p_abcl__synd__rule_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.

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.

Format

vars_mh_p_abcl__synd__rule is vector of all column names used to compute summary score of mh_p_abcl__synd__rule scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__rule_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__rule_nm", vars_mh_p_abcl__synd__rule))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): Number missing"

Description

Computes the summary score mh_p_abcl__synd__som_nm Adult Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): Number missing

  • Summarized variables:

    • mh_p_abcl__som_001

    • mh_p_abcl__som__dep_001

    • mh_p_abcl__som__somat_001

    • mh_p_abcl__som__somat_002

    • mh_p_abcl__som__somat_003

    • mh_p_abcl__som__somat_004

    • mh_p_abcl__som__somat_005

    • mh_p_abcl__som__somat_006

    • mh_p_abcl__som__somat_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__som

compute_mh_p_abcl__synd__som_nm(
  data,
  name = "mh_p_abcl__synd__som_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.

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.

Format

vars_mh_p_abcl__synd__som is vector of all column names used to compute summary score of mh_p_abcl__synd__som scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__som_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__som_nm", vars_mh_p_abcl__synd__som))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Thought problems): Number missing"

Description

Computes the summary score mh_p_abcl__synd__tho_nm Adult Behavior Checklist [Parent] (Syndrome Scale - Thought problems): Number missing

  • Summarized variables:

    • mh_p_abcl__tho_001

    • mh_p_abcl__tho_002

    • mh_p_abcl__tho_003

    • mh_p_abcl__tho_004

    • mh_p_abcl__tho_005

    • mh_p_abcl__tho_006

    • mh_p_abcl__tho_007

    • mh_p_abcl__tho__dep_001

    • mh_p_abcl__tho__dep_002

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__tho

compute_mh_p_abcl__synd__tho_nm(
  data,
  name = "mh_p_abcl__synd__tho_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.

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.

Format

vars_mh_p_abcl__synd__tho is vector of all column names used to compute summary score of mh_p_abcl__synd__tho scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__tho_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__tho_nm", vars_mh_p_abcl__synd__tho))
  )

## End(Not run)

Compute "Adult Behavior Checklist [Parent] (Syndrome Scale - Withdrawn): Number missing"

Description

Computes the summary score mh_p_abcl__synd__wthdr_nm Adult Behavior Checklist [Parent] (Syndrome Scale - Withdrawn): Number missing

  • Summarized variables:

    • mh_p_abcl__wthdr_001

    • mh_p_abcl__wthdr_002

    • mh_p_abcl__wthdr_003

    • mh_p_abcl__wthdr_004

    • mh_p_abcl__wthdr__avoid_001

    • mh_p_abcl__wthdr__avoid_002

    • mh_p_abcl__wthdr__avoid_003

    • mh_p_abcl__wthdr__avoid_004

    • mh_p_abcl__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_abcl__synd__wthdr

compute_mh_p_abcl__synd__wthdr_nm(
  data,
  name = "mh_p_abcl__synd__wthdr_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.

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.

Format

vars_mh_p_abcl__synd__wthdr is vector of all column names used to compute summary score of mh_p_abcl__synd__wthdr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_abcl__synd__wthdr_nm(data) |>
  select(
    any_of(c("mh_p_abcl__synd__wthdr_nm", vars_mh_p_abcl__synd__wthdr))
  )

## End(Not run)

Compute "Adult Self Report [Parent]: Number missing"

Description

Computes the summary score mh_p_asr_nm Adult Self Report [Parent]: Number missing

  • Summarized variables:

    • mh_p_asr__aggr_001

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_008

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__antsoc_001

    • mh_p_asr__rule_001

    • mh_p_asr__rule_003

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__tho_001

    • mh_p_asr__tho_002

    • mh_p_asr__tho_005

    • mh_p_asr__tho_006

    • mh_p_asr__tho_007

    • mh_p_asr__tho__dep_001

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__othpr__hypimp_002

    • mh_p_asr__othpr__hypimp_003

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__tho__hypimp_001

    • mh_p_asr__attn__inatt_001

    • mh_p_asr__attn__inatt_003

    • mh_p_asr__attn__inatt_004

    • mh_p_asr__attn__inatt_005

    • mh_p_asr__attn__inatt_006

    • mh_p_asr__attn__inatt_007

    • mh_p_asr__aggr__antsoc_001

    • mh_p_asr__aggr__antsoc_002

    • mh_p_asr__aggr__antsoc_004

    • mh_p_asr__aggr__antsoc_005

    • mh_p_asr__aggr__antsoc_007

    • mh_p_asr__attn__antsoc_001

    • mh_p_asr__othpr__antsoc_002

    • mh_p_asr__rule__antsoc_001

    • mh_p_asr__rule__antsoc_002

    • mh_p_asr__rule__antsoc_003

    • mh_p_asr__rule__antsoc_004

    • mh_p_asr__rule__antsoc_005

    • mh_p_asr__rule__antsoc_006

    • mh_p_asr__rule__antsoc_008

    • mh_p_asr__rule__antsoc_009

    • mh_p_asr__anxdep__anx_001

    • mh_p_asr__anxdep__anx_002

    • mh_p_asr__anxdep__anx_003

    • mh_p_asr__anxdep__anx_004

    • mh_p_asr__othpr__anx_001

    • mh_p_asr__othpr__anx_002

    • mh_p_asr__anxdep__avoid_001

    • mh_p_asr__anxdep__avoid_002

    • mh_p_asr__othpr__avoid_001

    • mh_p_asr__wthdr__avoid_001

    • mh_p_asr__wthdr__avoid_002

    • mh_p_asr__wthdr__avoid_003

    • mh_p_asr__wthdr__avoid_004

    • mh_p_asr__anxdep__dep_002

    • mh_p_asr__anxdep__dep_003

    • mh_p_asr__anxdep__dep_006

    • mh_p_asr__attn__dep_001

    • mh_p_asr__attn__dep_002

    • mh_p_asr__othpr__dep_001

    • mh_p_asr__othpr__dep_002

    • mh_p_asr__som__dep_001

    • mh_p_asr__som__dep_002

    • mh_p_asr__wthdr__dep_001

    • mh_p_asr__som__somat_001

    • mh_p_asr__som__somat_002

    • mh_p_asr__som__somat_003

    • mh_p_asr__som__somat_004

    • mh_p_asr__som__somat_005

    • mh_p_asr__som__somat_006

    • mh_p_asr__som__somat_007

    • mh_p_asr__som__somat_008

    • mh_p_asr__som__somat_009

    • mh_p_asr__aggr_002

    • mh_p_asr__aggr_003

    • mh_p_asr__aggr_004

    • mh_p_asr__aggr_005

    • mh_p_asr__aggr_006

    • mh_p_asr__anxdep_001

    • mh_p_asr__anxdep_002

    • mh_p_asr__anxdep_003

    • mh_p_asr__anxdep_004

    • mh_p_asr__anxdep_005

    • mh_p_asr__anxdep_006

    • mh_p_asr__attn_001

    • mh_p_asr__attn_002

    • mh_p_asr__attn_003

    • mh_p_asr__attn_004

    • mh_p_asr__attn_005

    • mh_p_asr__intru_001

    • mh_p_asr__intru_002

    • mh_p_asr__intru_003

    • mh_p_asr__intru_004

    • mh_p_asr__intru_005

    • mh_p_asr__intru_006

    • mh_p_asr__rule_002

    • mh_p_asr__rule_004

    • mh_p_asr__som_001

    • mh_p_asr__wthdr_001

    • mh_p_asr__wthdr_002

    • mh_p_asr__wthdr_003

    • mh_p_asr__wthdr_004

    • mh_p_asr__othpr_001

    • mh_p_asr__othpr_002

    • mh_p_asr__othpr_003

    • mh_p_asr__othpr_004

    • mh_p_asr__othpr_005

    • mh_p_asr__othpr_006

    • mh_p_asr__othpr_007

    • mh_p_asr__othpr_008

    • mh_p_asr__othpr_009

    • mh_p_asr__othpr_010

    • mh_p_asr__othpr_011

    • mh_p_asr__tho_003

    • mh_p_asr__tho_004

    • mh_p_asr__tho_008

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr

compute_mh_p_asr_nm(
  data,
  name = "mh_p_asr_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.

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.

Format

vars_mh_p_asr is vector of all column names used to compute summary score of mh_p_asr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr_nm(data) |>
  select(
    any_of(c("mh_p_asr_nm", vars_mh_p_asr))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Adaptive Functioning Scale - Personal strength): Number missing"

Description

Computes the summary score mh_p_asr__afs__strng_nm Adult Self Report [Parent] (Adaptive Functioning Scale - Personal strength): Number missing

  • Summarized variables:

    • mh_p_asr__strng_001

    • mh_p_asr__strng_002

    • mh_p_asr__strng_003

    • mh_p_asr__strng_004

    • mh_p_asr__strng_005

    • mh_p_asr__strng_006

    • mh_p_asr__strng_007

    • mh_p_asr__strng_008

    • mh_p_asr__strng_009

    • mh_p_asr__strng_010

    • mh_p_asr__strng_011

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__afs__strng

compute_mh_p_asr__afs__strng_nm(
  data,
  name = "mh_p_asr__afs__strng_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.

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.

Format

vars_mh_p_asr__afs__strng is vector of all column names used to compute summary score of mh_p_asr__afs__strng scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__afs__strng_nm(data) |>
  select(
    any_of(c("mh_p_asr__afs__strng_nm", vars_mh_p_asr__afs__strng))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Critical Items): Number missing"

Description

Computes the summary score mh_p_asr__critic_nm Adult Self Report [Parent] (Critical Items): Number missing

  • Summarized variables:

    • mh_p_asr__aggr_001

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_008

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__antsoc_001

    • mh_p_asr__rule_001

    • mh_p_asr__rule_003

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__tho_001

    • mh_p_asr__tho_002

    • mh_p_asr__tho_005

    • mh_p_asr__tho_006

    • mh_p_asr__tho_007

    • mh_p_asr__tho__dep_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__critic

compute_mh_p_asr__critic_nm(
  data,
  name = "mh_p_asr__critic_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.

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.

Format

vars_mh_p_asr__critic is vector of all column names used to compute summary score of mh_p_asr__critic scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__critic_nm(data) |>
  select(
    any_of(c("mh_p_asr__critic_nm", vars_mh_p_asr__critic))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD): Number missing"

Description

Computes the summary score mh_p_asr__dsm__adhd_nm Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD): Number missing

  • Summarized variables:

    • mh_p_asr__attn__inatt_001

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__attn__inatt_003

    • mh_p_asr__attn__inatt_004

    • mh_p_asr__attn__inatt_005

    • mh_p_asr__attn__inatt_006

    • mh_p_asr__attn__inatt_007

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__hypimp_002

    • mh_p_asr__othpr__hypimp_003

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__tho__hypimp_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__dsm__adhd

compute_mh_p_asr__dsm__adhd_nm(
  data,
  name = "mh_p_asr__dsm__adhd_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.

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.

Format

vars_mh_p_asr__dsm__adhd is vector of all column names used to compute summary score of mh_p_asr__dsm__adhd scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__dsm__adhd_nm(data) |>
  select(
    any_of(c("mh_p_asr__dsm__adhd_nm", vars_mh_p_asr__dsm__adhd))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD Hyperactivity-Impulsivity): Number missing"

Description

Computes the summary score mh_p_asr__dsm__adhd__hypimp_nm Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD Hyperactivity-Impulsivity): Number missing

  • Summarized variables:

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__hypimp_002

    • mh_p_asr__othpr__hypimp_003

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__tho__hypimp_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__dsm__adhd__hypimp

compute_mh_p_asr__dsm__adhd__hypimp_nm(
  data,
  name = "mh_p_asr__dsm__adhd__hypimp_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.

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.

Format

vars_mh_p_asr__dsm__adhd__hypimp is vector of all column names used to compute summary score of mh_p_asr__dsm__adhd__hypimp scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__dsm__adhd__hypimp_nm(data) |>
  select(
    any_of(c("mh_p_asr__dsm__adhd__hypimp_nm", vars_mh_p_asr__dsm__adhd__hypimp))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD Inattention): Number missing"

Description

Computes the summary score mh_p_asr__dsm__adhd__inatt_nm Adult Self Report [Parent] (DSM-5 Oriented Scale - ADHD Inattention): Number missing

  • Summarized variables:

    • mh_p_asr__attn__inatt_001

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__attn__inatt_003

    • mh_p_asr__attn__inatt_004

    • mh_p_asr__attn__inatt_005

    • mh_p_asr__attn__inatt_006

    • mh_p_asr__attn__inatt_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__dsm__adhd__inatt

compute_mh_p_asr__dsm__adhd__inatt_nm(
  data,
  name = "mh_p_asr__dsm__adhd__inatt_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.

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.

Format

vars_mh_p_asr__dsm__adhd__inatt is vector of all column names used to compute summary score of mh_p_asr__dsm__adhd__inatt scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__dsm__adhd__inatt_nm(data) |>
  select(
    any_of(c("mh_p_asr__dsm__adhd__inatt_nm", vars_mh_p_asr__dsm__adhd__inatt))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): Number missing"

Description

Computes the summary score mh_p_asr__dsm__antsoc_nm Adult Self Report [Parent] (DSM-5 Oriented Scale - Antisocial personality problems): Number missing

  • Summarized variables:

    • mh_p_asr__aggr__antsoc_001

    • mh_p_asr__aggr__antsoc_002

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_004

    • mh_p_asr__aggr__antsoc_005

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_007

    • mh_p_asr__aggr__antsoc_008

    • mh_p_asr__attn__antsoc_001

    • mh_p_asr__othpr__antsoc_001

    • mh_p_asr__othpr__antsoc_002

    • mh_p_asr__rule__antsoc_001

    • mh_p_asr__rule__antsoc_002

    • mh_p_asr__rule__antsoc_003

    • mh_p_asr__rule__antsoc_004

    • mh_p_asr__rule__antsoc_005

    • mh_p_asr__rule__antsoc_006

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__rule__antsoc_008

    • mh_p_asr__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__dsm__antsoc

compute_mh_p_asr__dsm__antsoc_nm(
  data,
  name = "mh_p_asr__dsm__antsoc_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.

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.

Format

vars_mh_p_asr__dsm__antsoc is vector of all column names used to compute summary score of mh_p_asr__dsm__antsoc scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__dsm__antsoc_nm(data) |>
  select(
    any_of(c("mh_p_asr__dsm__antsoc_nm", vars_mh_p_asr__dsm__antsoc))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Anxiety problems): Number missing"

Description

Computes the summary score mh_p_asr__dsm__anx_nm Adult Self Report [Parent] (DSM-5 Oriented Scale - Anxiety problems): Number missing

  • Summarized variables:

    • mh_p_asr__anxdep__anx_001

    • mh_p_asr__anxdep__anx_002

    • mh_p_asr__anxdep__anx_003

    • mh_p_asr__anxdep__anx_004

    • mh_p_asr__othpr__anx_001

    • mh_p_asr__othpr__anx_002

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__dsm__anx

compute_mh_p_asr__dsm__anx_nm(
  data,
  name = "mh_p_asr__dsm__anx_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.

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.

Format

vars_mh_p_asr__dsm__anx is vector of all column names used to compute summary score of mh_p_asr__dsm__anx scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__dsm__anx_nm(data) |>
  select(
    any_of(c("mh_p_asr__dsm__anx_nm", vars_mh_p_asr__dsm__anx))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): Number missing"

Description

Computes the summary score mh_p_asr__dsm__avoid_nm Adult Self Report [Parent] (DSM-5 Oriented Scale - Avoidant personality problems): Number missing

  • Summarized variables:

    • mh_p_asr__anxdep__avoid_001

    • mh_p_asr__anxdep__avoid_002

    • mh_p_asr__othpr__avoid_001

    • mh_p_asr__wthdr__avoid_001

    • mh_p_asr__wthdr__avoid_002

    • mh_p_asr__wthdr__avoid_003

    • mh_p_asr__wthdr__avoid_004

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__dsm__avoid

compute_mh_p_asr__dsm__avoid_nm(
  data,
  name = "mh_p_asr__dsm__avoid_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.

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.

Format

vars_mh_p_asr__dsm__avoid is vector of all column names used to compute summary score of mh_p_asr__dsm__avoid scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__dsm__avoid_nm(data) |>
  select(
    any_of(c("mh_p_asr__dsm__avoid_nm", vars_mh_p_asr__dsm__avoid))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Depresssive problems): Number missing"

Description

Computes the summary score mh_p_asr__dsm__dep_nm Adult Self Report [Parent] (DSM-5 Oriented Scale - Depresssive problems): Number missing

  • Summarized variables:

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_002

    • mh_p_asr__anxdep__dep_003

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__anxdep__dep_006

    • mh_p_asr__attn__dep_001

    • mh_p_asr__attn__dep_002

    • mh_p_asr__othpr__dep_001

    • mh_p_asr__othpr__dep_002

    • mh_p_asr__som__dep_001

    • mh_p_asr__som__dep_002

    • mh_p_asr__tho__dep_001

    • mh_p_asr__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__dsm__dep

compute_mh_p_asr__dsm__dep_nm(
  data,
  name = "mh_p_asr__dsm__dep_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.

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.

Format

vars_mh_p_asr__dsm__dep is vector of all column names used to compute summary score of mh_p_asr__dsm__dep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__dsm__dep_nm(data) |>
  select(
    any_of(c("mh_p_asr__dsm__dep_nm", vars_mh_p_asr__dsm__dep))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (DSM-5 Oriented Scale - Somatic complaints): Number missing"

Description

Computes the summary score mh_p_asr__dsm__somat_nm Adult Self Report [Parent] (DSM-5 Oriented Scale - Somatic complaints): Number missing

  • Summarized variables:

    • mh_p_asr__som__somat_001

    • mh_p_asr__som__somat_002

    • mh_p_asr__som__somat_003

    • mh_p_asr__som__somat_004

    • mh_p_asr__som__somat_005

    • mh_p_asr__som__somat_006

    • mh_p_asr__som__somat_007

    • mh_p_asr__som__somat_008

    • mh_p_asr__som__somat_009

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__dsm__somat

compute_mh_p_asr__dsm__somat_nm(
  data,
  name = "mh_p_asr__dsm__somat_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.

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.

Format

vars_mh_p_asr__dsm__somat is vector of all column names used to compute summary score of mh_p_asr__dsm__somat scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__dsm__somat_nm(data) |>
  select(
    any_of(c("mh_p_asr__dsm__somat_nm", vars_mh_p_asr__dsm__somat))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Aggressive Behavior): Number missing"

Description

Computes the summary score mh_p_asr__synd__aggr_nm Adult Self Report [Parent] (Syndrome Scale - Aggressive Behavior): Number missing

  • Summarized variables:

    • mh_p_asr__aggr_001

    • mh_p_asr__aggr_002

    • mh_p_asr__aggr_003

    • mh_p_asr__aggr_004

    • mh_p_asr__aggr_005

    • mh_p_asr__aggr_006

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__aggr__antsoc_001

    • mh_p_asr__aggr__antsoc_002

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_004

    • mh_p_asr__aggr__antsoc_005

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_007

    • mh_p_asr__aggr__antsoc_008

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__aggr

compute_mh_p_asr__synd__aggr_nm(
  data,
  name = "mh_p_asr__synd__aggr_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.

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.

Format

vars_mh_p_asr__synd__aggr is vector of all column names used to compute summary score of mh_p_asr__synd__aggr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__aggr_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__aggr_nm", vars_mh_p_asr__synd__aggr))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Anxious/Depressed): Number missing"

Description

Computes the summary score mh_p_asr__synd__anxdep_nm Adult Self Report [Parent] (Syndrome Scale - Anxious/Depressed): Number missing

  • Summarized variables:

    • mh_p_asr__anxdep_001

    • mh_p_asr__anxdep_002

    • mh_p_asr__anxdep_003

    • mh_p_asr__anxdep_004

    • mh_p_asr__anxdep_005

    • mh_p_asr__anxdep_006

    • mh_p_asr__anxdep__anx_001

    • mh_p_asr__anxdep__anx_002

    • mh_p_asr__anxdep__anx_003

    • mh_p_asr__anxdep__anx_004

    • mh_p_asr__anxdep__avoid_001

    • mh_p_asr__anxdep__avoid_002

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_002

    • mh_p_asr__anxdep__dep_003

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__anxdep__dep_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__anxdep

compute_mh_p_asr__synd__anxdep_nm(
  data,
  name = "mh_p_asr__synd__anxdep_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.

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.

Format

vars_mh_p_asr__synd__anxdep is vector of all column names used to compute summary score of mh_p_asr__synd__anxdep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__anxdep_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__anxdep_nm", vars_mh_p_asr__synd__anxdep))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Attention problems): Number missing"

Description

Computes the summary score mh_p_asr__synd__attn_nm Adult Self Report [Parent] (Syndrome Scale - Attention problems): Number missing

  • Summarized variables:

    • mh_p_asr__attn_001

    • mh_p_asr__attn_002

    • mh_p_asr__attn_003

    • mh_p_asr__attn_004

    • mh_p_asr__attn_005

    • mh_p_asr__attn__inatt_001

    • mh_p_asr__attn__inatt_002

    • mh_p_asr__attn__inatt_003

    • mh_p_asr__attn__inatt_004

    • mh_p_asr__attn__inatt_005

    • mh_p_asr__attn__inatt_006

    • mh_p_asr__attn__inatt_007

    • mh_p_asr__attn__antsoc_001

    • mh_p_asr__attn__dep_001

    • mh_p_asr__attn__dep_002

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__attn

compute_mh_p_asr__synd__attn_nm(
  data,
  name = "mh_p_asr__synd__attn_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.

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.

Format

vars_mh_p_asr__synd__attn is vector of all column names used to compute summary score of mh_p_asr__synd__attn scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__attn_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__attn_nm", vars_mh_p_asr__synd__attn))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Externalizing): Number missing"

Description

Computes the summary score mh_p_asr__synd__ext_nm Adult Self Report [Parent] (Syndrome Scale - Externalizing): Number missing

  • Summarized variables:

    • mh_p_asr__intru_001

    • mh_p_asr__intru_002

    • mh_p_asr__intru_003

    • mh_p_asr__intru_004

    • mh_p_asr__intru_005

    • mh_p_asr__intru_006

    • mh_p_asr__rule_001

    • mh_p_asr__rule_002

    • mh_p_asr__rule_003

    • mh_p_asr__rule_004

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__rule__antsoc_001

    • mh_p_asr__rule__antsoc_002

    • mh_p_asr__rule__antsoc_003

    • mh_p_asr__rule__antsoc_004

    • mh_p_asr__rule__antsoc_005

    • mh_p_asr__rule__antsoc_006

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__rule__antsoc_008

    • mh_p_asr__rule__antsoc_009

    • mh_p_asr__aggr_001

    • mh_p_asr__aggr_002

    • mh_p_asr__aggr_003

    • mh_p_asr__aggr_004

    • mh_p_asr__aggr_005

    • mh_p_asr__aggr_006

    • mh_p_asr__aggr__hypimp_001

    • mh_p_asr__aggr__antsoc_001

    • mh_p_asr__aggr__antsoc_002

    • mh_p_asr__aggr__antsoc_003

    • mh_p_asr__aggr__antsoc_004

    • mh_p_asr__aggr__antsoc_005

    • mh_p_asr__aggr__antsoc_006

    • mh_p_asr__aggr__antsoc_007

    • mh_p_asr__aggr__antsoc_008

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__ext

compute_mh_p_asr__synd__ext_nm(
  data,
  name = "mh_p_asr__synd__ext_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.

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.

Format

vars_mh_p_asr__synd__ext is vector of all column names used to compute summary score of mh_p_asr__synd__ext scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__ext_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__ext_nm", vars_mh_p_asr__synd__ext))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Internalizing): Number missing"

Description

Computes the summary score mh_p_asr__synd__int_nm Adult Self Report [Parent] (Syndrome Scale - Internalizing): Number missing

  • Summarized variables:

    • mh_p_asr__anxdep_001

    • mh_p_asr__anxdep_002

    • mh_p_asr__anxdep_003

    • mh_p_asr__anxdep_004

    • mh_p_asr__anxdep_005

    • mh_p_asr__anxdep_006

    • mh_p_asr__anxdep__anx_001

    • mh_p_asr__anxdep__anx_002

    • mh_p_asr__anxdep__anx_003

    • mh_p_asr__anxdep__anx_004

    • mh_p_asr__anxdep__avoid_001

    • mh_p_asr__anxdep__avoid_002

    • mh_p_asr__anxdep__dep_001

    • mh_p_asr__anxdep__dep_002

    • mh_p_asr__anxdep__dep_003

    • mh_p_asr__anxdep__dep_004

    • mh_p_asr__anxdep__dep_005

    • mh_p_asr__anxdep__dep_006

    • mh_p_asr__som_001

    • mh_p_asr__som__dep_001

    • mh_p_asr__som__dep_002

    • mh_p_asr__som__somat_001

    • mh_p_asr__som__somat_002

    • mh_p_asr__som__somat_003

    • mh_p_asr__som__somat_004

    • mh_p_asr__som__somat_005

    • mh_p_asr__som__somat_006

    • mh_p_asr__som__somat_007

    • mh_p_asr__som__somat_008

    • mh_p_asr__som__somat_009

    • mh_p_asr__wthdr_001

    • mh_p_asr__wthdr_002

    • mh_p_asr__wthdr_003

    • mh_p_asr__wthdr_004

    • mh_p_asr__wthdr__avoid_001

    • mh_p_asr__wthdr__avoid_002

    • mh_p_asr__wthdr__avoid_003

    • mh_p_asr__wthdr__avoid_004

    • mh_p_asr__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__int

compute_mh_p_asr__synd__int_nm(
  data,
  name = "mh_p_asr__synd__int_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.

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.

Format

vars_mh_p_asr__synd__int is vector of all column names used to compute summary score of mh_p_asr__synd__int scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__int_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__int_nm", vars_mh_p_asr__synd__int))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Intrusive): Number missing"

Description

Computes the summary score mh_p_asr__synd__intru_nm Adult Self Report [Parent] (Syndrome Scale - Intrusive): Number missing

  • Summarized variables:

    • mh_p_asr__intru_001

    • mh_p_asr__intru_002

    • mh_p_asr__intru_003

    • mh_p_asr__intru_004

    • mh_p_asr__intru_005

    • mh_p_asr__intru_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__intru

compute_mh_p_asr__synd__intru_nm(
  data,
  name = "mh_p_asr__synd__intru_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.

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.

Format

vars_mh_p_asr__synd__intru is vector of all column names used to compute summary score of mh_p_asr__synd__intru scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__intru_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__intru_nm", vars_mh_p_asr__synd__intru))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Other problems): Number missing"

Description

Computes the summary score mh_p_asr__synd__othpr_nm Adult Self Report [Parent] (Syndrome Scale - Other problems): Number missing

  • Summarized variables:

    • mh_p_asr__othpr_001

    • mh_p_asr__othpr_002

    • mh_p_asr__othpr_003

    • mh_p_asr__othpr_004

    • mh_p_asr__othpr_005

    • mh_p_asr__othpr_006

    • mh_p_asr__othpr_007

    • mh_p_asr__othpr_008

    • mh_p_asr__othpr_009

    • mh_p_asr__othpr_010

    • mh_p_asr__othpr_011

    • mh_p_asr__othpr__hypimp_001

    • mh_p_asr__othpr__hypimp_002

    • mh_p_asr__othpr__hypimp_003

    • mh_p_asr__othpr__antsoc_001

    • mh_p_asr__othpr__antsoc_002

    • mh_p_asr__othpr__anx_001

    • mh_p_asr__othpr__anx_002

    • mh_p_asr__othpr__avoid_001

    • mh_p_asr__othpr__dep_001

    • mh_p_asr__othpr__dep_002

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__othpr

compute_mh_p_asr__synd__othpr_nm(
  data,
  name = "mh_p_asr__synd__othpr_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.

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.

Format

vars_mh_p_asr__synd__othpr is vector of all column names used to compute summary score of mh_p_asr__synd__othpr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__othpr_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__othpr_nm", vars_mh_p_asr__synd__othpr))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Rule breaking behavior): Number missing"

Description

Computes the summary score mh_p_asr__synd__rule_nm Adult Self Report [Parent] (Syndrome Scale - Rule breaking behavior): Number missing

  • Summarized variables:

    • mh_p_asr__rule_001

    • mh_p_asr__rule_002

    • mh_p_asr__rule_003

    • mh_p_asr__rule_004

    • mh_p_asr__rule__hypimp_001

    • mh_p_asr__rule__antsoc_001

    • mh_p_asr__rule__antsoc_002

    • mh_p_asr__rule__antsoc_003

    • mh_p_asr__rule__antsoc_004

    • mh_p_asr__rule__antsoc_005

    • mh_p_asr__rule__antsoc_006

    • mh_p_asr__rule__antsoc_007

    • mh_p_asr__rule__antsoc_008

    • mh_p_asr__rule__antsoc_009

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__rule

compute_mh_p_asr__synd__rule_nm(
  data,
  name = "mh_p_asr__synd__rule_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.

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.

Format

vars_mh_p_asr__synd__rule is vector of all column names used to compute summary score of mh_p_asr__synd__rule scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__rule_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__rule_nm", vars_mh_p_asr__synd__rule))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Somatic complaints): Number missing"

Description

Computes the summary score mh_p_asr__synd__som_nm Adult Self Report [Parent] (Syndrome Scale - Somatic complaints): Number missing

  • Summarized variables:

    • mh_p_asr__som_001

    • mh_p_asr__som__dep_001

    • mh_p_asr__som__dep_002

    • mh_p_asr__som__somat_001

    • mh_p_asr__som__somat_002

    • mh_p_asr__som__somat_003

    • mh_p_asr__som__somat_004

    • mh_p_asr__som__somat_005

    • mh_p_asr__som__somat_006

    • mh_p_asr__som__somat_007

    • mh_p_asr__som__somat_008

    • mh_p_asr__som__somat_009

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__som

compute_mh_p_asr__synd__som_nm(
  data,
  name = "mh_p_asr__synd__som_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.

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.

Format

vars_mh_p_asr__synd__som is vector of all column names used to compute summary score of mh_p_asr__synd__som scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__som_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__som_nm", vars_mh_p_asr__synd__som))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Thought problems): Number missing"

Description

Computes the summary score mh_p_asr__synd__tho_nm Adult Self Report [Parent] (Syndrome Scale - Thought problems): Number missing

  • Summarized variables:

    • mh_p_asr__tho_001

    • mh_p_asr__tho_002

    • mh_p_asr__tho_003

    • mh_p_asr__tho_004

    • mh_p_asr__tho_005

    • mh_p_asr__tho_006

    • mh_p_asr__tho_007

    • mh_p_asr__tho_008

    • mh_p_asr__tho__hypimp_001

    • mh_p_asr__tho__dep_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__tho

compute_mh_p_asr__synd__tho_nm(
  data,
  name = "mh_p_asr__synd__tho_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.

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.

Format

vars_mh_p_asr__synd__tho is vector of all column names used to compute summary score of mh_p_asr__synd__tho scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__tho_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__tho_nm", vars_mh_p_asr__synd__tho))
  )

## End(Not run)

Compute "Adult Self Report [Parent] (Syndrome Scale - Withdrawn): Number missing"

Description

Computes the summary score mh_p_asr__synd__wthdr_nm Adult Self Report [Parent] (Syndrome Scale - Withdrawn): Number missing

  • Summarized variables:

    • mh_p_asr__wthdr_001

    • mh_p_asr__wthdr_002

    • mh_p_asr__wthdr_003

    • mh_p_asr__wthdr_004

    • mh_p_asr__wthdr__avoid_001

    • mh_p_asr__wthdr__avoid_002

    • mh_p_asr__wthdr__avoid_003

    • mh_p_asr__wthdr__avoid_004

    • mh_p_asr__wthdr__dep_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_asr__synd__wthdr

compute_mh_p_asr__synd__wthdr_nm(
  data,
  name = "mh_p_asr__synd__wthdr_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.

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.

Format

vars_mh_p_asr__synd__wthdr is vector of all column names used to compute summary score of mh_p_asr__synd__wthdr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_asr__synd__wthdr_nm(data) |>
  select(
    any_of(c("mh_p_asr__synd__wthdr_nm", vars_mh_p_asr__synd__wthdr))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale): Number missing"

Description

Computes the summary score mh_p_cbcl_nm Child Behavior Checklist [Parent] (Syndrome Scale): Number missing

  • Summarized variables:

    • mh_p_cbcl__attn__adhd_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__attn__adhd_003

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__attn__adhd_004

    • mh_p_cbcl__attn__adhd_005

    • mh_p_cbcl__othpr__adhd_001

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__anx_006

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__othpr__cond_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__aggr__cond_005

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__tho__dep_003

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__tho__dep_001

    • mh_p_cbcl__othpr__dep_001

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__tho__dep_002

    • mh_p_cbcl__othpr__dep_002

    • mh_p_cbcl__anxdep__dep_004

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr__opp_005

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__tho_007

    • mh_p_cbcl__tho_010

    • mh_p_cbcl__tho_011

    • mh_p_cbcl__attn_002

    • mh_p_cbcl__attn_003

    • mh_p_cbcl__attn_005

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__soc_004

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__aggr_004

    • mh_p_cbcl__aggr_001

    • mh_p_cbcl__aggr_002

    • mh_p_cbcl__aggr_003

    • mh_p_cbcl__aggr_005

    • mh_p_cbcl__aggr_006

    • mh_p_cbcl__aggr_007

    • mh_p_cbcl__anxdep_002

    • mh_p_cbcl__attn_001

    • mh_p_cbcl__attn_004

    • mh_p_cbcl__rule_001

    • mh_p_cbcl__rule_006

    • mh_p_cbcl__rule_002

    • mh_p_cbcl__rule_003

    • mh_p_cbcl__rule_004

    • mh_p_cbcl__rule_005

    • mh_p_cbcl__wthdep_001

    • mh_p_cbcl__wthdep_002

    • mh_p_cbcl__wthdep_004

    • mh_p_cbcl__som_001

    • mh_p_cbcl__som_002

    • mh_p_cbcl__othpr_001

    • mh_p_cbcl__othpr_002

    • mh_p_cbcl__othpr_009

    • mh_p_cbcl__othpr_010

    • mh_p_cbcl__othpr_011

    • mh_p_cbcl__othpr_012

    • mh_p_cbcl__othpr_003

    • mh_p_cbcl__othpr_004

    • mh_p_cbcl__othpr_005

    • mh_p_cbcl__othpr_006

    • mh_p_cbcl__othpr_007

    • mh_p_cbcl__othpr_008

    • mh_p_cbcl__soc_001

    • mh_p_cbcl__soc_002

    • mh_p_cbcl__soc_003

    • mh_p_cbcl__soc_005

    • mh_p_cbcl__soc_006

    • mh_p_cbcl__soc_007

    • mh_p_cbcl__soc_008

    • mh_p_cbcl__soc_009

    • mh_p_cbcl__soc_010

    • mh_p_cbcl__tho_002

    • mh_p_cbcl__tho_003

    • mh_p_cbcl__tho_004

    • mh_p_cbcl__tho_005

    • mh_p_cbcl__tho_006

    • mh_p_cbcl__tho_008

    • mh_p_cbcl__tho_009

    • mh_p_cbcl__tho_012

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl

compute_mh_p_cbcl_nm(
  data,
  name = "mh_p_cbcl_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.

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.

Format

vars_mh_p_cbcl is vector of all column names used to compute summary score of mh_p_cbcl scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl_nm(data) |>
  select(
    any_of(c("mh_p_cbcl_nm", vars_mh_p_cbcl))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): Number missing"

Description

Computes the summary score mh_p_cbcl__dsm__adhd_nm Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - ADHD): Number missing

  • Summarized variables:

    • mh_p_cbcl__attn__adhd_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__attn__adhd_003

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__attn__adhd_004

    • mh_p_cbcl__attn__adhd_005

    • mh_p_cbcl__othpr__adhd_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__dsm__adhd

compute_mh_p_cbcl__dsm__adhd_nm(
  data,
  name = "mh_p_cbcl__dsm__adhd_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.

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.

Format

vars_mh_p_cbcl__dsm__adhd is vector of all column names used to compute summary score of mh_p_cbcl__dsm__adhd scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__dsm__adhd_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__adhd_nm", vars_mh_p_cbcl__dsm__adhd))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety): Number missing"

Description

Computes the summary score mh_p_cbcl__dsm__anx_nm Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Anxiety): Number missing

  • Summarized variables:

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__anx_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__dsm__anx

compute_mh_p_cbcl__dsm__anx_nm(
  data,
  name = "mh_p_cbcl__dsm__anx_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.

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.

Format

vars_mh_p_cbcl__dsm__anx is vector of all column names used to compute summary score of mh_p_cbcl__dsm__anx scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__dsm__anx_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__anx_nm", vars_mh_p_cbcl__dsm__anx))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Conduct problems): Number missing"

Description

Computes the summary score mh_p_cbcl__dsm__cond_nm Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Conduct problems): Number missing

  • Summarized variables:

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__othpr__cond_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__aggr__cond_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__dsm__cond

compute_mh_p_cbcl__dsm__cond_nm(
  data,
  name = "mh_p_cbcl__dsm__cond_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.

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.

Format

vars_mh_p_cbcl__dsm__cond is vector of all column names used to compute summary score of mh_p_cbcl__dsm__cond scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__dsm__cond_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__cond_nm", vars_mh_p_cbcl__dsm__cond))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): Number missing"

Description

Computes the summary score mh_p_cbcl__dsm__dep_nm Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Depressive problems): Number missing

  • Summarized variables:

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__tho__dep_003

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__tho__dep_001

    • mh_p_cbcl__othpr__dep_001

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__tho__dep_002

    • mh_p_cbcl__othpr__dep_002

    • mh_p_cbcl__anxdep__dep_004

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__dsm__dep

compute_mh_p_cbcl__dsm__dep_nm(
  data,
  name = "mh_p_cbcl__dsm__dep_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.

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.

Format

vars_mh_p_cbcl__dsm__dep is vector of all column names used to compute summary score of mh_p_cbcl__dsm__dep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__dsm__dep_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__dep_nm", vars_mh_p_cbcl__dsm__dep))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Oppositional Defiant problems): Number missing"

Description

Computes the summary score mh_p_cbcl__dsm__opp_nm Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Oppositional Defiant problems): Number missing

  • Summarized variables:

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr__opp_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__dsm__opp

compute_mh_p_cbcl__dsm__opp_nm(
  data,
  name = "mh_p_cbcl__dsm__opp_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.

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.

Format

vars_mh_p_cbcl__dsm__opp is vector of all column names used to compute summary score of mh_p_cbcl__dsm__opp scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__dsm__opp_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__opp_nm", vars_mh_p_cbcl__dsm__opp))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): Number missing"

Description

Computes the summary score mh_p_cbcl__dsm__somat_nm Child Behavior Checklist [Parent] (DSM-5 Oriented Scale - Somatic complaints): Number missing

  • Summarized variables:

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__dsm__somat

compute_mh_p_cbcl__dsm__somat_nm(
  data,
  name = "mh_p_cbcl__dsm__somat_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.

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.

Format

vars_mh_p_cbcl__dsm__somat is vector of all column names used to compute summary score of mh_p_cbcl__dsm__somat scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__dsm__somat_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__dsm__somat_nm", vars_mh_p_cbcl__dsm__somat))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Obsessive-Compulsive Problems): Number missing"

Description

Computes the summary score mh_p_cbcl__ocd_nm Child Behavior Checklist [Parent] (Obsessive-Compulsive Problems): Number missing

  • Summarized variables:

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__tho_007

    • mh_p_cbcl__tho_010

    • mh_p_cbcl__tho_011

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__ocd

compute_mh_p_cbcl__ocd_nm(
  data,
  name = "mh_p_cbcl__ocd_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.

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.

Format

vars_mh_p_cbcl__ocd is vector of all column names used to compute summary score of mh_p_cbcl__ocd scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__ocd_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__ocd_nm", vars_mh_p_cbcl__ocd))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Sluggish Cognitive Tempo): Number missing"

Description

Computes the summary score mh_p_cbcl__sct_nm Child Behavior Checklist [Parent] (Sluggish Cognitive Tempo): Number missing

  • Summarized variables:

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__attn_002

    • mh_p_cbcl__attn_003

    • mh_p_cbcl__attn_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__sct

compute_mh_p_cbcl__sct_nm(
  data,
  name = "mh_p_cbcl__sct_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.

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.

Format

vars_mh_p_cbcl__sct is vector of all column names used to compute summary score of mh_p_cbcl__sct scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__sct_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__sct_nm", vars_mh_p_cbcl__sct))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Stress): Number missing"

Description

Computes the summary score mh_p_cbcl__strs_nm Child Behavior Checklist [Parent] (Stress): Number missing

  • Summarized variables:

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__soc_004

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__aggr_004

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__strs

compute_mh_p_cbcl__strs_nm(
  data,
  name = "mh_p_cbcl__strs_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.

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.

Format

vars_mh_p_cbcl__strs is vector of all column names used to compute summary score of mh_p_cbcl__strs scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__strs_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__strs_nm", vars_mh_p_cbcl__strs))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__aggr_nm Child Behavior Checklist [Parent] (Syndrome Scale - Aggressive behavior): Number missing

  • Summarized variables:

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr_001

    • mh_p_cbcl__aggr_002

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__aggr_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr_004

    • mh_p_cbcl__aggr_005

    • mh_p_cbcl__aggr_006

    • mh_p_cbcl__aggr_007

    • mh_p_cbcl__aggr__opp_005

    • mh_p_cbcl__aggr__cond_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__aggr

compute_mh_p_cbcl__synd__aggr_nm(
  data,
  name = "mh_p_cbcl__synd__aggr_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.

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.

Format

vars_mh_p_cbcl__synd__aggr is vector of all column names used to compute summary score of mh_p_cbcl__synd__aggr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__aggr_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__aggr_nm", vars_mh_p_cbcl__synd__aggr))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__anxdep_nm Child Behavior Checklist [Parent] (Syndrome Scale - Anxious/Depressed): Number missing

  • Summarized variables:

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__anxdep_002

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__anxdep__anx_006

    • mh_p_cbcl__anxdep__dep_004

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__anxdep

compute_mh_p_cbcl__synd__anxdep_nm(
  data,
  name = "mh_p_cbcl__synd__anxdep_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.

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.

Format

vars_mh_p_cbcl__synd__anxdep is vector of all column names used to compute summary score of mh_p_cbcl__synd__anxdep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__anxdep_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__anxdep_nm", vars_mh_p_cbcl__synd__anxdep))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Attention problems): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__attn_nm Child Behavior Checklist [Parent] (Syndrome Scale - Attention problems): Number missing

  • Summarized variables:

    • mh_p_cbcl__attn_001

    • mh_p_cbcl__attn__adhd_001

    • mh_p_cbcl__attn__adhd_002

    • mh_p_cbcl__attn__adhd_003

    • mh_p_cbcl__attn_002

    • mh_p_cbcl__attn_003

    • mh_p_cbcl__attn__adhd_004

    • mh_p_cbcl__attn_004

    • mh_p_cbcl__attn__adhd_005

    • mh_p_cbcl__attn_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__attn

compute_mh_p_cbcl__synd__attn_nm(
  data,
  name = "mh_p_cbcl__synd__attn_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.

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.

Format

vars_mh_p_cbcl__synd__attn is vector of all column names used to compute summary score of mh_p_cbcl__synd__attn scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__attn_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__attn_nm", vars_mh_p_cbcl__synd__attn))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Externalizing): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__ext_nm Child Behavior Checklist [Parent] (Syndrome Scale - Externalizing): Number missing

  • Summarized variables:

    • mh_p_cbcl__rule_001

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule_006

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__rule_002

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule_003

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__rule_004

    • mh_p_cbcl__rule_005

    • mh_p_cbcl__aggr__opp_001

    • mh_p_cbcl__aggr__adhd_001

    • mh_p_cbcl__aggr__cond_001

    • mh_p_cbcl__aggr_001

    • mh_p_cbcl__aggr_002

    • mh_p_cbcl__aggr__cond_002

    • mh_p_cbcl__aggr__opp_002

    • mh_p_cbcl__aggr__opp_003

    • mh_p_cbcl__aggr__cond_003

    • mh_p_cbcl__aggr__cond_004

    • mh_p_cbcl__aggr_003

    • mh_p_cbcl__aggr__opp_004

    • mh_p_cbcl__aggr_004

    • mh_p_cbcl__aggr_005

    • mh_p_cbcl__aggr_006

    • mh_p_cbcl__aggr_007

    • mh_p_cbcl__aggr__opp_005

    • mh_p_cbcl__aggr__cond_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__ext

compute_mh_p_cbcl__synd__ext_nm(
  data,
  name = "mh_p_cbcl__synd__ext_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.

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.

Format

vars_mh_p_cbcl__synd__ext is vector of all column names used to compute summary score of mh_p_cbcl__synd__ext scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__ext_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__ext_nm", vars_mh_p_cbcl__synd__ext))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Internalizing): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__int_nm Child Behavior Checklist [Parent] (Syndrome Scale - Internalizing): Number missing

  • Summarized variables:

    • mh_p_cbcl__anxdep__anx_007

    • mh_p_cbcl__anxdep__dep_001

    • mh_p_cbcl__anxdep__anx_001

    • mh_p_cbcl__anxdep__anx_002

    • mh_p_cbcl__anxdep__anx_003

    • mh_p_cbcl__anxdep_001

    • mh_p_cbcl__anxdep_002

    • mh_p_cbcl__anxdep__dep_002

    • mh_p_cbcl__anxdep__anx_004

    • mh_p_cbcl__anxdep__anx_005

    • mh_p_cbcl__anxdep__dep_003

    • mh_p_cbcl__anxdep__anx_006

    • mh_p_cbcl__anxdep__dep_004

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__wthdep_001

    • mh_p_cbcl__wthdep_002

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__wthdep_004

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__som_001

    • mh_p_cbcl__som_002

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__int

compute_mh_p_cbcl__synd__int_nm(
  data,
  name = "mh_p_cbcl__synd__int_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.

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.

Format

vars_mh_p_cbcl__synd__int is vector of all column names used to compute summary score of mh_p_cbcl__synd__int scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__int_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__int_nm", vars_mh_p_cbcl__synd__int))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Other problems): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__othpr_nm Child Behavior Checklist [Parent] (Syndrome Scale - Other problems): Number missing

  • Summarized variables:

    • mh_p_cbcl__othpr_001

    • mh_p_cbcl__othpr_002

    • mh_p_cbcl__othpr_009

    • mh_p_cbcl__othpr_010

    • mh_p_cbcl__othpr_011

    • mh_p_cbcl__othpr_012

    • mh_p_cbcl__othpr__cond_001

    • mh_p_cbcl__othpr__dep_001

    • mh_p_cbcl__othpr_003

    • mh_p_cbcl__othpr_004

    • mh_p_cbcl__othpr_005

    • mh_p_cbcl__othpr_006

    • mh_p_cbcl__othpr_007

    • mh_p_cbcl__othpr__dep_002

    • mh_p_cbcl__othpr__adhd_001

    • mh_p_cbcl__othpr_008

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__othpr

compute_mh_p_cbcl__synd__othpr_nm(
  data,
  name = "mh_p_cbcl__synd__othpr_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.

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.

Format

vars_mh_p_cbcl__synd__othpr is vector of all column names used to compute summary score of mh_p_cbcl__synd__othpr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__othpr_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__othpr_nm", vars_mh_p_cbcl__synd__othpr))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__rule_nm Child Behavior Checklist [Parent] (Syndrome Scale - Rule breaking behavior): Number missing

  • Summarized variables:

    • mh_p_cbcl__rule_001

    • mh_p_cbcl__rule__cond_010

    • mh_p_cbcl__rule_006

    • mh_p_cbcl__rule__cond_011

    • mh_p_cbcl__rule__cond_001

    • mh_p_cbcl__rule__cond_002

    • mh_p_cbcl__rule__cond_003

    • mh_p_cbcl__rule__cond_004

    • mh_p_cbcl__rule_002

    • mh_p_cbcl__rule__cond_005

    • mh_p_cbcl__rule__cond_006

    • mh_p_cbcl__rule_003

    • mh_p_cbcl__rule__cond_007

    • mh_p_cbcl__rule__cond_008

    • mh_p_cbcl__rule__cond_009

    • mh_p_cbcl__rule_004

    • mh_p_cbcl__rule_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__rule

compute_mh_p_cbcl__synd__rule_nm(
  data,
  name = "mh_p_cbcl__synd__rule_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.

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.

Format

vars_mh_p_cbcl__synd__rule is vector of all column names used to compute summary score of mh_p_cbcl__synd__rule scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__rule_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__rule_nm", vars_mh_p_cbcl__synd__rule))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale -Social): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__soc_nm Child Behavior Checklist [Parent] (Syndrome Scale -Social): Number missing

  • Summarized variables:

    • mh_p_cbcl__soc__anx_001

    • mh_p_cbcl__soc_001

    • mh_p_cbcl__soc_002

    • mh_p_cbcl__soc_003

    • mh_p_cbcl__soc_004

    • mh_p_cbcl__soc_005

    • mh_p_cbcl__soc_006

    • mh_p_cbcl__soc_007

    • mh_p_cbcl__soc_008

    • mh_p_cbcl__soc_009

    • mh_p_cbcl__soc_010

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__soc

compute_mh_p_cbcl__synd__soc_nm(
  data,
  name = "mh_p_cbcl__synd__soc_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.

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.

Format

vars_mh_p_cbcl__synd__soc is vector of all column names used to compute summary score of mh_p_cbcl__synd__soc scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__soc_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__soc_nm", vars_mh_p_cbcl__synd__soc))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__som_nm Child Behavior Checklist [Parent] (Syndrome Scale - Somatic complaints): Number missing

  • Summarized variables:

    • mh_p_cbcl__som__anx_001

    • mh_p_cbcl__som_001

    • mh_p_cbcl__som_002

    • mh_p_cbcl__som__dep_001

    • mh_p_cbcl__som__somat_001

    • mh_p_cbcl__som__somat_002

    • mh_p_cbcl__som__somat_003

    • mh_p_cbcl__som__somat_004

    • mh_p_cbcl__som__somat_005

    • mh_p_cbcl__som__somat_006

    • mh_p_cbcl__som__somat_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__som

compute_mh_p_cbcl__synd__som_nm(
  data,
  name = "mh_p_cbcl__synd__som_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.

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.

Format

vars_mh_p_cbcl__synd__som is vector of all column names used to compute summary score of mh_p_cbcl__synd__som scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__som_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__som_nm", vars_mh_p_cbcl__synd__som))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Thought problems): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__tho_nm Child Behavior Checklist [Parent] (Syndrome Scale - Thought problems): Number missing

  • Summarized variables:

    • mh_p_cbcl__tho_001

    • mh_p_cbcl__tho__dep_003

    • mh_p_cbcl__tho__dep_001

    • mh_p_cbcl__tho_002

    • mh_p_cbcl__tho_003

    • mh_p_cbcl__tho_004

    • mh_p_cbcl__tho_005

    • mh_p_cbcl__tho_006

    • mh_p_cbcl__tho_007

    • mh_p_cbcl__tho_008

    • mh_p_cbcl__tho__dep_002

    • mh_p_cbcl__tho_009

    • mh_p_cbcl__tho_010

    • mh_p_cbcl__tho_011

    • mh_p_cbcl__tho_012

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__tho

compute_mh_p_cbcl__synd__tho_nm(
  data,
  name = "mh_p_cbcl__synd__tho_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.

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.

Format

vars_mh_p_cbcl__synd__tho is vector of all column names used to compute summary score of mh_p_cbcl__synd__tho scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__tho_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__tho_nm", vars_mh_p_cbcl__synd__tho))
  )

## End(Not run)

Compute "Child Behavior Checklist [Parent] (Syndrome Scale - Withdrawn/Depressed): Number missing"

Description

Computes the summary score mh_p_cbcl__synd__wthdep_nm Child Behavior Checklist [Parent] (Syndrome Scale - Withdrawn/Depressed): Number missing

  • Summarized variables:

    • mh_p_cbcl__wthdep__dep_001

    • mh_p_cbcl__wthdep__dep_002

    • mh_p_cbcl__wthdep__dep_003

    • mh_p_cbcl__wthdep_005

    • mh_p_cbcl__wthdep_001

    • mh_p_cbcl__wthdep_002

    • mh_p_cbcl__wthdep_003

    • mh_p_cbcl__wthdep_004

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_p_cbcl__synd__wthdep

compute_mh_p_cbcl__synd__wthdep_nm(
  data,
  name = "mh_p_cbcl__synd__wthdep_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.

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.

Format

vars_mh_p_cbcl__synd__wthdep is vector of all column names used to compute summary score of mh_p_cbcl__synd__wthdep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_cbcl__synd__wthdep_nm(data) |>
  select(
    any_of(c("mh_p_cbcl__synd__wthdep_nm", vars_mh_p_cbcl__synd__wthdep))
  )

## End(Not run)

Compute "Difficulties in Emotion Regulation Scale [Parent] (Attuned): Mean"

Description

Computes the summary score mh_p_ders__attun_mean Difficulties in Emotion Regulation Scale [Parent] (Attuned): Mean

  • Summarized variables:

    • mh_p_ders__attun_001

    • mh_p_ders__attun_002

    • mh_p_ders__attun_003

    • mh_p_ders__attun_004

    • mh_p_ders__attun_005

    • mh_p_ders__attun_006

  • Excluded values:

    • 999

    • 777

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_mh_p_ders__attun

compute_mh_p_ders__attun_mean(
  data,
  name = "mh_p_ders__attun_mean",
  max_na = 1,
  exclude = c("999", "777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ders__attun is vector of all column names used to compute summary score of mh_p_ders__attun scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_ders__attun_mean(data) |>
  select(
    any_of(c("mh_p_ders__attun_mean", vars_mh_p_ders__attun))
  )

## End(Not run)

Compute "Difficulties in Emotion Regulation Scale [Parent] (Catastrophize): Mean"

Description

Computes the summary score mh_p_ders__catast_mean Difficulties in Emotion Regulation Scale [Parent] (Catastrophize): Mean

  • Summarized variables:

    • mh_p_ders__catast_001

    • mh_p_ders__catast_002

    • mh_p_ders__catast_003

    • mh_p_ders__catast_004

    • mh_p_ders__catast_005

    • mh_p_ders__catast_006

    • mh_p_ders__catast_007

    • mh_p_ders__catast_008

    • mh_p_ders__catast_009

    • mh_p_ders__catast_010

    • mh_p_ders__catast_011

    • mh_p_ders__catast_012

  • Excluded values:

    • 999

    • 777

  • Validation criterion: maximally 2 of 12 items missing

Usage

vars_mh_p_ders__catast

compute_mh_p_ders__catast_mean(
  data,
  name = "mh_p_ders__catast_mean",
  max_na = 2,
  exclude = c("999", "777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ders__catast is vector of all column names used to compute summary score of mh_p_ders__catast scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_ders__catast_mean(data) |>
  select(
    any_of(c("mh_p_ders__catast_mean", vars_mh_p_ders__catast))
  )

## End(Not run)

Compute "Difficulties in Emotion Regulation Scale [Parent] (Distracted): Mean"

Description

Computes the summary score mh_p_ders__distract_mean Difficulties in Emotion Regulation Scale [Parent] (Distracted): Mean

  • Summarized variables:

    • mh_p_ders__distract_001

    • mh_p_ders__distract_002

    • mh_p_ders__distract_003

    • mh_p_ders__distract_004

  • Excluded values:

    • 999

    • 777

  • Validation criterion: none of 4 items missing

Usage

vars_mh_p_ders__distract

compute_mh_p_ders__distract_mean(
  data,
  name = "mh_p_ders__distract_mean",
  max_na = 0,
  exclude = c("999", "777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ders__distract is vector of all column names used to compute summary score of mh_p_ders__distract scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_ders__distract_mean(data) |>
  select(
    any_of(c("mh_p_ders__distract_mean", vars_mh_p_ders__distract))
  )

## End(Not run)

Compute "Difficulties in Emotion Regulation Scale [Parent] (Negative Secondary): Mean"

Description

Computes the summary score mh_p_ders__negscnd_mean Difficulties in Emotion Regulation Scale [Parent] (Negative Secondary): Mean

  • Summarized variables:

    • mh_p_ders__negscnd_001

    • mh_p_ders__negscnd_002

    • mh_p_ders__negscnd_003

    • mh_p_ders__negscnd_004

    • mh_p_ders__negscnd_005

    • mh_p_ders__negscnd_006

    • mh_p_ders__negscnd_007

  • Excluded values:

    • 999

    • 777

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_mh_p_ders__negscnd

compute_mh_p_ders__negscnd_mean(
  data,
  name = "mh_p_ders__negscnd_mean",
  max_na = 1,
  exclude = c("999", "777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ders__negscnd is vector of all column names used to compute summary score of mh_p_ders__negscnd scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_ders__negscnd_mean(data) |>
  select(
    any_of(c("mh_p_ders__negscnd_mean", vars_mh_p_ders__negscnd))
  )

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Activation): Mean "

Description

Computes the summary score mh_p_eatq__actv_mean Early Adolescent Temperament Questionnaire [Parent] (Activation): Mean

  • Summarized variables:

    • mh_p_eatq__actv_001

    • mh_p_eatq__actv_002

    • mh_p_eatq__actv_003

    • mh_p_eatq__actv_004

    • mh_p_eatq__actv_005

    • mh_p_eatq__actv_006

    • mh_p_eatq__actv_007

  • Excluded values: none

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_mh_p_eatq__actv

compute_mh_p_eatq__actv_mean(
  data,
  name = "mh_p_eatq__actv_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__actv is a character vector of all column names used to compute summary score of mh_p_eatq__actv_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__actv_mean(data)
select(
  data,
  any_of(c("mh_p_eatq__actv_mean", vars_mh_p_eatq__actv))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Affiliation): Mean"

Description

Computes the summary score mh_p_eatq__affl_mean Early Adolescent Temperament Questionnaire [Parent] (Affiliation): Mean

  • Summarized variables:

    • mh_p_eatq__affl_001

    • mh_p_eatq__affl_002

    • mh_p_eatq__affl_003

    • mh_p_eatq__affl_004

    • mh_p_eatq__affl_005

    • mh_p_eatq__affl_006

  • Excluded values: none

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_mh_p_eatq__affl

compute_mh_p_eatq__affl_mean(
  data,
  name = "mh_p_eatq__affl_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__affl is a character vector of all column names used to compute summary score of mh_p_eatq__affl_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__affl_mean(data)
select(
  data,
  any_of(c("mh_p_eatq__affl_mean", vars_mh_p_eatq__affl))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Aggression): Mean"

Description

Computes the summary score mh_p_eatq__aggr_mean Early Adolescent Temperament Questionnaire [Parent] (Aggression): Mean

  • Summarized variables:

    • mh_p_eatq__aggr_001

    • mh_p_eatq__aggr_002

    • mh_p_eatq__aggr_003

    • mh_p_eatq__aggr_004

    • mh_p_eatq__aggr_005

    • mh_p_eatq__aggr_006

    • mh_p_eatq__aggr_007

  • Excluded values: none

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_mh_p_eatq__aggr

compute_mh_p_eatq__aggr_mean(
  data,
  name = "mh_p_eatq__aggr_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__aggr is a character vector of all column names used to compute summary score of mh_p_eatq__aggr_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__aggr_mean(data)
select(
  data,
  any_of(c("mh_p_eatq__aggr_mean", vars_mh_p_eatq__aggr))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Attention): Mean"

Description

Computes the summary score mh_p_eatq__attn_mean Early Adolescent Temperament Questionnaire [Parent] (Attention): Mean

  • Summarized variables:

    • mh_p_eatq__attn_001

    • mh_p_eatq__attn_002

    • mh_p_eatq__attn_003

    • mh_p_eatq__attn_004

    • mh_p_eatq__attn_005

    • mh_p_eatq__attn_006

  • Excluded values: none

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_mh_p_eatq__attn

compute_mh_p_eatq__attn_mean(
  data,
  name = "mh_p_eatq__attn_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__attn is a character vector of all column names used to compute summary score of mh_p_eatq__attn_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__attn_mean(data)
select(
  data,
  any_of(c("mh_p_eatq__attn_mean", vars_mh_p_eatq__attn))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Depressive Mood): Mean"

Description

Computes the summary score mh_p_eatq__depm_mean Early Adolescent Temperament Questionnaire [Parent] (Depressive Mood): Mean

  • Summarized variables:

    • mh_p_eatq__depm_001

    • mh_p_eatq__depm_002

    • mh_p_eatq__depm_003

    • mh_p_eatq__depm_004

    • mh_p_eatq__depm_005

  • Excluded values: none

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_mh_p_eatq__depm

compute_mh_p_eatq__depm_mean(
  data,
  name = "mh_p_eatq__depm_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__depm is a character vector of all column names used to compute summary score of mh_p_eatq__depm_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__depm_mean(data)
select(
  data,
  any_of(c("mh_p_eatq__depm_mean", vars_mh_p_eatq__depm))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Fear): Mean"

Description

Computes the summary score mh_p_eatq__fear_mean Early Adolescent Temperament Questionnaire [Parent] (Fear): Mean

  • Summarized variables:

    • mh_p_eatq__fear_001

    • mh_p_eatq__fear_002

    • mh_p_eatq__fear_003

    • mh_p_eatq__fear_004

    • mh_p_eatq__fear_005

    • mh_p_eatq__fear_006

  • Excluded values: none

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_mh_p_eatq__fear

compute_mh_p_eatq__fear_mean(
  data,
  name = "mh_p_eatq__fear_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__fear is a character vector of all column names used to compute summary score of mh_p_eatq__fear_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__fear_mean(data)
select(
  data,
  any_of(c(
    "mh_p_eatq__fear_mean",
    vars_mh_p_eatq__fear
  ))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Frustration): Mean"

Description

Computes the summary score mh_p_eatq__frust_mean Early Adolescent Temperament Questionnaire [Parent] (Frustration): Mean

  • Summarized variables:

    • mh_p_eatq__frust_001

    • mh_p_eatq__frust_002

    • mh_p_eatq__frust_003

    • mh_p_eatq__frust_004

    • mh_p_eatq__frust_005

    • mh_p_eatq__frust_006

  • Excluded values: none

  • Validation criterion: maximally 1 of 6 items missing

Usage

vars_mh_p_eatq__frust

compute_mh_p_eatq__frust_mean(
  data,
  name = "mh_p_eatq__frust_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__frust is a character vector of all column names used to compute summary score of mh_p_eatq__frust_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__frust_mean(data)
select(
  data,
  any_of(c("mh_p_eatq__frust_mean", vars_mh_p_eatq__frust))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Inhibition): Mean"

Description

Computes the summary score mh_p_eatq__inhib_mean Early Adolescent Temperament Questionnaire [Parent] (Inhibition): Mean

  • Summarized variables:

    • mh_p_eatq__inhib_001

    • mh_p_eatq__inhib_002

    • mh_p_eatq__inhib_003

    • mh_p_eatq__inhib_004

    • mh_p_eatq__inhib_005

  • Excluded values: none

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_mh_p_eatq__inhib

compute_mh_p_eatq__inhib_mean(
  data,
  name = "mh_p_eatq__inhib_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__inhib is a character vector of all column names used to compute summary score of mh_p_eatq__inhib_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__inhib_mean(data)
select(
  data,
  any_of(c("mh_p_eatq__inhib_mean", vars_mh_p_eatq__inhib))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Shyness): Mean"

Description

Computes the summary score mh_p_eatq__shy_mean Early Adolescent Temperament Questionnaire [Parent] (Shyness): Mean

  • Summarized variables:

    • mh_p_eatq__shy_001

    • mh_p_eatq__shy_002

    • mh_p_eatq__shy_003

    • mh_p_eatq__shy_004

    • mh_p_eatq__shy_005

  • Excluded values: none

  • Validation criterion: maximally 1 of 5 items missing

Usage

vars_mh_p_eatq__shy

compute_mh_p_eatq__shy_mean(
  data,
  name = "mh_p_eatq__shy_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__shy is a character vector of all column names used to compute summary score of mh_p_eatq__shy_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__shy_mean(data)
select(
  data,
  any_of(c(
    "mh_p_eatq__shy_mean",
    vars_mh_p_eatq__shy
  ))
)

## End(Not run)

Compute "Early Adolescent Temperament Questionnaire [Parent] (Surgency): Mean [Validation: No more than 1 missing or declined]"

Description

Computes the summary score mh_p_eatq__surg_mean Early Adolescent Temperament Questionnaire [Parent] (Surgency): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_eatq__surg_001

    • mh_p_eatq__surg_002

    • mh_p_eatq__surg_003

    • mh_p_eatq__surg_004

    • mh_p_eatq__surg_005

    • mh_p_eatq__surg_006

    • mh_p_eatq__surg_007

    • mh_p_eatq__surg_008

    • mh_p_eatq__surg_009

  • Excluded values: none

  • Validation criterion: maximally 1 of 9 items missing

Usage

vars_mh_p_eatq__surg

compute_mh_p_eatq__surg_mean(
  data,
  name = "mh_p_eatq__surg_mean",
  max_na = 1,
  combine = TRUE,
  revert = FALSE
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

revert

logical, If TRUE, the summary score will be reverse scored.

Format

vars_mh_p_eatq__surg is a character vector of all column names used to compute summary score of mh_p_eatq__surg_mean.

Value

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

Examples

## Not run: 
data <- compute_mh_p_eatq__surg_mean(data)
select(
  data,
  any_of(c("mh_p_eatq__surg_mean", vars_mh_p_eatq__surg))
)

## End(Not run)

Compute "Family History [Parent] (Alcohol) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__alc__moth__fath_indicator (Family History [Parent] (Alcohol) Endorsed: Either parent)

  • Notes:

    • Following values are recoded as NA prior to any computation

      • 777

      • 888

      • 999

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__alc__moth__fath_indicator

compute_mh_p_famhx__alc__moth__fath_indicator(
  data,
  name = "mh_p_famhx__alc__moth__fath_indicator",
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__alc__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Alcohol) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__alc__moth__fath_score (Family History [Parent] (Alcohol) Endorsed: Parents overall)

  • Notes:

    • Following values are recoded as NA prior to any computation

      • 777

      • 888

      • 999

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__alc__moth__fath_score

compute_mh_p_famhx__alc__moth__fath_score(
  data,
  name = "mh_p_famhx__alc__moth__fath_score",
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__alc__moth__fath_score.

Value

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


Compute "Family History [Parent] (Depression) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__dep__moth__fath_indicator (Family History [Parent] (Depression) Endorsed: Either parent)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__dep__moth__fath_indicator

compute_mh_p_famhx__dep__moth__fath_indicator(
  data,
  name = "mh_p_famhx__dep__moth__fath_indicator",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of fields used to compute mh_p_famhx__dep__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Depression) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__dep__moth__fath_score (Family History [Parent] (Depression) Endorsed: Parents overall)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__dep__moth__fath_score

compute_mh_p_famhx__dep__moth__fath_score(
  data,
  name = "mh_p_famhx__dep__moth__fath_score",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__dep__moth__fath_score.

Value

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


Compute "Family History [Parent] (Doctor Visit)) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__doc__moth__fath_indicator (Family History [Parent] (Doctor Visit)) Endorsed: Either parent)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__doc__moth__fath_indicator

compute_mh_p_famhx__doc__moth__fath_indicator(
  data,
  name = "mh_p_famhx__doc__moth__fath_indicator",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of fields used to compute mh_p_famhx__doc__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Doctor Visit) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__doc__moth__fath_score (Family History [Parent] (Doctor Visit) Endorsed: Parents overall)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__doc__moth__fath_score

compute_mh_p_famhx__doc__moth__fath_score(
  data,
  name = "mh_p_famhx__doc__moth__fath_score",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__doc__moth__fath_score.

Value

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


Compute "Family History [Parent] (Drug Use) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__drg__moth__fath_indicator (Family History [Parent] (Drug Use) Endorsed: Either parent)

  • Notes:

    • Following values are recoded as NA prior to any computation

      • 777

      • 888

      • 999

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__drg__moth__fath_indicator

compute_mh_p_famhx__drg__moth__fath_indicator(
  data,
  name = "mh_p_famhx__drg__moth__fath_indicator",
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__drg__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Drug Use) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__drg__moth__fath_score (Family History [Parent] (Drug Use) Endorsed: Parents overall)

  • Notes:

    • Following values are recoded as NA prior to any computation

      • 777

      • 888

      • 999

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__drg__moth__fath_score

compute_mh_p_famhx__drg__moth__fath_score(
  data,
  name = "mh_p_famhx__drg__moth__fath_score",
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__drg__moth__fath_score.

Value

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


Compute "Family History [Parent] (Hallucinations) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__halluc__moth__fath_indicator (Family History [Parent] (Hallucinations) Endorsed: Either parent)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__halluc__moth__fath_indicator

compute_mh_p_famhx__halluc__moth__fath_indicator(
  data,
  name = "mh_p_famhx__halluc__moth__fath_indicator",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of fields used to compute mh_p_famhx__halluc__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Hallucinations) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__halluc__moth__fath_score (Family History [Parent] (Hallucinations) Endorsed: Parents overall)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__halluc__moth__fath_score

compute_mh_p_famhx__halluc__moth__fath_score(
  data,
  name = "mh_p_famhx__halluc__moth__fath_score",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__halluc__moth__fath_score.

Value

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


Compute "Family History [Parent] (Hospitalized)) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__hosp__moth__fath_indicator (Family History [Parent] (Hospitalized)) Endorsed: Either parent)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__hosp__moth__fath_indicator

compute_mh_p_famhx__hosp__moth__fath_indicator(
  data,
  name = "mh_p_famhx__hosp__moth__fath_indicator",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of fields used to compute mh_p_famhx__hosp__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Hospitalized) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__hosp__moth__fath_score (Family History [Parent] (Hospitalized) Endorsed: Parents overall)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__hosp__moth__fath_score

compute_mh_p_famhx__hosp__moth__fath_score(
  data,
  name = "mh_p_famhx__hosp__moth__fath_score",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__hosp__moth__fath_score.

Value

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


Compute "Family History [Parent] (Mania) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__mania__moth__fath_indicator (Family History [Parent] (Mania) Endorsed: Either parent)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__mania__moth__fath_indicator

compute_mh_p_famhx__mania__moth__fath_indicator(
  data,
  name = "mh_p_famhx__mania__moth__fath_indicator",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of fields used to compute mh_p_famhx__mania__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Mania) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__mania__moth__fath_score (Family History [Parent] (Mania) Endorsed: Parents overall)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__mania__moth__fath_score

compute_mh_p_famhx__mania__moth__fath_score(
  data,
  name = "mh_p_famhx__mania__moth__fath_score",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__mania__moth__fath_score.

Value

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


Compute "Family History [Parent] (Nerves/Nervous Breakdown) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__nerve__moth__fath_indicator (Family History [Parent] (Nerves/Nervous Breakdown) Endorsed: Either parent)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__nerve__moth__fath_indicator

compute_mh_p_famhx__nerve__moth__fath_indicator(
  data,
  name = "mh_p_famhx__nerve__moth__fath_indicator",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of fields used to compute mh_p_famhx__nerve__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Nerves/Nervous Breakdown) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__nerve__moth__fath_score (Family History [Parent] (Nerves/Nervous Breakdown) Endorsed: Parents overall)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__nerve__moth__fath_score

compute_mh_p_famhx__nerve__moth__fath_score(
  data,
  name = "mh_p_famhx__nerve__moth__fath_score",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__nerve__moth__fath_score.

Value

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


Compute "Family History [Parent] (Suicide)) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__suic__moth__fath_indicator (Family History [Parent] (Suicide)) Endorsed: Either parent)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__suic__moth__fath_indicator

compute_mh_p_famhx__suic__moth__fath_indicator(
  data,
  name = "mh_p_famhx__suic__moth__fath_indicator",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of fields used to compute mh_p_famhx__suic__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Suicide) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__suic__moth__fath_score (Family History [Parent] (Suicide) Endorsed: Parents overall)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__suic__moth__fath_score

compute_mh_p_famhx__suic__moth__fath_score(
  data,
  name = "mh_p_famhx__suic__moth__fath_score",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__suic__moth__fath_score.

Value

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


Compute "Family History [Parent] (Trouble/Problems) Endorsed: Either parent"

Description

Computes the summary score mh_p_famhx__troub__moth__fath_indicator (Family History [Parent] (Trouble/Problems) Endorsed: Either parent)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed yes OR mother endorsed yes = 1

      • father endorsed no AND mother endorsed no = 0

      • all other cases set to NA

Usage

vars_mh_p_famhx__troub__moth__fath_indicator

compute_mh_p_famhx__troub__moth__fath_indicator(
  data,
  name = "mh_p_famhx__troub__moth__fath_indicator",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of fields used to compute mh_p_famhx__troub__moth__fath_indicator.

Value

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


Compute "Family History [Parent] (Trouble/Problems) Endorsed: Parents overall"

Description

Computes the summary score mh_p_famhx__troub__moth__fath_score (Family History [Parent] (Trouble/Problems) Endorsed: Parents overall)

  • Excluded values:

    • 777

    • 888

    • 999

  • Notes:

    • Following logic is applied to compute the score:

      • father endorsed no AND mother endorsed no = 0

      • father endorsed yes AND mother endorsed no = 1

      • father endorsed no AND mother endorsed yes = 2

      • father endorsed yes AND mother endorsed yes = 3

      • father endorsed NA AND mother endorsed yes = 4

      • father endorsed yes AND mother endorsed NA = 5

      • all other cases set to NA

Usage

vars_mh_p_famhx__troub__moth__fath_score

compute_mh_p_famhx__troub__moth__fath_score(
  data,
  name = "mh_p_famhx__troub__moth__fath_score",
  exclude = c("777", "888", "999"),
  combine = TRUE
)

Arguments

data

tibble. A data frame containing the data.

name

character. The name of the output column for the computed score.

exclude

character vector. Values to be excluded from the summary score calculation.

combine

logical. Whether to combine the summary score column with the input data frame (Default: TRUE).

Format

a character vector of base name of the check boxes used to compute mh_p_famhx__troub__moth__fath_score.

Value

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


Compute "Parent General Behavior Inventory [Parent]: Number missing"

Description

Computes the summary score mh_p_gbi_nm Parent General Behavior Inventory [Parent]: Number missing

  • Summarized variables:

    • mh_p_gbi_001

    • mh_p_gbi_002

    • mh_p_gbi_003

    • mh_p_gbi_004

    • mh_p_gbi_005

    • mh_p_gbi_006

    • mh_p_gbi_007

    • mh_p_gbi_008

    • mh_p_gbi_009

    • mh_p_gbi_010

  • Excluded values: none

Usage

vars_mh_p_gbi

compute_mh_p_gbi_nm(data, name = "mh_p_gbi_nm", exclude = NULL, 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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_p_gbi is vector of all column names used to compute summary score of mh_p_gbi scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_gbi_nm(data) |>
  select(
    any_of(c("mh_p_gbi_nm", vars_mh_p_gbi))
  )

## End(Not run)

Compute "KSADS - Attention-Deficit/Hyperactivity Disorder [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__adhd__past__sx_mean KSADS - Attention-Deficit/Hyperactivity Disorder [Parent] (Symptom - Past): Mean ⁠[Validation: No more than 3 missing or declined⁠]

  • Summarized variables:

    • mh_p_ksads__adhd__avoid__task__past_sx

    • mh_p_ksads__adhd__blurt__past_sx

    • mh_p_ksads__adhd__distract__1schlyr__past_sx

    • mh_p_ksads__adhd__fidget__past_sx

    • mh_p_ksads__adhd__flwinstr__past_sx

    • mh_p_ksads__adhd__forget__past_sx

    • mh_p_ksads__adhd__hypractv__past_sx

    • mh_p_ksads__adhd__impuls__past_sx

    • mh_p_ksads__adhd__interrupt__past_sx

    • mh_p_ksads__adhd__loses__past_sx

    • mh_p_ksads__adhd__mistake__past_sx

    • mh_p_ksads__adhd__motor__past_sx

    • mh_p_ksads__adhd__notlisten__past_sx

    • mh_p_ksads__adhd__orgtask__past_sx

    • mh_p_ksads__adhd__quiet__past_sx

    • mh_p_ksads__adhd__seat__1schlyr__past_sx

    • mh_p_ksads__adhd__sustattn__1schlyr__past_sx

    • mh_p_ksads__adhd__talkexcess__past_sx

    • mh_p_ksads__adhd__wait__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 19 items missing

Usage

vars_mh_p_ksads__adhd__past__sx

compute_mh_p_ksads__adhd__past__sx_mean(
  data,
  name = "mh_p_ksads__adhd__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__adhd__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__adhd__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Attention-Deficit/Hyperactivity Disorder [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__adhd__pres__sx_mean KSADS - Attention-Deficit/Hyperactivity Disorder [Parent] (Symptom - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • mh_p_ksads__adhd__avoid__task__pres_sx

    • mh_p_ksads__adhd__blurt__pres_sx

    • mh_p_ksads__adhd__distract__grdschl__pres_sx

    • mh_p_ksads__adhd__fidget__pres_sx

    • mh_p_ksads__adhd__flwinstr__pres_sx

    • mh_p_ksads__adhd__forget__pres_sx

    • mh_p_ksads__adhd__hypractv__pres_sx

    • mh_p_ksads__adhd__impuls__pres_sx

    • mh_p_ksads__adhd__interrupt__pres_sx

    • mh_p_ksads__adhd__loses__pres_sx

    • mh_p_ksads__adhd__mistake__pres_sx

    • mh_p_ksads__adhd__motor__pres_sx

    • mh_p_ksads__adhd__notlisten__pres_sx

    • mh_p_ksads__adhd__orgtask__pres_sx

    • mh_p_ksads__adhd__quiet__pres_sx

    • mh_p_ksads__adhd__seat__grdschl__pres_sx

    • mh_p_ksads__adhd__sustattn__grdschl__pres_sx

    • mh_p_ksads__adhd__talkexcess__pres_sx

    • mh_p_ksads__adhd__wait__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 19 items missing

Usage

vars_mh_p_ksads__adhd__pres__sx

compute_mh_p_ksads__adhd__pres__sx_mean(
  data,
  name = "mh_p_ksads__adhd__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__adhd__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__adhd__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Agoraphobia [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__agor__past__sx_mean KSADS - Agoraphobia [Parent] (Symptom - Past): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__agor__avoid__past_sx

    • mh_p_ksads__agor__multi__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_mh_p_ksads__agor__past__sx

compute_mh_p_ksads__agor__past__sx_mean(
  data,
  name = "mh_p_ksads__agor__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__agor__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__agor__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Agoraphobia [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__agor__pres__sx_mean KSADS - Agoraphobia [Parent] (Symptom - Present): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__agor__avoid__pres_sx

    • mh_p_ksads__agor__multi__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_mh_p_ksads__agor__pres__sx

compute_mh_p_ksads__agor__pres__sx_mean(
  data,
  name = "mh_p_ksads__agor__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__agor__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__agor__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Autism Spectrum Disorders [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__asd__past__sx_mean KSADS - Autism Spectrum Disorders [Parent] (Symptom - Past): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__asd__hyporeact__past_sx

    • mh_p_ksads__asd__hyprreact__past_sx

    • mh_p_ksads__asd__pooreyecont__past_sx

    • mh_p_ksads__asd__relatsh__past_sx

    • mh_p_ksads__asd__restrctintrst__past_sx

    • mh_p_ksads__asd__routine__past_sx

    • mh_p_ksads__asd__socemotrcp__past_sx

    • mh_p_ksads__asd__unusmvmnt__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_p_ksads__asd__past__sx

compute_mh_p_ksads__asd__past__sx_mean(
  data,
  name = "mh_p_ksads__asd__past__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__asd__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__asd__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Autism Spectrum Disorders [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__asd__pres__sx_mean KSADS - Autism Spectrum Disorders [Parent] (Symptom - Present): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__asd__hyporeact__pres_sx

    • mh_p_ksads__asd__hyprreact__pres_sx

    • mh_p_ksads__asd__pooreyecont__pres_sx

    • mh_p_ksads__asd__relatsh__pres_sx

    • mh_p_ksads__asd__restrctintrst__pres_sx

    • mh_p_ksads__asd__routine__pres_sx

    • mh_p_ksads__asd__socemotrcp__pres_sx

    • mh_p_ksads__asd__unusmvmnt__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_p_ksads__asd__pres__sx

compute_mh_p_ksads__asd__pres__sx_mean(
  data,
  name = "mh_p_ksads__asd__pres__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__asd__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__asd__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Bipolar Disorders [Parent] (Symptom - Past): Mean "

Description

Computes the summary score mh_p_ksads__bpd__past__sx_mean KSADS - Bipolar Disorders [Parent] (Symptom - Past): Mean [validation: No more than 3 missing or declined]

  • Summarized variables:

    • mh_p_ksads__bpd__distract__incr__past_sx

    • mh_p_ksads__bpd__distract__past_sx

    • mh_p_ksads__bpd__enrg__incr__past_sx

    • mh_p_ksads__bpd__flgtid__past_sx

    • mh_p_ksads__bpd__goaldir__incr__past_sx

    • mh_p_ksads__bpd__grndios__past_sx

    • mh_p_ksads__bpd__hyprsex__past_sx

    • mh_p_ksads__bpd__irrit__expl__past_sx

    • mh_p_ksads__bpd__irrit__manic__past_sx

    • mh_p_ksads__bpd__mood__elv__past_sx

    • mh_p_ksads__bpd__mood__euph__past_sx

    • mh_p_ksads__bpd__prspch__past_sx

    • mh_p_ksads__bpd__psymot__agit__past_sx

    • mh_p_ksads__bpd__ractho__past_sx

    • mh_p_ksads__bpd__riskactv__past_sx

    • mh_p_ksads__bpd__slpdecr__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 16 items missing

Usage

vars_mh_p_ksads__bpd__past__sx

compute_mh_p_ksads__bpd__past__sx_mean(
  data,
  name = "mh_p_ksads__bpd__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__bpd__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__bpd__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Bipolar Disorders [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__bpd__pres__sx_mean KSADS - Bipolar Disorders [Parent] (Symptom - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • mh_p_ksads__bpd__distract__incr__pres_sx

    • mh_p_ksads__bpd__distract__pres_sx

    • mh_p_ksads__bpd__enrg__incr__pres_sx

    • mh_p_ksads__bpd__flgtid__pres_sx

    • mh_p_ksads__bpd__goaldir__incr__pres_sx

    • mh_p_ksads__bpd__grndios__pres_sx

    • mh_p_ksads__bpd__hyprsex__pres_sx

    • mh_p_ksads__bpd__irrit__expl__pres_sx

    • mh_p_ksads__bpd__irrit__manic__pres_sx

    • mh_p_ksads__bpd__mood__elv__pres_sx

    • mh_p_ksads__bpd__mood__euph__pres_sx

    • mh_p_ksads__bpd__prspch__pres_sx

    • mh_p_ksads__bpd__psymot__agit__pres_sx

    • mh_p_ksads__bpd__ractho__pres_sx

    • mh_p_ksads__bpd__riskactv__pres_sx

    • mh_p_ksads__bpd__slpdecr__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 16 items missing

Usage

vars_mh_p_ksads__bpd__pres__sx

compute_mh_p_ksads__bpd__pres__sx_mean(
  data,
  name = "mh_p_ksads__bpd__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__bpd__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__bpd__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Conduct Disorder [Parent] (Symptom - Past): Mean "

Description

Computes the summary score mh_p_ksads__cond__past__sx_mean KSADS - Conduct Disorder [Parent] (Symptom - Past): Mean [validation: No more than 2 missing or declined]

  • Summarized variables:

    • mh_p_ksads__cond__breakin__past_sx

    • mh_p_ksads__cond__bully__past_sx

    • mh_p_ksads__cond__fight__past_sx

    • mh_p_ksads__cond__fire__past_sx

    • mh_p_ksads__cond__lies__past_sx

    • mh_p_ksads__cond__outlate__past_sx

    • mh_p_ksads__cond__physcruel__anml__past_sx

    • mh_p_ksads__cond__physcruel__ppl__past_sx

    • mh_p_ksads__cond__rob__past_sx

    • mh_p_ksads__cond__runaway__past_sx

    • mh_p_ksads__cond__steal__past_sx

    • mh_p_ksads__cond__truant__past_sx

    • mh_p_ksads__cond__vandal__past_sx

    • mh_p_ksads__cond__weapon__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_mh_p_ksads__cond__past__sx

compute_mh_p_ksads__cond__past__sx_mean(
  data,
  name = "mh_p_ksads__cond__past__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__cond__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__cond__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Conduct Disorder [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__cond__pres__sx_mean KSADS - Conduct Disorder [Parent] (Symptom - Present): Mean [validation: No more than 2 missing or declined]

  • Summarized variables:

    • mh_p_ksads__cond__breakin__pres_sx

    • mh_p_ksads__cond__bully__pres_sx

    • mh_p_ksads__cond__fight__pres_sx

    • mh_p_ksads__cond__fire__pres_sx

    • mh_p_ksads__cond__lies__pres_sx

    • mh_p_ksads__cond__outlate__pres_sx

    • mh_p_ksads__cond__physcruel__anml__pres_sx

    • mh_p_ksads__cond__physcruel__ppl__pres_sx

    • mh_p_ksads__cond__rob__pres_sx

    • mh_p_ksads__cond__runaway__pres_sx

    • mh_p_ksads__cond__steal__pres_sx

    • mh_p_ksads__cond__truant__pres_sx

    • mh_p_ksads__cond__vandal__pres_sx

    • mh_p_ksads__cond__weapon__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_mh_p_ksads__cond__pres__sx

compute_mh_p_ksads__cond__pres__sx_mean(
  data,
  name = "mh_p_ksads__cond__pres__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__cond__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__cond__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Depressive Disorders [Parent] (Symptom - Past): Mean "

Description

Computes the summary score mh_p_ksads__dep__past__sx_mean KSADS - Depressive Disorders [Parent] (Symptom - Past): Mean [validation: No more than 3 missing or declined]

  • Summarized variables:

    • mh_p_ksads__dep__anhed__past_sx

    • mh_p_ksads__dep__appdecr__past_sx

    • mh_p_ksads__dep__conc__past_sx

    • mh_p_ksads__dep__fatig__past_sx

    • mh_p_ksads__dep__glt__past_sx

    • mh_p_ksads__dep__hplss__past_sx

    • mh_p_ksads__dep__hyprsom__past_sx

    • mh_p_ksads__dep__incapp__past_sx

    • mh_p_ksads__dep__indec__past_sx

    • mh_p_ksads__dep__insom__past_sx

    • mh_p_ksads__dep__irrit__past_sx

    • mh_p_ksads__dep__mood__past_sx

    • mh_p_ksads__dep__psymot__agit__past_sx

    • mh_p_ksads__dep__psymot__rtrd__past_sx

    • mh_p_ksads__dep__slfestmdecr__past_sx

    • mh_p_ksads__dep__wghtgain__past_sx

    • mh_p_ksads__dep__wghtloss__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 17 items missing

Usage

vars_mh_p_ksads__dep__past__sx

compute_mh_p_ksads__dep__past__sx_mean(
  data,
  name = "mh_p_ksads__dep__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__dep__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__dep__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Depressive Disorders [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__dep__pres__sx_mean KSADS - Depressive Disorders [Parent] (Symptom - Present): Mean [validation: No more than 3 missing or declined]

  • Summarized variables:

    • mh_p_ksads__dep__anhed__pres_sx

    • mh_p_ksads__dep__appdecr__pres_sx

    • mh_p_ksads__dep__conc__pres_sx

    • mh_p_ksads__dep__fatig__pres_sx

    • mh_p_ksads__dep__glt__pres_sx

    • mh_p_ksads__dep__hplss__pres_sx

    • mh_p_ksads__dep__hyprsom__pres_sx

    • mh_p_ksads__dep__incapp__pres_sx

    • mh_p_ksads__dep__indec__pres_sx

    • mh_p_ksads__dep__irrit__pres_sx

    • mh_p_ksads__dep__mood__pres_sx

    • mh_p_ksads__dep__psymot__agit__pres_sx

    • mh_p_ksads__dep__psymot__rtrd__pres_sx

    • mh_p_ksads__dep__slfestmdecr__pres_sx

    • mh_p_ksads__dep__wghtgain__pres_sx

    • mh_p_ksads__dep__wghtloss__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 17 items missing

Usage

vars_mh_p_ksads__dep__pres__sx

compute_mh_p_ksads__dep__pres__sx_mean(
  data,
  name = "mh_p_ksads__dep__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__dep__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__dep__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Disruptive Mood Dysregulation Disorder [Parent] (Symptom): Mean"

Description

Computes the summary score mh_p_ksads__dmdd__sx_mean KSADS - Disruptive Mood Dysregulation Disorder [Parent] (Symptom): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__dmdd__outbrst__3perwk_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 1 items missing

Usage

vars_mh_p_ksads__dmdd__sx

compute_mh_p_ksads__dmdd__sx_mean(
  data,
  name = "mh_p_ksads__dmdd__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__dmdd__sx is a character vector of all column names used to compute summary score of mh_p_ksads__dmdd__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Eating Disorders [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__ed__past__sx_mean KSADS - Eating Disorders [Parent] (Symptom - Past): Mean [validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__ed__binge__distrs__past_sx

    • mh_p_ksads__ed__binge__past_sx

    • mh_p_ksads__ed__compbehav__past_sx

    • mh_p_ksads__ed__emac__past_sx

    • mh_p_ksads__ed__fear__obese__past_sx

    • mh_p_ksads__ed__slfwrth__past_sx

    • mh_p_ksads__ed__wghtcntrl__oth__past_sx

    • mh_p_ksads__ed__wghtcntrl__vom__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_p_ksads__ed__past__sx

compute_mh_p_ksads__ed__past__sx_mean(
  data,
  name = "mh_p_ksads__ed__past__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__ed__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__ed__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Eating Disorders [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__ed__pres__sx_mean KSADS - Eating Disorders [Parent] (Symptom - Present): Mean [validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__ed__binge__distrs__pres_sx

    • mh_p_ksads__ed__binge__pres_sx

    • mh_p_ksads__ed__compbehav__pres_sx

    • mh_p_ksads__ed__emac__pres_sx

    • mh_p_ksads__ed__fear__obese__pres_sx

    • mh_p_ksads__ed__slfwrth__pres_sx

    • mh_p_ksads__ed__wghtcntrl__oth__pres_sx

    • mh_p_ksads__ed__wghtcntrl__vom__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_p_ksads__ed__pres__sx

compute_mh_p_ksads__ed__pres__sx_mean(
  data,
  name = "mh_p_ksads__ed__pres__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__ed__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__ed__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Generalized Anxiety Disorder [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__gad__past__sx_mean KSADS - Generalized Anxiety Disorder [Parent] (Symptom - Past): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__gad__worry__6mo__past_sx

    • mh_p_ksads__gad__worry__diffctrl__past_sx

    • mh_p_ksads__gad__worry__excess__past_sx

    • mh_p_ksads__gad__worry__multi__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_mh_p_ksads__gad__past__sx

compute_mh_p_ksads__gad__past__sx_mean(
  data,
  name = "mh_p_ksads__gad__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__gad__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__gad__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Generalized Anxiety Disorder [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__gad__pres__sx_mean KSADS - Generalized Anxiety Disorder [Parent] (Symptom - Present): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__gad__worry__6mo__pres_sx

    • mh_p_ksads__gad__worry__diffctrl__pres_sx

    • mh_p_ksads__gad__worry__excess__pres_sx

    • mh_p_ksads__gad__worry__multi__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_mh_p_ksads__gad__pres__sx

compute_mh_p_ksads__gad__pres__sx_mean(
  data,
  name = "mh_p_ksads__gad__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__gad__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__gad__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Homicidality [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__hom__past__sx_mean KSADS - Homicidality [Parent] (Symptom - Past): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__hom__idea__past_sx

    • mh_p_ksads__hom__plan__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_mh_p_ksads__hom__past__sx

compute_mh_p_ksads__hom__past__sx_mean(
  data,
  name = "mh_p_ksads__hom__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__hom__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__hom__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Homicidality [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__hom__pres__sx_mean KSADS - Homicidality [Parent] (Symptom - Present): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__hom__idea__pres_sx

    • mh_p_ksads__hom__plan__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_mh_p_ksads__hom__pres__sx

compute_mh_p_ksads__hom__pres__sx_mean(
  data,
  name = "mh_p_ksads__hom__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__hom__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__hom__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Obsessive Compulsive Disorder [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__ocd__past__sx_mean KSADS - Obsessive Compulsive Disorder [Parent] (Symptom - Past): Mean [validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__ocd__compuls__past_sx

    • mh_p_ksads__ocd__compuls__prvntanx__past_sx

    • mh_p_ksads__ocd__compuls__tcnsm__past_sx

    • mh_p_ksads__ocd__obsess__intru__past_sx

    • mh_p_ksads__ocd__obsess__past_sx

    • mh_p_ksads__ocd__obsess__tcnsm__past_sx

    • mh_p_ksads__ocd__suprstho__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_mh_p_ksads__ocd__past__sx

compute_mh_p_ksads__ocd__past__sx_mean(
  data,
  name = "mh_p_ksads__ocd__past__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__ocd__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__ocd__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Obsessive Compulsive Disorder [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__ocd__pres__sx_mean KSADS - Obsessive Compulsive Disorder [Parent] (Symptom - Present): Mean [validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__ocd__compuls__pres_sx

    • mh_p_ksads__ocd__compuls__prvntanx__pres_sx

    • mh_p_ksads__ocd__compuls__tcnsm__pres_sx

    • mh_p_ksads__ocd__obsess__intru__pres_sx

    • mh_p_ksads__ocd__obsess__pres_sx

    • mh_p_ksads__ocd__obsess__tcnsm__pres_sx

    • mh_p_ksads__ocd__suprstho__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_mh_p_ksads__ocd__pres__sx

compute_mh_p_ksads__ocd__pres__sx_mean(
  data,
  name = "mh_p_ksads__ocd__pres__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__ocd__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__ocd__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Oppositional Defiant Disorder [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__odd__past__sx_mean KSADS - Oppositional Defiant Disorder [Parent] (Symptom - Past): Mean [validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__odd__angry__past_sx

    • mh_p_ksads__odd__argue__past_sx

    • mh_p_ksads__odd__blame__past_sx

    • mh_p_ksads__odd__delibannoy__past_sx

    • mh_p_ksads__odd__disobey__past_sx

    • mh_p_ksads__odd__temper__past_sx

    • mh_p_ksads__odd__touchy__past_sx

    • mh_p_ksads__odd__vindict__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_p_ksads__odd__past__sx

compute_mh_p_ksads__odd__past__sx_mean(
  data,
  name = "mh_p_ksads__odd__past__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__odd__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__odd__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Oppositional Defiant Disorder [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__odd__pres__sx_mean KSADS - Oppositional Defiant Disorder [Parent] (Symptom - Present): Mean [validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__odd__angry__pres_sx

    • mh_p_ksads__odd__argue__pres_sx

    • mh_p_ksads__odd__blame__pres_sx

    • mh_p_ksads__odd__delibannoy__pres_sx

    • mh_p_ksads__odd__disobey__pres_sx

    • mh_p_ksads__odd__temper__pres_sx

    • mh_p_ksads__odd__touchy__pres_sx

    • mh_p_ksads__odd__vindict__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_p_ksads__odd__pres__sx

compute_mh_p_ksads__odd__pres__sx_mean(
  data,
  name = "mh_p_ksads__odd__pres__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__odd__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__odd__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Panic Disorder [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__panic__past__sx_mean KSADS - Panic Disorder [Parent] (Symptom - Past): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__panic__attack__maladp__past_sx

    • mh_p_ksads__panic__attack__past_sx

    • mh_p_ksads__panic__sympt__past_sx

    • mh_p_ksads__panic__worry__attack__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_mh_p_ksads__panic__past__sx

compute_mh_p_ksads__panic__past__sx_mean(
  data,
  name = "mh_p_ksads__panic__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__panic__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__panic__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Panic Disorder [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__panic__pres__sx_mean KSADS - Panic Disorder [Parent] (Symptom - Present): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__panic__attack__maladp__pres_sx

    • mh_p_ksads__panic__attack__pres_sx

    • mh_p_ksads__panic__sympt__pres_sx

    • mh_p_ksads__panic__worry__attack__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_mh_p_ksads__panic__pres__sx

compute_mh_p_ksads__panic__pres__sx_mean(
  data,
  name = "mh_p_ksads__panic__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__panic__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__panic__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Specific Phobia [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__phobia__past__sx_mean KSADS - Specific Phobia [Parent] (Symptom - Past): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__phobia__avoid__past_sx

    • mh_p_ksads__phobia__fear__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_mh_p_ksads__phobia__past__sx

compute_mh_p_ksads__phobia__past__sx_mean(
  data,
  name = "mh_p_ksads__phobia__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__phobia__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__phobia__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Specific Phobia [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__phobia__pres__sx_mean KSADS - Specific Phobia [Parent] (Symptom - Present): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__phobia__avoid__pres_sx

    • mh_p_ksads__phobia__fear__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_mh_p_ksads__phobia__pres__sx

compute_mh_p_ksads__phobia__pres__sx_mean(
  data,
  name = "mh_p_ksads__phobia__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__phobia__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__phobia__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Psychosis [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__psych__past__sx_mean KSADS - Psychosis [Parent] (Symptom - Past): Mean [validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__psych__delus__oth__past_sx

    • mh_p_ksads__psych__delus__persec__past_sx

    • mh_p_ksads__psych__delus__past_sx

    • mh_p_ksads__psych__halluc__adt__past_sx

    • mh_p_ksads__psych__halluc__clust__past_sx

    • mh_p_ksads__psych__halluc__oth__past_sx

    • mh_p_ksads__psych__halluc__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_mh_p_ksads__psych__past__sx

compute_mh_p_ksads__psych__past__sx_mean(
  data,
  name = "mh_p_ksads__psych__past__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__psych__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__psych__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Psychosis [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__psych__pres__sx_mean KSADS - Psychosis [Parent] (Symptom - Present): Mean [validation: No more than 2 missing or declined]

  • Summarized variables:

    • mh_p_ksads__psych__delus__oth__2wk__pres_sx

    • mh_p_ksads__psych__delus__persec__2wk__pres_sx

    • mh_p_ksads__psych__delus__pres_sx

    • mh_p_ksads__psych__disorg__behav__pres_sx

    • mh_p_ksads__psych__disorg__speech__pres_sx

    • mh_p_ksads__psych__halluc__adt__pres_sx

    • mh_p_ksads__psych__halluc__clust__pres_sx

    • mh_p_ksads__psych__halluc__oth__altw__pres_sx

    • mh_p_ksads__psych__halluc__oth__ap__pres_sx

    • mh_p_ksads__psych__halluc__oth__pres_sx

    • mh_p_ksads__psych__halluc__pres_sx

    • mh_p_ksads__psych__neg__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 12 items missing

Usage

vars_mh_p_ksads__psych__pres__sx

compute_mh_p_ksads__psych__pres__sx_mean(
  data,
  name = "mh_p_ksads__psych__pres__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__psych__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__psych__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Post-Traumatic Stress Disorder [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__ptsd__past__sx_mean KSADS - Post-Traumatic Stress Disorder [Parent] (Symptom - Past): Mean [validation: No more than 4 missing or declined]

  • Summarized variables:

    • mh_p_ksads__ptsd__anhed__past_sx

    • mh_p_ksads__ptsd__avoid__extrmnd__past_sx

    • mh_p_ksads__ptsd__avoid__trmatho__past_sx

    • mh_p_ksads__ptsd__concprob__past_sx

    • mh_p_ksads__ptsd__depersnl__past_sx

    • mh_p_ksads__ptsd__derealztn__past_sx

    • mh_p_ksads__ptsd__detach__past_sx

    • mh_p_ksads__ptsd__distortcog__cause__past_sx

    • mh_p_ksads__ptsd__distortcog__consq__past_sx

    • mh_p_ksads__ptsd__emot__neg__past_sx

    • mh_p_ksads__ptsd__emot__nopos__past_sx

    • mh_p_ksads__ptsd__extrmnd__distrs__past_sx

    • mh_p_ksads__ptsd__flshbck__past_sx

    • mh_p_ksads__ptsd__hyprvigl__past_sx

    • mh_p_ksads__ptsd__intrmnd__distrs__past_sx

    • mh_p_ksads__ptsd__irrit__past_sx

    • mh_p_ksads__ptsd__memloss__past_sx

    • mh_p_ksads__ptsd__negblf__past_sx

    • mh_p_ksads__ptsd__nghtmr__past_sx

    • mh_p_ksads__ptsd__physreact__past_sx

    • mh_p_ksads__ptsd__rckls__past_sx

    • mh_p_ksads__ptsd__sleepdistb__past_sx

    • mh_p_ksads__ptsd__startle__past_sx

    • mh_p_ksads__ptsd__trmatho__intru__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 4 of 24 items missing

Usage

vars_mh_p_ksads__ptsd__past__sx

compute_mh_p_ksads__ptsd__past__sx_mean(
  data,
  name = "mh_p_ksads__ptsd__past__sx_mean",
  max_na = 4,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__ptsd__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__ptsd__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Post-Traumatic Stress Disorder [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__ptsd__pres__sx_mean KSADS - Post-Traumatic Stress Disorder [Parent] (Symptom - Present): Mean [validation: No more than 4 missing or declined]

  • Summarized variables:

    • mh_p_ksads__ptsd__anhed__pres_sx

    • mh_p_ksads__ptsd__avoid__extrmnd__pres_sx

    • mh_p_ksads__ptsd__avoid__trmatho__pres_sx

    • mh_p_ksads__ptsd__concprob__pres_sx

    • mh_p_ksads__ptsd__depersnl__pres_sx

    • mh_p_ksads__ptsd__derealztn__pres_sx

    • mh_p_ksads__ptsd__detach__pres_sx

    • mh_p_ksads__ptsd__distortcog__cause__pres_sx

    • mh_p_ksads__ptsd__distortcog__consq__pres_sx

    • mh_p_ksads__ptsd__emot__neg__pres_sx

    • mh_p_ksads__ptsd__emot__nopos__pres_sx

    • mh_p_ksads__ptsd__extrmnd__distrs__pres_sx

    • mh_p_ksads__ptsd__flshbck__pres_sx

    • mh_p_ksads__ptsd__hyprvigl__pres_sx

    • mh_p_ksads__ptsd__intrmnd__distrs__pres_sx

    • mh_p_ksads__ptsd__irrit__pres_sx

    • mh_p_ksads__ptsd__memloss__pres_sx

    • mh_p_ksads__ptsd__negblf__pres_sx

    • mh_p_ksads__ptsd__nghtmr__pres_sx

    • mh_p_ksads__ptsd__physreact__pres_sx

    • mh_p_ksads__ptsd__rckls__pres_sx

    • mh_p_ksads__ptsd__sleepdistb__pres_sx

    • mh_p_ksads__ptsd__startle__pres_sx

    • mh_p_ksads__ptsd__trmatho__intru__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 4 of 24 items missing

Usage

vars_mh_p_ksads__ptsd__pres__sx

compute_mh_p_ksads__ptsd__pres__sx_mean(
  data,
  name = "mh_p_ksads__ptsd__pres__sx_mean",
  max_na = 4,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__ptsd__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__ptsd__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Separation Anxiety [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__sepanx__past__sx_mean KSADS - Separation Anxiety [Parent] (Symptom - Past): Mean [validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__sepanx__evnt__fear__past_sx

    • mh_p_ksads__sepanx__fig__harm__past_sx

    • mh_p_ksads__sepanx__nghtmr__past_sx

    • mh_p_ksads__sepanx__nofig__fear__past_sx

    • mh_p_ksads__sepanx__nofig__physympt__past_sx

    • mh_p_ksads__sepanx__noschl__past_sx

    • mh_p_ksads__sepanx__nosleep__past_sx

    • mh_p_ksads__sepanx__sep__distrs__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_p_ksads__sepanx__past__sx

compute_mh_p_ksads__sepanx__past__sx_mean(
  data,
  name = "mh_p_ksads__sepanx__past__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__sepanx__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__sepanx__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Separation Anxiety [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__sepanx__pres__sx_mean KSADS - Separation Anxiety [Parent] (Symptom - Present): Mean [validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_p_ksads__sepanx__evnt__fear__pres_sx

    • mh_p_ksads__sepanx__fig__harm__pres_sx

    • mh_p_ksads__sepanx__nghtmr__pres_sx

    • mh_p_ksads__sepanx__nofig__fear__pres_sx

    • mh_p_ksads__sepanx__nofig__physympt__pres_sx

    • mh_p_ksads__sepanx__noschl__pres_sx

    • mh_p_ksads__sepanx__nosleep__pres_sx

    • mh_p_ksads__sepanx__sep__distrs__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_p_ksads__sepanx__pres__sx

compute_mh_p_ksads__sepanx__pres__sx_mean(
  data,
  name = "mh_p_ksads__sepanx__pres__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__sepanx__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__sepanx__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Sleep Problems [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__sleep__past__sx_mean KSADS - Sleep Problems [Parent] (Symptom - Past): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__sleep__insom__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 1 items missing

Usage

vars_mh_p_ksads__sleep__past__sx

compute_mh_p_ksads__sleep__past__sx_mean(
  data,
  name = "mh_p_ksads__sleep__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__sleep__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__sleep__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Sleep Problems [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__sleep__pres__sx_mean KSADS - Sleep Problems [Parent] (Symptom - Present): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__sleep__insom__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 1 items missing

Usage

vars_mh_p_ksads__sleep__pres__sx

compute_mh_p_ksads__sleep__pres__sx_mean(
  data,
  name = "mh_p_ksads__sleep__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__sleep__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__sleep__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Social Anxiety Disorder [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__socanx__past__sx_mean KSADS - Social Anxiety Disorder [Parent] (Symptom - Past): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__socanx__anx__past_sx

    • mh_p_ksads__socanx__avoid__past_sx

    • mh_p_ksads__socanx__fear__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 3 items missing

Usage

vars_mh_p_ksads__socanx__past__sx

compute_mh_p_ksads__socanx__past__sx_mean(
  data,
  name = "mh_p_ksads__socanx__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__socanx__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__socanx__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Social Anxiety Disorder [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__socanx__pres__sx_mean KSADS - Social Anxiety Disorder [Parent] (Symptom - Present): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__socanx__anx__pres_sx

    • mh_p_ksads__socanx__avoid__pres_sx

    • mh_p_ksads__socanx__fear__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 3 items missing

Usage

vars_mh_p_ksads__socanx__pres__sx

compute_mh_p_ksads__socanx__pres__sx_mean(
  data,
  name = "mh_p_ksads__socanx__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__socanx__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__socanx__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Suicidality [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__suic__past__sx_mean KSADS - Suicidality [Parent] (Symptom - Past): Mean [validation: No more than 2 missing or declined]

  • Summarized variables:

    • mh_p_ksads__suic__slfinj__past_sx

    • mh_p_ksads__suic__slfinj__nointnt__past_sx

    • mh_p_ksads__suic__slfinj__intnt__past_sx

    • mh_p_ksads__suic__slfinj__psbldie__past_sx

    • mh_p_ksads__suic__idea__past_sx

    • mh_p_ksads__suic__intnt__past_sx

    • mh_p_ksads__suic__mthd__past_sx

    • mh_p_ksads__suic__plan__past_sx

    • mh_p_ksads__suic__prep__past_sx

    • mh_p_ksads__suic__attmpt__past_sx

    • mh_p_ksads__suic__attmpt__intrpt__past_sx

    • mh_p_ksads__suic__attmpt__psbldie__past_sx

    • mh_p_ksads__suic__wishdead__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 13 items missing

Usage

vars_mh_p_ksads__suic__past__sx

compute_mh_p_ksads__suic__past__sx_mean(
  data,
  name = "mh_p_ksads__suic__past__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__suic__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__suic__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Suicidality [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__suic__pres__sx_mean KSADS - Suicidality [Parent] (Symptom - Present): Mean [validation: No more than 2 missing or declined]

  • Summarized variables:

    • mh_p_ksads__suic__slfinj__pres_sx

    • mh_p_ksads__suic__slfinj__nointnt__pres_sx

    • mh_p_ksads__suic__slfinj__intnt__pres_sx

    • mh_p_ksads__suic__slfinj__psbldie__pres_sx

    • mh_p_ksads__suic__idea__pres_sx

    • mh_p_ksads__suic__intnt__pres_sx

    • mh_p_ksads__suic__mthd__pres_sx

    • mh_p_ksads__suic__plan__pres_sx

    • mh_p_ksads__suic__prep__pres_sx

    • mh_p_ksads__suic__attmpt__pres_sx

    • mh_p_ksads__suic__attmpt__intrpt__pres_sx

    • mh_p_ksads__suic__attmpt__psbldie__pres_sx

    • mh_p_ksads__suic__wishdead__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 13 items missing

Usage

vars_mh_p_ksads__suic__pres__sx

compute_mh_p_ksads__suic__pres__sx_mean(
  data,
  name = "mh_p_ksads__suic__pres__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__suic__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__suic__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Tic Disorders [Parent] (Symptom - Past): Mean"

Description

Computes the summary score mh_p_ksads__tic__past__sx_mean KSADS - Tic Disorders [Parent] (Symptom - Past): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__tic__mtr__past_sx

    • mh_p_ksads__tic__phnc__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_mh_p_ksads__tic__past__sx

compute_mh_p_ksads__tic__past__sx_mean(
  data,
  name = "mh_p_ksads__tic__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__tic__past__sx is a character vector of all column names used to compute summary score of mh_p_ksads__tic__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Tic Disorders [Parent] (Symptom - Present): Mean"

Description

Computes the summary score mh_p_ksads__tic__pres__sx_mean KSADS - Tic Disorders [Parent] (Symptom - Present): Mean [validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_p_ksads__tic__mtr__pres_sx

    • mh_p_ksads__tic__phnc__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_mh_p_ksads__tic__pres__sx

compute_mh_p_ksads__tic__pres__sx_mean(
  data,
  name = "mh_p_ksads__tic__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_p_ksads__tic__pres__sx is a character vector of all column names used to compute summary score of mh_p_ksads__tic__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "Life Events [Parent] (Events): Count"

Description

Computes the summary score mh_p_ple_count Life Events [Parent] (Events): Count

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_003

    • mh_p_ple_004

    • mh_p_ple_005

    • mh_p_ple_006

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_009

    • mh_p_ple_010

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_016

    • mh_p_ple_017

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_020

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

vars_mh_p_ple

vars_mh_p_ple__exp

compute_mh_p_ple_count(
  data,
  name = "mh_p_ple_count",
  combine = TRUE,
  max_na = NULL
)

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Format

vars_mh_p_ple is a character vector of all column names used to compute summary score of mh_p_ple.

vars_mh_p_ple__exp is a character vector of all column names used to compute summary score of mh_p_ple__exp.

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_sum__v01 Life Events [Parent] (Severity of Good Events): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

vars_mh_p_ple__exp__v01

compute_mh_p_ple__severity__good_sum__v01(
  data,
  name = "mh_p_ple__severity__good_sum__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_p_ple__exp__v01 is a character vector of all column names used to compute summary score of mh_p_ple__exp.

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_sum__v02 Life Events [Parent] (Severity of Good Events): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 32 items missing

Usage

vars_mh_p_ple__exp__v02

compute_mh_p_ple__severity__good_sum__v02(
  data,
  name = "mh_p_ple__severity__good_sum__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_p_ple__exp__v02 is a character vector of all column names used to compute summary score of mh_p_ple__exp.

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Sum - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_sum__v03 Life Events [Parent] (Severity of Good Events): Sum - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_003

    • mh_p_ple__exp_004

    • mh_p_ple__exp_005

    • mh_p_ple__exp_006

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_009

    • mh_p_ple__exp_010

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_016

    • mh_p_ple__exp_017

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_020

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_025

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_029

    • mh_p_ple__exp_030

    • mh_p_ple__exp_031

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

vars_mh_p_ple__exp__v03

compute_mh_p_ple__severity__good_sum__v03(
  data,
  name = "mh_p_ple__severity__good_sum__v03",
  events = "ses-06A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_p_ple__exp__v03 is a character vector of all column names used to compute summary score of mh_p_ple__exp.

Value

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


Compute "Life Events [Parent] (Severity of Good Events): Sum - Version 4 (Starting at Year 7) [Validation: No more than 4 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity__good_sum__v04 Life Events [Parent] (Severity of Good Events): Sum - Version 4 (Starting at Year 7) [Validation: No more than 4 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__exp_001

    • mh_p_ple__exp_002

    • mh_p_ple__exp_007

    • mh_p_ple__exp_008

    • mh_p_ple__exp_011

    • mh_p_ple__exp_012

    • mh_p_ple__exp_013

    • mh_p_ple__exp_014

    • mh_p_ple__exp_015

    • mh_p_ple__exp_018

    • mh_p_ple__exp_019

    • mh_p_ple__exp_021

    • mh_p_ple__exp_022

    • mh_p_ple__exp_023

    • mh_p_ple__exp_024

    • mh_p_ple__exp_026

    • mh_p_ple__exp_027

    • mh_p_ple__exp_028

    • mh_p_ple__exp_032

    • mh_p_ple__exp_033

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 4 of 20 items missing

Usage

vars_mh_p_ple__exp__v04

compute_mh_p_ple__severity__good_sum__v04(
  data,
  name = "mh_p_ple__severity__good_sum__v04",
  events = "ses-07A",
  combine = TRUE,
  max_na = 4
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 4).

Format

vars_mh_p_ple__exp__v04 is a character vector of all column names used to compute summary score of mh_p_ple__exp.

Value

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


Compute "Life Events [Parent] (Severity): Sum [Validation: No more than 5 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_sum Life Events [Parent] (Severity): Sum [Validation: No more than 5 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

vars_mh_p_ple__severity

compute_mh_p_ple__severity_sum(
  data,
  name = "mh_p_ple__severity_sum",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Format

vars_mh_p_ple__severity is a character vector of all column names used to compute summary score of mh_p_ple__severity.

Value

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


Compute "Life Events [Parent] (Severity): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_sum__v01 Life Events [Parent] (Severity): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

vars_mh_p_ple__severity__v01

compute_mh_p_ple__severity_sum__v01(
  data,
  name = "mh_p_ple__severity_sum__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_p_ple__severity__v01 is a character vector of all column names used to compute summary score of mh_p_ple__severity.

Value

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


Compute "Life Events [Parent] (Severity): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_sum__v02 Life Events [Parent] (Severity): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 32 items missing

Usage

vars_mh_p_ple__severity__v02

compute_mh_p_ple__severity_sum__v02(
  data,
  name = "mh_p_ple__severity_sum__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_p_ple__severity__v02 is a character vector of all column names used to compute summary score of mh_p_ple__severity.

Value

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


Compute "Life Events [Parent] (Severity): Sum - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_sum__v03 Life Events [Parent] (Severity): Sum - Version 3 (Year 6 ) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_003

    • mh_p_ple__severity_004

    • mh_p_ple__severity_005

    • mh_p_ple__severity_006

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_009

    • mh_p_ple__severity_010

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_016

    • mh_p_ple__severity_017

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_020

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_025

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_029

    • mh_p_ple__severity_030

    • mh_p_ple__severity_031

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

vars_mh_p_ple__severity__v03

compute_mh_p_ple__severity_sum__v03(
  data,
  name = "mh_p_ple__severity_sum__v03",
  events = "ses-06A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_p_ple__severity__v03 is a character vector of all column names used to compute summary score of mh_p_ple__severity.

Value

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


Compute "Life Events [Parent] (Severity): Sum - Version 4 (Starting at Year 7) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_p_ple__severity_sum__v04 Life Events [Parent] (Severity): Sum - Version 4 (Starting at Year 7) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_p_ple__severity_001

    • mh_p_ple__severity_002

    • mh_p_ple__severity_007

    • mh_p_ple__severity_008

    • mh_p_ple__severity_011

    • mh_p_ple__severity_012

    • mh_p_ple__severity_013

    • mh_p_ple__severity_014

    • mh_p_ple__severity_015

    • mh_p_ple__severity_018

    • mh_p_ple__severity_019

    • mh_p_ple__severity_021

    • mh_p_ple__severity_022

    • mh_p_ple__severity_023

    • mh_p_ple__severity_024

    • mh_p_ple__severity_026

    • mh_p_ple__severity_027

    • mh_p_ple__severity_028

    • mh_p_ple__severity_032

    • mh_p_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 4 of 20 items missing

Usage

vars_mh_p_ple__severity__v04

compute_mh_p_ple__severity_sum__v04(
  data,
  name = "mh_p_ple__severity_sum__v04",
  events = "ses-07A",
  combine = TRUE,
  max_na = 4
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 4).

Format

vars_mh_p_ple__severity__v04 is a character vector of all column names used to compute summary score of mh_p_ple__severity.

Value

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


Compute "Life Events [Parent] (Events): Count - Version 1 (Year 3)"

Description

Computes the summary score mh_p_ple_count__v01 Life Events [Parent] (Events): Count - Version 1 (Year 3)

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_003

    • mh_p_ple_004

    • mh_p_ple_005

    • mh_p_ple_006

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_009

    • mh_p_ple_010

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_016

    • mh_p_ple_017

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_020

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_025

    • mh_p_ple_026

    • mh_p_ple_027

    • mh_p_ple_028

    • mh_p_ple_029

    • mh_p_ple_030

    • mh_p_ple_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

vars_mh_p_ple__v01

compute_mh_p_ple_count__v01(
  data,
  name = "mh_p_ple_count__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Format

vars_mh_p_ple__v01 is a character vector of all column names used to compute summary score of mh_p_ple.

Value

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


Compute "Life Events [Parent] (Events): Count - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_p_ple_count__v02 Life Events [Parent] (Events): Count - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_003

    • mh_p_ple_004

    • mh_p_ple_005

    • mh_p_ple_006

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_009

    • mh_p_ple_010

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_016

    • mh_p_ple_017

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_020

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_025

    • mh_p_ple_026

    • mh_p_ple_027

    • mh_p_ple_028

    • mh_p_ple_029

    • mh_p_ple_030

    • mh_p_ple_031

    • mh_p_ple_032

  • Excluded values:

    • 444

    • 777

    • 999

Usage

vars_mh_p_ple__v02

compute_mh_p_ple_count__v02(
  data,
  name = "mh_p_ple_count__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Format

vars_mh_p_ple__v02 is a character vector of all column names used to compute summary score of mh_p_ple.

Value

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


Compute "Life Events [Parent] (Events): Count - Version 3 (Year 6)"

Description

Computes the summary score mh_p_ple_count__v03 Life Events [Parent] (Events): Count - Version 3 (Year 6)

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_003

    • mh_p_ple_004

    • mh_p_ple_005

    • mh_p_ple_006

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_009

    • mh_p_ple_010

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_016

    • mh_p_ple_017

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_020

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_025

    • mh_p_ple_026

    • mh_p_ple_027

    • mh_p_ple_028

    • mh_p_ple_029

    • mh_p_ple_030

    • mh_p_ple_031

    • mh_p_ple_032

    • mh_p_ple_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

vars_mh_p_ple__v03

compute_mh_p_ple_count__v03(
  data,
  name = "mh_p_ple_count__v03",
  events = "ses-06A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Format

vars_mh_p_ple__v03 is a character vector of all column names used to compute summary score of mh_p_ple.

Value

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


Compute "Life Events [Parent] (Events): Count - Version 4 (Starting at Year 7)"

Description

Computes the summary score mh_p_ple_count__v04 Life Events [Parent] (Events): Count - Version 4 (Starting at Year 7)

  • Summarized variables:

    • mh_p_ple_001

    • mh_p_ple_002

    • mh_p_ple_007

    • mh_p_ple_008

    • mh_p_ple_011

    • mh_p_ple_012

    • mh_p_ple_013

    • mh_p_ple_014

    • mh_p_ple_015

    • mh_p_ple_018

    • mh_p_ple_019

    • mh_p_ple_021

    • mh_p_ple_022

    • mh_p_ple_023

    • mh_p_ple_024

    • mh_p_ple_026

    • mh_p_ple_027

    • mh_p_ple_028

    • mh_p_ple_032

    • mh_p_ple_033

  • Excluded values:

    • 444

    • 777

    • 999

Usage

vars_mh_p_ple__v04

compute_mh_p_ple_count__v04(
  data,
  name = "mh_p_ple_count__v04",
  events = "ses-07A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Format

vars_mh_p_ple__v04 is a character vector of all column names used to compute summary score of mh_p_ple.

Value

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


Compute "Short Social Responsiveness Scale [Parent]: Number missing"

Description

Computes the summary score mh_p_ssrs_nm Short Social Responsiveness Scale [Parent]: Number missing

  • Summarized variables:

    • mh_p_ssrs_001

    • mh_p_ssrs_002

    • mh_p_ssrs_003

    • mh_p_ssrs_004

    • mh_p_ssrs_005

    • mh_p_ssrs_006

    • mh_p_ssrs_007

    • mh_p_ssrs_008

    • mh_p_ssrs_009

    • mh_p_ssrs_010

    • mh_p_ssrs_011

  • Excluded values: none

Usage

vars_mh_p_ssrs

compute_mh_p_ssrs_nm(
  data,
  name = "mh_p_ssrs_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_p_ssrs is vector of all column names used to compute summary score of mh_p_ssrs scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_p_ssrs_nm(data) |>
  select(
    any_of(c("mh_p_ssrs_nm", vars_mh_p_ssrs))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher]: Number missing"

Description

Computes the summary score mh_t_bpm_nm Brief Problem Monitor [Teacher]: Number missing

  • Summarized variables:

    • mh_t_bpm__attn_001

    • mh_t_bpm__attn_002

    • mh_t_bpm__attn_003

    • mh_t_bpm__attn_004

    • mh_t_bpm__attn_005

    • mh_t_bpm__attn_006

    • mh_t_bpm__ext_001

    • mh_t_bpm__ext_002

    • mh_t_bpm__ext_003

    • mh_t_bpm__ext_004

    • mh_t_bpm__ext_005

    • mh_t_bpm__ext_006

    • mh_t_bpm__int_001

    • mh_t_bpm__int_002

    • mh_t_bpm__int_003

    • mh_t_bpm__int_004

    • mh_t_bpm__int_005

    • mh_t_bpm__int_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_t_bpm

compute_mh_t_bpm_nm(
  data,
  name = "mh_t_bpm_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.

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.

Format

vars_mh_t_bpm is vector of all column names used to compute summary score of mh_t_bpm scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_t_bpm_nm(data) |>
  select(
    any_of(c("mh_t_bpm_nm", vars_mh_t_bpm))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher] (Attention): Number missing"

Description

Computes the summary score mh_t_bpm__attn_nm Brief Problem Monitor [Teacher] (Attention): Number missing

  • Summarized variables:

    • mh_t_bpm__attn_001

    • mh_t_bpm__attn_002

    • mh_t_bpm__attn_003

    • mh_t_bpm__attn_004

    • mh_t_bpm__attn_005

    • mh_t_bpm__attn_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_t_bpm__attn

compute_mh_t_bpm__attn_nm(
  data,
  name = "mh_t_bpm__attn_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.

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.

Format

vars_mh_t_bpm__attn is vector of all column names used to compute summary score of mh_t_bpm__attn scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_t_bpm__attn_nm(data) |>
  select(
    any_of(c("mh_t_bpm__attn_nm", vars_mh_t_bpm__attn))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher] (Externalizing): Number missing"

Description

Computes the summary score mh_t_bpm__ext_nm Brief Problem Monitor [Teacher] (Externalizing): Number missing

  • Summarized variables:

    • mh_t_bpm__ext_001

    • mh_t_bpm__ext_002

    • mh_t_bpm__ext_003

    • mh_t_bpm__ext_004

    • mh_t_bpm__ext_005

    • mh_t_bpm__ext_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_t_bpm__ext

compute_mh_t_bpm__ext_nm(
  data,
  name = "mh_t_bpm__ext_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.

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.

Format

vars_mh_t_bpm__ext is vector of all column names used to compute summary score of mh_t_bpm__ext scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_t_bpm__ext_nm(data) |>
  select(
    any_of(c("mh_t_bpm__ext_nm", vars_mh_t_bpm__ext))
  )

## End(Not run)

Compute "Brief Problem Monitor [Teacher] (Internalizing): Number missing"

Description

Computes the summary score mh_t_bpm__int_nm Brief Problem Monitor [Teacher] (Internalizing): Number missing

  • Summarized variables:

    • mh_t_bpm__int_001

    • mh_t_bpm__int_002

    • mh_t_bpm__int_003

    • mh_t_bpm__int_004

    • mh_t_bpm__int_005

    • mh_t_bpm__int_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_t_bpm__int

compute_mh_t_bpm__int_nm(
  data,
  name = "mh_t_bpm__int_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.

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.

Format

vars_mh_t_bpm__int is vector of all column names used to compute summary score of mh_t_bpm__int scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_t_bpm__int_nm(data) |>
  select(
    any_of(c("mh_t_bpm__int_nm", vars_mh_t_bpm__int))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Drive): Number missing"

Description

Computes the summary score mh_y_bisbas__bas__dr_nm The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Drive): Number missing

  • Summarized variables:

    • mh_y_bisbas__bas__dr_001

    • mh_y_bisbas__bas__dr_002

    • mh_y_bisbas__bas__dr_003

    • mh_y_bisbas__bas__dr_004

  • Excluded values: none

Usage

vars_mh_y_bisbas__bas__dr

compute_mh_y_bisbas__bas__dr_nm(
  data,
  name = "mh_y_bisbas__bas__dr_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_bisbas__bas__dr is vector of all column names used to compute summary score of mh_y_bisbas__bas__dr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bisbas__bas__dr_nm(data) |>
  select(
    any_of(c("mh_y_bisbas__bas__dr_nm", vars_mh_y_bisbas__bas__dr))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Fun Seeking): Number missing"

Description

Computes the summary score mh_y_bisbas__bas__fs_nm The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Fun Seeking): Number missing

  • Summarized variables:

    • mh_y_bisbas__bas__fs_001

    • mh_y_bisbas__bas__fs_002

    • mh_y_bisbas__bas__fs_003

    • mh_y_bisbas__bas__fs_004

  • Excluded values: none

Usage

vars_mh_y_bisbas__bas__fs

compute_mh_y_bisbas__bas__fs_nm(
  data,
  name = "mh_y_bisbas__bas__fs_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_bisbas__bas__fs is vector of all column names used to compute summary score of mh_y_bisbas__bas__fs scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bisbas__bas__fs_nm(data) |>
  select(
    any_of(c("mh_y_bisbas__bas__fs_nm", vars_mh_y_bisbas__bas__fs))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Reward Responsiveness): Number missing"

Description

Computes the summary score mh_y_bisbas__bas__rr_nm The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BAS Reward Responsiveness): Number missing

  • Summarized variables:

    • mh_y_bisbas__bas__rr_001

    • mh_y_bisbas__bas__rr_002

    • mh_y_bisbas__bas__rr_003

    • mh_y_bisbas__bas__rr_004

    • mh_y_bisbas__bas__rr_005

  • Excluded values: none

Usage

vars_mh_y_bisbas__bas__rr

compute_mh_y_bisbas__bas__rr_nm(
  data,
  name = "mh_y_bisbas__bas__rr_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_bisbas__bas__rr is vector of all column names used to compute summary score of mh_y_bisbas__bas__rr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bisbas__bas__rr_nm(data) |>
  select(
    any_of(c("mh_y_bisbas__bas__rr_nm", vars_mh_y_bisbas__bas__rr))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] ((BAS Reward Responsiveness (modified)): Number missing"

Description

Computes the summary score mh_y_bisbas__bas__rr_nm__v01 The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] ((BAS Reward Responsiveness (modified)): Number missing

  • Summarized variables:

    • mh_y_bisbas__bas__rr_001

    • mh_y_bisbas__bas__rr_002

    • mh_y_bisbas__bas__rr_004

    • mh_y_bisbas__bas__rr_005

  • Excluded values: none

Usage

vars_mh_y_bisbas__bas__rr__v01

compute_mh_y_bisbas__bas__rr_nm__v01(
  data,
  name = "mh_y_bisbas__bas__rr_nm__v01",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_bisbas__bas__rr__v01 is vector of all column names used to compute summary score of mh_y_bisbas__bas__rr__v01 scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bisbas__bas__rr_nm__v01(data) |>
  select(
    any_of(c("mh_y_bisbas__bas__rr_nm__v01", vars_mh_y_bisbas__bas__rr__v01))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BIS): Number missing"

Description

Computes the summary score mh_y_bisbas__bis_nm The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BIS): Number missing

  • Summarized variables:

    • mh_y_bisbas__bis_001

    • mh_y_bisbas__bis_002

    • mh_y_bisbas__bis_003

    • mh_y_bisbas__bis_004

    • mh_y_bisbas__bis_005

    • mh_y_bisbas__bis_006

    • mh_y_bisbas__bis_007

  • Excluded values: none

Usage

vars_mh_y_bisbas__bis

compute_mh_y_bisbas__bis_nm(
  data,
  name = "mh_y_bisbas__bis_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_bisbas__bis is vector of all column names used to compute summary score of mh_y_bisbas__bis scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bisbas__bis_nm(data) |>
  select(
    any_of(c("mh_y_bisbas__bis_nm", vars_mh_y_bisbas__bis))
  )

## End(Not run)

Compute "The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BIS (modified)): Number missing"

Description

Computes the summary score mh_y_bisbas__bis_nm__v01 The Behavioral Inhibition System/Behavioral Activation System Scales [Youth] (BIS (modified)): Number missing

  • Summarized variables:

    • mh_y_bisbas__bis_002

    • mh_y_bisbas__bis_003

    • mh_y_bisbas__bis_004

    • mh_y_bisbas__bis_006

  • Excluded values: none

Usage

vars_mh_y_bisbas__bis__v01

compute_mh_y_bisbas__bis_nm__v01(
  data,
  name = "mh_y_bisbas__bis_nm__v01",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_bisbas__bis__v01 is vector of all column names used to compute summary score of mh_y_bisbas__bis__v01 scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bisbas__bis_nm__v01(data) |>
  select(
    any_of(c("mh_y_bisbas__bis_nm__v01", vars_mh_y_bisbas__bis__v01))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth]: Number missing"

Description

Computes the summary score mh_y_bpm_nm Brief Problem Monitor [Youth]: Number missing

  • Summarized variables:

    • mh_y_bpm__attn_001

    • mh_y_bpm__attn_002

    • mh_y_bpm__attn_003

    • mh_y_bpm__attn_004

    • mh_y_bpm__attn_005

    • mh_y_bpm__attn_006

    • mh_y_bpm__ext_001

    • mh_y_bpm__ext_002

    • mh_y_bpm__ext_003

    • mh_y_bpm__ext_004

    • mh_y_bpm__ext_005

    • mh_y_bpm__ext_006

    • mh_y_bpm__ext_007

    • mh_y_bpm__int_001

    • mh_y_bpm__int_002

    • mh_y_bpm__int_003

    • mh_y_bpm__int_004

    • mh_y_bpm__int_005

    • mh_y_bpm__int_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_bpm

compute_mh_y_bpm_nm(
  data,
  name = "mh_y_bpm_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.

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.

Format

vars_mh_y_bpm is vector of all column names used to compute summary score of mh_y_bpm scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bpm_nm(data) |>
  select(
    any_of(c("mh_y_bpm_nm", vars_mh_y_bpm))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth] (Attention): Number missing"

Description

Computes the summary score mh_y_bpm__attn_nm Brief Problem Monitor [Youth] (Attention): Number missing

  • Summarized variables:

    • mh_y_bpm__attn_001

    • mh_y_bpm__attn_002

    • mh_y_bpm__attn_003

    • mh_y_bpm__attn_004

    • mh_y_bpm__attn_005

    • mh_y_bpm__attn_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_bpm__attn

compute_mh_y_bpm__attn_nm(
  data,
  name = "mh_y_bpm__attn_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.

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.

Format

vars_mh_y_bpm__attn is vector of all column names used to compute summary score of mh_y_bpm__attn scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bpm__attn_nm(data) |>
  select(
    any_of(c("mh_y_bpm__attn_nm", vars_mh_y_bpm__attn))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth] (Externalizing): Number missing"

Description

Computes the summary score mh_y_bpm__ext_nm Brief Problem Monitor [Youth] (Externalizing): Number missing

  • Summarized variables:

    • mh_y_bpm__ext_001

    • mh_y_bpm__ext_002

    • mh_y_bpm__ext_003

    • mh_y_bpm__ext_004

    • mh_y_bpm__ext_005

    • mh_y_bpm__ext_006

    • mh_y_bpm__ext_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_bpm__ext

compute_mh_y_bpm__ext_nm(
  data,
  name = "mh_y_bpm__ext_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.

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.

Format

vars_mh_y_bpm__ext is vector of all column names used to compute summary score of mh_y_bpm__ext scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bpm__ext_nm(data) |>
  select(
    any_of(c("mh_y_bpm__ext_nm", vars_mh_y_bpm__ext))
  )

## End(Not run)

Compute "Brief Problem Monitor [Youth] (Internalizing): Number missing"

Description

Computes the summary score mh_y_bpm__int_nm Brief Problem Monitor [Youth] (Internalizing): Number missing

  • Summarized variables:

    • mh_y_bpm__int_001

    • mh_y_bpm__int_002

    • mh_y_bpm__int_003

    • mh_y_bpm__int_004

    • mh_y_bpm__int_005

    • mh_y_bpm__int_006

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_bpm__int

compute_mh_y_bpm__int_nm(
  data,
  name = "mh_y_bpm__int_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.

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.

Format

vars_mh_y_bpm__int is vector of all column names used to compute summary score of mh_y_bpm__int scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_bpm__int_nm(data) |>
  select(
    any_of(c("mh_y_bpm__int_nm", vars_mh_y_bpm__int))
  )

## End(Not run)

Compute "Emotion Regulation Questionnaire [Youth] (Reappraisal): Mean"

Description

Computes the summary score mh_y_erq__reapp_mean Emotion Regulation Questionnaire [Youth] (Reappraisal): Mean

  • Summarized variables:

    • mh_y_erq__reapp_001

    • mh_y_erq__reapp_002

    • mh_y_erq__reapp_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

vars_mh_y_erq__reapp

compute_mh_y_erq__reapp_mean(
  data,
  name = "mh_y_erq__reapp_mean",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_erq__reapp is vector of all column names used to compute summary score of mh_y_erq__reapp scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_erq__reapp_mean(data) |>
  select(
    any_of(c("mh_y_erq__reapp_mean", vars_mh_y_erq__reapp))
  )

## End(Not run)

Compute "Emotion Regulation Questionnaire [Youth] (Suppression): Mean"

Description

Computes the summary score mh_y_erq__suppr_mean Emotion Regulation Questionnaire [Youth] (Suppression): Mean

  • Summarized variables:

    • mh_y_erq__suppr_001

    • mh_y_erq__suppr_002

    • mh_y_erq__suppr_003

  • Excluded values:

    • 777

  • Validation criterion: none of 3 items missing

Usage

vars_mh_y_erq__suppr

compute_mh_y_erq__suppr_mean(
  data,
  name = "mh_y_erq__suppr_mean",
  max_na = 0,
  exclude = c("777"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_erq__suppr is vector of all column names used to compute summary score of mh_y_erq__suppr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_erq__suppr_mean(data) |>
  select(
    any_of(c("mh_y_erq__suppr_mean", vars_mh_y_erq__suppr))
  )

## End(Not run)

Compute "KSADS - Bipolar Disorders [Youth] (Symptom - Past): Mean "

Description

Computes the summary score mh_y_ksads__bpd__past__sx_mean KSADS - Bipolar Disorders [Youth] (Symptom - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • mh_y_ksads__bpd__distract__incr__past_sx

    • mh_y_ksads__bpd__distract__past_sx

    • mh_y_ksads__bpd__enrg__incr__past_sx

    • mh_y_ksads__bpd__flgtid__past_sx

    • mh_y_ksads__bpd__goaldir__incr__past_sx

    • mh_y_ksads__bpd__grndios__past_sx

    • mh_y_ksads__bpd__hyprsex__past_sx

    • mh_y_ksads__bpd__irrit__expl__past_sx

    • mh_y_ksads__bpd__irrit__manic__past_sx

    • mh_y_ksads__bpd__mood__elv__past_sx

    • mh_y_ksads__bpd__mood__euph__past_sx

    • mh_y_ksads__bpd__prspch__past_sx

    • mh_y_ksads__bpd__psymot__agit__past_sx

    • mh_y_ksads__bpd__ractho__past_sx

    • mh_y_ksads__bpd__riskactv__past_sx

    • mh_y_ksads__bpd__slpdecr__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 16 items missing

Usage

vars_mh_y_ksads__bpd__past__sx

compute_mh_y_ksads__bpd__past__sx_mean(
  data,
  name = "mh_y_ksads__bpd__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__bpd__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__bpd__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Bipolar Disorders [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__bpd__pres__sx_mean KSADS - Bipolar Disorders [Youth] (Symptom - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • mh_y_ksads__bpd__distract__incr__pres_sx

    • mh_y_ksads__bpd__distract__pres_sx

    • mh_y_ksads__bpd__enrg__incr__pres_sx

    • mh_y_ksads__bpd__flgtid__pres_sx

    • mh_y_ksads__bpd__goaldir__incr__pres_sx

    • mh_y_ksads__bpd__grndios__pres_sx

    • mh_y_ksads__bpd__hyprsex__pres_sx

    • mh_y_ksads__bpd__irrit__expl__pres_sx

    • mh_y_ksads__bpd__irrit__manic__pres_sx

    • mh_y_ksads__bpd__mood__elv__pres_sx

    • mh_y_ksads__bpd__mood__euph__pres_sx

    • mh_y_ksads__bpd__prspch__pres_sx

    • mh_y_ksads__bpd__psymot__agit__pres_sx

    • mh_y_ksads__bpd__ractho__pres_sx

    • mh_y_ksads__bpd__riskactv__pres_sx

    • mh_y_ksads__bpd__slpdecr__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 16 items missing

Usage

vars_mh_y_ksads__bpd__pres__sx

compute_mh_y_ksads__bpd__pres__sx_mean(
  data,
  name = "mh_y_ksads__bpd__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__bpd__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__bpd__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Conduct Disorder [Youth] (Symptom - Past): Mean "

Description

Computes the summary score mh_y_ksads__cond__past__sx_mean KSADS - Conduct Disorder [Youth] (Symptom - Past): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • mh_y_ksads__cond__breakin__past_sx

    • mh_y_ksads__cond__bully__past_sx

    • mh_y_ksads__cond__fight__past_sx

    • mh_y_ksads__cond__fire__past_sx

    • mh_y_ksads__cond__lies__past_sx

    • mh_y_ksads__cond__outlate__past_sx

    • mh_y_ksads__cond__physcruel__anml__past_sx

    • mh_y_ksads__cond__physcruel__ppl__past_sx

    • mh_y_ksads__cond__rob__past_sx

    • mh_y_ksads__cond__runaway__past_sx

    • mh_y_ksads__cond__steal__past_sx

    • mh_y_ksads__cond__truant__past_sx

    • mh_y_ksads__cond__vandal__past_sx

    • mh_y_ksads__cond__weapon__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_mh_y_ksads__cond__past__sx

compute_mh_y_ksads__cond__past__sx_mean(
  data,
  name = "mh_y_ksads__cond__past__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__cond__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__cond__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Conduct Disorder [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__cond__pres__sx_mean KSADS - Conduct Disorder [Youth] (Symptom - Present): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • mh_y_ksads__cond__breakin__pres_sx

    • mh_y_ksads__cond__bully__pres_sx

    • mh_y_ksads__cond__fight__pres_sx

    • mh_y_ksads__cond__fire__pres_sx

    • mh_y_ksads__cond__lies__pres_sx

    • mh_y_ksads__cond__outlate__pres_sx

    • mh_y_ksads__cond__physcruel__anml__pres_sx

    • mh_y_ksads__cond__physcruel__ppl__pres_sx

    • mh_y_ksads__cond__rob__pres_sx

    • mh_y_ksads__cond__runaway__pres_sx

    • mh_y_ksads__cond__steal__pres_sx

    • mh_y_ksads__cond__truant__pres_sx

    • mh_y_ksads__cond__vandal__pres_sx

    • mh_y_ksads__cond__weapon__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_mh_y_ksads__cond__pres__sx

compute_mh_y_ksads__cond__pres__sx_mean(
  data,
  name = "mh_y_ksads__cond__pres__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__cond__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__cond__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Depressive Disorders [Youth] (Symptom - Past): Mean "

Description

Computes the summary score mh_y_ksads__dep__past__sx_mean KSADS - Depressive Disorders [Youth] (Symptom - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • mh_y_ksads__dep__anhed__past_sx

    • mh_y_ksads__dep__appdecr__past_sx

    • mh_y_ksads__dep__conc__past_sx

    • mh_y_ksads__dep__fatig__past_sx

    • mh_y_ksads__dep__glt__past_sx

    • mh_y_ksads__dep__hplss__past_sx

    • mh_y_ksads__dep__hyprsom__past_sx

    • mh_y_ksads__dep__incapp__past_sx

    • mh_y_ksads__dep__indec__past_sx

    • mh_y_ksads__dep__insom__past_sx

    • mh_y_ksads__dep__irrit__past_sx

    • mh_y_ksads__dep__mood__past_sx

    • mh_y_ksads__dep__psymot__agit__past_sx

    • mh_y_ksads__dep__psymot__rtrd__past_sx

    • mh_y_ksads__dep__slfestmdecr__past_sx

    • mh_y_ksads__dep__wghtgain__past_sx

    • mh_y_ksads__dep__wghtloss__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 17 items missing

Usage

vars_mh_y_ksads__dep__past__sx

compute_mh_y_ksads__dep__past__sx_mean(
  data,
  name = "mh_y_ksads__dep__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__dep__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__dep__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Depressive Disorders [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__dep__pres__sx_mean KSADS - Depressive Disorders [Youth] (Symptom - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • mh_y_ksads__dep__anhed__pres_sx

    • mh_y_ksads__dep__appdecr__pres_sx

    • mh_y_ksads__dep__conc__pres_sx

    • mh_y_ksads__dep__fatig__pres_sx

    • mh_y_ksads__dep__glt__pres_sx

    • mh_y_ksads__dep__hplss__pres_sx

    • mh_y_ksads__dep__hyprsom__pres_sx

    • mh_y_ksads__dep__incapp__pres_sx

    • mh_y_ksads__dep__indec__pres_sx

    • mh_y_ksads__dep__irrit__pres_sx

    • mh_y_ksads__dep__mood__pres_sx

    • mh_y_ksads__dep__psymot__agit__pres_sx

    • mh_y_ksads__dep__psymot__rtrd__pres_sx

    • mh_y_ksads__dep__slfestmdecr__pres_sx

    • mh_y_ksads__dep__wghtgain__pres_sx

    • mh_y_ksads__dep__wghtloss__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 17 items missing

Usage

vars_mh_y_ksads__dep__pres__sx

compute_mh_y_ksads__dep__pres__sx_mean(
  data,
  name = "mh_y_ksads__dep__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__dep__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__dep__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Disruptive Mood Dysregulation Disorder [Youth] (Symptom): Mean"

Description

Computes the summary score mh_y_ksads__dmdd__sx_mean KSADS - Disruptive Mood Dysregulation Disorder [Youth] (Symptom): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_y_ksads__dmdd__outbrst__3perwk_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 1 items missing

Usage

vars_mh_y_ksads__dmdd__sx

compute_mh_y_ksads__dmdd__sx_mean(
  data,
  name = "mh_y_ksads__dmdd__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__dmdd__sx is a character vector of all column names used to compute summary score of mh_y_ksads__dmdd__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Eating Disorders [Youth] (Symptom - Past): Mean"

Description

Computes the summary score mh_y_ksads__ed__past__sx_mean KSADS - Eating Disorders [Youth] (Symptom - Past): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_y_ksads__ed__binge__distrs__past_sx

    • mh_y_ksads__ed__binge__past_sx

    • mh_y_ksads__ed__compbehav__past_sx

    • mh_y_ksads__ed__emac__past_sx

    • mh_y_ksads__ed__fear__obese__past_sx

    • mh_y_ksads__ed__slfwrth__past_sx

    • mh_y_ksads__ed__wghtcntrl__oth__past_sx

    • mh_y_ksads__ed__wghtcntrl__vom__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_y_ksads__ed__past__sx

compute_mh_y_ksads__ed__past__sx_mean(
  data,
  name = "mh_y_ksads__ed__past__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__ed__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__ed__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Eating Disorders [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__ed__pres__sx_mean KSADS - Eating Disorders [Youth] (Symptom - Present): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_y_ksads__ed__binge__distrs__pres_sx

    • mh_y_ksads__ed__binge__pres_sx

    • mh_y_ksads__ed__compbehav__pres_sx

    • mh_y_ksads__ed__emac__pres_sx

    • mh_y_ksads__ed__fear__obese__pres_sx

    • mh_y_ksads__ed__slfwrth__pres_sx

    • mh_y_ksads__ed__wghtcntrl__oth__pres_sx

    • mh_y_ksads__ed__wghtcntrl__vom__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 8 items missing

Usage

vars_mh_y_ksads__ed__pres__sx

compute_mh_y_ksads__ed__pres__sx_mean(
  data,
  name = "mh_y_ksads__ed__pres__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__ed__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__ed__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Generalized Anxiety Disorder [Youth] (Symptom - Past): Mean"

Description

Computes the summary score mh_y_ksads__gad__past__sx_mean KSADS - Generalized Anxiety Disorder [Youth] (Symptom - Past): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_y_ksads__gad__worry__6mo__past_sx

    • mh_y_ksads__gad__worry__diffctrl__past_sx

    • mh_y_ksads__gad__worry__excess__past_sx

    • mh_y_ksads__gad__worry__multi__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_mh_y_ksads__gad__past__sx

compute_mh_y_ksads__gad__past__sx_mean(
  data,
  name = "mh_y_ksads__gad__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__gad__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__gad__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Generalized Anxiety Disorder [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__gad__pres__sx_mean KSADS - Generalized Anxiety Disorder [Youth] (Symptom - Present): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_y_ksads__gad__worry__6mo__pres_sx

    • mh_y_ksads__gad__worry__diffctrl__pres_sx

    • mh_y_ksads__gad__worry__excess__pres_sx

    • mh_y_ksads__gad__worry__multi__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_mh_y_ksads__gad__pres__sx

compute_mh_y_ksads__gad__pres__sx_mean(
  data,
  name = "mh_y_ksads__gad__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__gad__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__gad__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Obsessive Compulsive Disorder [Youth] (Symptom - Past): Mean"

Description

Computes the summary score mh_y_ksads__ocd__past__sx_mean KSADS - Obsessive Compulsive Disorder [Youth] (Symptom - Past): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_y_ksads__ocd__compuls__past_sx

    • mh_y_ksads__ocd__compuls__prvntanx__past_sx

    • mh_y_ksads__ocd__compuls__tcnsm__past_sx

    • mh_y_ksads__ocd__obsess__intru__past_sx

    • mh_y_ksads__ocd__obsess__past_sx

    • mh_y_ksads__ocd__obsess__tcnsm__past_sx

    • mh_y_ksads__ocd__suprstho__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_mh_y_ksads__ocd__past__sx

compute_mh_y_ksads__ocd__past__sx_mean(
  data,
  name = "mh_y_ksads__ocd__past__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__ocd__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__ocd__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Obsessive Compulsive Disorder [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__ocd__pres__sx_mean KSADS - Obsessive Compulsive Disorder [Youth] (Symptom - Present): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • mh_y_ksads__ocd__compuls__pres_sx

    • mh_y_ksads__ocd__compuls__prvntanx__pres_sx

    • mh_y_ksads__ocd__compuls__tcnsm__pres_sx

    • mh_y_ksads__ocd__obsess__intru__pres_sx

    • mh_y_ksads__ocd__obsess__pres_sx

    • mh_y_ksads__ocd__obsess__tcnsm__pres_sx

    • mh_y_ksads__ocd__suprstho__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 1 of 7 items missing

Usage

vars_mh_y_ksads__ocd__pres__sx

compute_mh_y_ksads__ocd__pres__sx_mean(
  data,
  name = "mh_y_ksads__ocd__pres__sx_mean",
  max_na = 1,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__ocd__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__ocd__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Panic Disorder [Youth] (Symptom - Past): Mean"

Description

Computes the summary score mh_y_ksads__panic__past__sx_mean KSADS - Panic Disorder [Youth] (Symptom - Past): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_y_ksads__panic__attack__maladp__past_sx

    • mh_y_ksads__panic__attack__past_sx

    • mh_y_ksads__panic__sympt__past_sx

    • mh_y_ksads__panic__worry__attack__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_mh_y_ksads__panic__past__sx

compute_mh_y_ksads__panic__past__sx_mean(
  data,
  name = "mh_y_ksads__panic__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__panic__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__panic__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Panic Disorder [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__panic__pres__sx_mean KSADS - Panic Disorder [Youth] (Symptom - Present): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_y_ksads__panic__attack__maladp__pres_sx

    • mh_y_ksads__panic__attack__pres_sx

    • mh_y_ksads__panic__sympt__pres_sx

    • mh_y_ksads__panic__worry__attack__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_mh_y_ksads__panic__pres__sx

compute_mh_y_ksads__panic__pres__sx_mean(
  data,
  name = "mh_y_ksads__panic__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__panic__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__panic__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Post-Traumatic Stress Disorder [Youth] (Symptom - Past): Mean"

Description

Computes the summary score mh_y_ksads__ptsd__past__sx_mean KSADS - Post-Traumatic Stress Disorder [Youth] (Symptom - Past): Mean [Validation: No more than 4 missing or declined]

  • Summarized variables:

    • mh_y_ksads__ptsd__anhed__past_sx

    • mh_y_ksads__ptsd__avoid__extrmnd__past_sx

    • mh_y_ksads__ptsd__avoid__trmatho__past_sx

    • mh_y_ksads__ptsd__concprob__past_sx

    • mh_y_ksads__ptsd__depersnl__past_sx

    • mh_y_ksads__ptsd__derealztn__past_sx

    • mh_y_ksads__ptsd__detach__past_sx

    • mh_y_ksads__ptsd__distortcog__cause__past_sx

    • mh_y_ksads__ptsd__distortcog__consq__past_sx

    • mh_y_ksads__ptsd__emot__neg__past_sx

    • mh_y_ksads__ptsd__emot__nopos__past_sx

    • mh_y_ksads__ptsd__extrmnd__distrs__past_sx

    • mh_y_ksads__ptsd__flshbck__past_sx

    • mh_y_ksads__ptsd__hyprvigl__past_sx

    • mh_y_ksads__ptsd__intrmnd__distrs__past_sx

    • mh_y_ksads__ptsd__irrit__past_sx

    • mh_y_ksads__ptsd__memloss__past_sx

    • mh_y_ksads__ptsd__negblf__past_sx

    • mh_y_ksads__ptsd__nghtmr__past_sx

    • mh_y_ksads__ptsd__physreact__past_sx

    • mh_y_ksads__ptsd__rckls__past_sx

    • mh_y_ksads__ptsd__sleepdistb__past_sx

    • mh_y_ksads__ptsd__startle__past_sx

    • mh_y_ksads__ptsd__trmatho__intru__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 4 of 24 items missing

Usage

vars_mh_y_ksads__ptsd__past__sx

compute_mh_y_ksads__ptsd__past__sx_mean(
  data,
  name = "mh_y_ksads__ptsd__past__sx_mean",
  max_na = 4,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__ptsd__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__ptsd__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Post-Traumatic Stress Disorder [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__ptsd__pres__sx_mean KSADS - Post-Traumatic Stress Disorder [Youth] (Symptom - Present): Mean [Validation: No more than 4 missing or declined]

  • Summarized variables:

    • mh_y_ksads__ptsd__anhed__pres_sx

    • mh_y_ksads__ptsd__avoid__extrmnd__pres_sx

    • mh_y_ksads__ptsd__avoid__trmatho__pres_sx

    • mh_y_ksads__ptsd__concprob__pres_sx

    • mh_y_ksads__ptsd__depersnl__pres_sx

    • mh_y_ksads__ptsd__derealztn__pres_sx

    • mh_y_ksads__ptsd__detach__pres_sx

    • mh_y_ksads__ptsd__distortcog__cause__pres_sx

    • mh_y_ksads__ptsd__distortcog__consq__pres_sx

    • mh_y_ksads__ptsd__emot__neg__pres_sx

    • mh_y_ksads__ptsd__emot__nopos__pres_sx

    • mh_y_ksads__ptsd__extrmnd__distrs__pres_sx

    • mh_y_ksads__ptsd__flshbck__pres_sx

    • mh_y_ksads__ptsd__hyprvigl__pres_sx

    • mh_y_ksads__ptsd__intrmnd__distrs__pres_sx

    • mh_y_ksads__ptsd__irrit__pres_sx

    • mh_y_ksads__ptsd__memloss__pres_sx

    • mh_y_ksads__ptsd__negblf__pres_sx

    • mh_y_ksads__ptsd__nghtmr__pres_sx

    • mh_y_ksads__ptsd__physreact__pres_sx

    • mh_y_ksads__ptsd__rckls__pres_sx

    • mh_y_ksads__ptsd__sleepdistb__pres_sx

    • mh_y_ksads__ptsd__startle__pres_sx

    • mh_y_ksads__ptsd__trmatho__intru__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 4 of 24 items missing

Usage

vars_mh_y_ksads__ptsd__pres__sx

compute_mh_y_ksads__ptsd__pres__sx_mean(
  data,
  name = "mh_y_ksads__ptsd__pres__sx_mean",
  max_na = 4,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__ptsd__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__ptsd__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Sleep Problems [Youth] (Symptom - Past): Mean"

Description

Computes the summary score mh_y_ksads__sleep__past__sx_mean KSADS - Sleep Problems [Youth] (Symptom - Past): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_y_ksads__sleep__insom__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 1 items missing

Usage

vars_mh_y_ksads__sleep__past__sx

compute_mh_y_ksads__sleep__past__sx_mean(
  data,
  name = "mh_y_ksads__sleep__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__sleep__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__sleep__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Sleep Problems [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__sleep__pres__sx_mean KSADS - Sleep Problems [Youth] (Symptom - Present): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_y_ksads__sleep__insom__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 1 items missing

Usage

vars_mh_y_ksads__sleep__pres__sx

compute_mh_y_ksads__sleep__pres__sx_mean(
  data,
  name = "mh_y_ksads__sleep__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__sleep__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__sleep__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Social Anxiety Disorder [Youth] (Symptom - Past): Mean"

Description

Computes the summary score mh_y_ksads__socanx__past__sx_mean KSADS - Social Anxiety Disorder [Youth] (Symptom - Past): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_y_ksads__socanx__anx__past_sx

    • mh_y_ksads__socanx__avoid__past_sx

    • mh_y_ksads__socanx__fear__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 3 items missing

Usage

vars_mh_y_ksads__socanx__past__sx

compute_mh_y_ksads__socanx__past__sx_mean(
  data,
  name = "mh_y_ksads__socanx__past__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__socanx__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__socanx__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Social Anxiety Disorder [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__socanx__pres__sx_mean KSADS - Social Anxiety Disorder [Youth] (Symptom - Present): Mean [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • mh_y_ksads__socanx__anx__pres_sx

    • mh_y_ksads__socanx__avoid__pres_sx

    • mh_y_ksads__socanx__fear__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 0 of 3 items missing

Usage

vars_mh_y_ksads__socanx__pres__sx

compute_mh_y_ksads__socanx__pres__sx_mean(
  data,
  name = "mh_y_ksads__socanx__pres__sx_mean",
  max_na = 0,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__socanx__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__socanx__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Suicidality [Youth] (Symptom - Past): Mean"

Description

Computes the summary score mh_y_ksads__suic__past__sx_mean KSADS - Suicidality [Youth] (Symptom - Past): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • mh_y_ksads__suic__slfinj__past_sx

    • mh_y_ksads__suic__slfinj__nointnt__past_sx

    • mh_y_ksads__suic__slfinj__intnt__past_sx

    • mh_y_ksads__suic__slfinj__psbldie__past_sx

    • mh_y_ksads__suic__idea__past_sx

    • mh_y_ksads__suic__intnt__past_sx

    • mh_y_ksads__suic__mthd__past_sx

    • mh_y_ksads__suic__plan__past_sx

    • mh_y_ksads__suic__prep__past_sx

    • mh_y_ksads__suic__attmpt__past_sx

    • mh_y_ksads__suic__attmpt__intrpt__past_sx

    • mh_y_ksads__suic__attmpt__psbldie__past_sx

    • mh_y_ksads__suic__wishdead__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 13 items missing

Usage

vars_mh_y_ksads__suic__past__sx

compute_mh_y_ksads__suic__past__sx_mean(
  data,
  name = "mh_y_ksads__suic__past__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__suic__past__sx is a character vector of all column names used to compute summary score of mh_y_ksads__suic__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Suicidality [Youth] (Symptom - Present): Mean"

Description

Computes the summary score mh_y_ksads__suic__pres__sx_mean KSADS - Suicidality [Youth] (Symptom - Present): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • mh_y_ksads__suic__slfinj__pres_sx

    • mh_y_ksads__suic__slfinj__nointnt__pres_sx

    • mh_y_ksads__suic__slfinj__intnt__pres_sx

    • mh_y_ksads__suic__slfinj__psbldie__pres_sx

    • mh_y_ksads__suic__idea__pres_sx

    • mh_y_ksads__suic__intnt__pres_sx

    • mh_y_ksads__suic__mthd__pres_sx

    • mh_y_ksads__suic__plan__pres_sx

    • mh_y_ksads__suic__prep__pres_sx

    • mh_y_ksads__suic__attmpt__pres_sx

    • mh_y_ksads__suic__attmpt__intrpt__pres_sx

    • mh_y_ksads__suic__attmpt__psbldie__pres_sx

    • mh_y_ksads__suic__wishdead__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 13 items missing

Usage

vars_mh_y_ksads__suic__pres__sx

compute_mh_y_ksads__suic__pres__sx_mean(
  data,
  name = "mh_y_ksads__suic__pres__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_mh_y_ksads__suic__pres__sx is a character vector of all column names used to compute summary score of mh_y_ksads__suic__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "NIH Toolbox - Positive Affect Items [Youth] (NA): Number missing"

Description

Computes the summary score mh_y_pai_nm NIH Toolbox - Positive Affect Items [Youth] (NA): Number missing

  • Summarized variables:

    • mh_y_pai_001

    • mh_y_pai_002

    • mh_y_pai_003

    • mh_y_pai_004

    • mh_y_pai_005

    • mh_y_pai_006

    • mh_y_pai_007

    • mh_y_pai_008

    • mh_y_pai_009

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_pai

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

Format

vars_mh_y_pai is vector of all column names used to compute summary score of compute_mh_y_pai scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_pai_nm(data) |>
  select(
    any_of(c("mh_y_pai_nm", vars_mh_y_pai))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Overt Aggression): Number missing"

Description

Computes the summary score mh_y_peq__overt__agg_nm Peer Experiences Questionnaire [Youth] (Overt Aggression): Number missing

  • Summarized variables:

    • mh_y_peq__overt__agg_001

    • mh_y_peq__overt__agg_002

    • mh_y_peq__overt__agg_003

  • Excluded values:

    • 777

Usage

vars_mh_y_peq__overt__agg

compute_mh_y_peq__overt__agg_nm(
  data,
  name = "mh_y_peq__overt__agg_nm",
  exclude = c("777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_peq__overt__agg is vector of all column names used to compute summary score of mh_y_peq__overt__agg scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_peq__overt__agg_nm(data) |>
  select(
    any_of(c("mh_y_peq__overt__agg_nm", vars_mh_y_peq__overt__agg))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Overt Victimization): Number missing"

Description

Computes the summary score mh_y_peq__overt__vict_nm Peer Experiences Questionnaire [Youth] (Overt Victimization): Number missing

  • Summarized variables:

    • mh_y_peq__overt__vict_001

    • mh_y_peq__overt__vict_002

    • mh_y_peq__overt__vict_003

  • Excluded values:

    • 777

Usage

vars_mh_y_peq__overt__vict

compute_mh_y_peq__overt__vict_nm(
  data,
  name = "mh_y_peq__overt__vict_nm",
  exclude = c("777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_peq__overt__vict is vector of all column names used to compute summary score of mh_y_peq__overt__vict scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_peq__overt__vict_nm(data) |>
  select(
    any_of(c("mh_y_peq__overt__vict_nm", vars_mh_y_peq__overt__vict))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Relational Aggression): Number missing"

Description

Computes the summary score mh_y_peq__rel__agg_nm Peer Experiences Questionnaire [Youth] (Relational Aggression): Number missing

  • Summarized variables:

    • mh_y_peq__rel__agg_001

    • mh_y_peq__rel__agg_002

    • mh_y_peq__rel__agg_003

  • Excluded values:

    • 777

Usage

vars_mh_y_peq__rel__agg

compute_mh_y_peq__rel__agg_nm(
  data,
  name = "mh_y_peq__rel__agg_nm",
  exclude = c("777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_peq__rel__agg is vector of all column names used to compute summary score of mh_y_peq__rel__agg scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_peq__rel__agg_nm(data) |>
  select(
    any_of(c("mh_y_peq__rel__agg_nm", vars_mh_y_peq__rel__agg))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Relational Victimization): Number missing"

Description

Computes the summary score mh_y_peq__rel__vict_nm Peer Experiences Questionnaire [Youth] (Relational Victimization): Number missing

  • Summarized variables:

    • mh_y_peq__rel__vict_001

    • mh_y_peq__rel__vict_002

    • mh_y_peq__rel__vict_003

  • Excluded values:

    • 777

Usage

vars_mh_y_peq__rel__vict

compute_mh_y_peq__rel__vict_nm(
  data,
  name = "mh_y_peq__rel__vict_nm",
  exclude = c("777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_peq__rel__vict is vector of all column names used to compute summary score of mh_y_peq__rel__vict scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_peq__rel__vict_nm(data) |>
  select(
    any_of(c("mh_y_peq__rel__vict_nm", vars_mh_y_peq__rel__vict))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Reputational Aggression): Number missing"

Description

Computes the summary score mh_y_peq__rep__agg_nm Peer Experiences Questionnaire [Youth] (Reputational Aggression): Number missing

  • Summarized variables:

    • mh_y_peq__rep__agg_001

    • mh_y_peq__rep__agg_002

    • mh_y_peq__rep__agg_003

  • Excluded values:

    • 777

Usage

vars_mh_y_peq__rep__agg

compute_mh_y_peq__rep__agg_nm(
  data,
  name = "mh_y_peq__rep__agg_nm",
  exclude = c("777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_peq__rep__agg is vector of all column names used to compute summary score of mh_y_peq__rep__agg scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_peq__rep__agg_nm(data) |>
  select(
    any_of(c("mh_y_peq__rep__agg_nm", vars_mh_y_peq__rep__agg))
  )

## End(Not run)

Compute "Peer Experiences Questionnaire [Youth] (Reputational Victimization): Number missing"

Description

Computes the summary score mh_y_peq__rep__vict_nm Peer Experiences Questionnaire [Youth] (Reputational Victimization): Number missing

  • Summarized variables:

    • mh_y_peq__rep__vict_001

    • mh_y_peq__rep__vict_002

    • mh_y_peq__rep__vict_003

  • Excluded values:

    • 777

Usage

vars_mh_y_peq__rep__vict

compute_mh_y_peq__rep__vict_nm(
  data,
  name = "mh_y_peq__rep__vict_nm",
  exclude = c("777"),
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_peq__rep__vict is vector of all column names used to compute summary score of mh_y_peq__rep__vict scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_peq__rep__vict_nm(data) |>
  select(
    any_of(c("mh_y_peq__rep__vict_nm", vars_mh_y_peq__rep__vict))
  )

## End(Not run)

Compute "Life Events [Youth] (Events): Count"

Description

Computes the summary score mh_y_ple_count Life Events [Youth] (Events): Count

  • Summarized variables:

    • mh_y_ple_001

    • mh_y_ple_002

    • mh_y_ple_003

    • mh_y_ple_004

    • mh_y_ple_005

    • mh_y_ple_006

    • mh_y_ple_007

    • mh_y_ple_008

    • mh_y_ple_009

    • mh_y_ple_010

    • mh_y_ple_011

    • mh_y_ple_012

    • mh_y_ple_013

    • mh_y_ple_014

    • mh_y_ple_015

    • mh_y_ple_016

    • mh_y_ple_017

    • mh_y_ple_018

    • mh_y_ple_019

    • mh_y_ple_020

    • mh_y_ple_021

    • mh_y_ple_022

    • mh_y_ple_023

    • mh_y_ple_024

    • mh_y_ple_025

  • Excluded values:

    • 444

    • 777

    • 999

Usage

vars_mh_y_ple

compute_mh_y_ple_count(
  data,
  name = "mh_y_ple_count",
  combine = TRUE,
  max_na = NULL
)

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Format

vars_mh_y_ple is a character vector of all column names used to compute summary score of mh_y_ple.

Value

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


Compute "Life Events [Youth] (Severity of Good Events): Sum [Validation: No more than 5 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__good_sum Life Events [Youth] (Severity of Good Events): Sum [Validation: No more than 5 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

vars_mh_y_ple__exp

compute_mh_y_ple__severity__good_sum(
  data,
  name = "mh_y_ple__severity__good_sum",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Format

vars_mh_y_ple__exp is a character vector of all column names used to compute summary score of mh_y_ple__exp.

Value

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


Compute "Life Events [Youth] (Severity of Good Events): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__good_sum__v01 Life Events [Youth] (Severity of Good Events): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

vars_mh_y_ple__exp__v01

compute_mh_y_ple__severity__good_sum__v01(
  data,
  name = "mh_y_ple__severity__good_sum__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_y_ple__exp__v01 is a character vector of all column names used to compute summary score of mh_y_ple__exp.

Value

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


Compute "Life Events [Youth] (Severity of Good Events): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__good_sum__v02 Life Events [Youth] (Severity of Good Events): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

vars_mh_y_ple__exp__v02

compute_mh_y_ple__severity__good_sum__v02(
  data,
  name = "mh_y_ple__severity__good_sum__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_y_ple__exp__v02 is a character vector of all column names used to compute summary score of mh_y_ple__exp.

Value

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


Compute "Life Events [Youth] (Severity of Good Events): Sum - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no experience/severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity__good_sum__v03 Life Events [Youth] (Severity of Good Events): Sum - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no experience/severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__exp_001

    • mh_y_ple__exp_002

    • mh_y_ple__exp_003

    • mh_y_ple__exp_004

    • mh_y_ple__exp_005

    • mh_y_ple__exp_006

    • mh_y_ple__exp_007

    • mh_y_ple__exp_008

    • mh_y_ple__exp_009

    • mh_y_ple__exp_010

    • mh_y_ple__exp_011

    • mh_y_ple__exp_012

    • mh_y_ple__exp_013

    • mh_y_ple__exp_014

    • mh_y_ple__exp_015

    • mh_y_ple__exp_016

    • mh_y_ple__exp_017

    • mh_y_ple__exp_018

    • mh_y_ple__exp_019

    • mh_y_ple__exp_020

    • mh_y_ple__exp_021

    • mh_y_ple__exp_022

    • mh_y_ple__exp_023

    • mh_y_ple__exp_024

    • mh_y_ple__exp_025

    • mh_y_ple__exp_026

    • mh_y_ple__exp_027

    • mh_y_ple__exp_028

    • mh_y_ple__exp_029

    • mh_y_ple__exp_030

    • mh_y_ple__exp_031

    • mh_y_ple__exp_032

    • mh_y_ple__exp_033

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_033

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

vars_mh_y_ple__exp__v03

compute_mh_y_ple__severity__good_sum__v03(
  data,
  name = "mh_y_ple__severity__good_sum__v03",
  events = c("ses-06A", "ses-07A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_y_ple__exp__v03 is a character vector of all column names used to compute summary score of mh_y_ple__exp.

Value

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


Compute "Life Events [Youth] (Severity): Sum [Validation: No more than 5 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity_sum Life Events [Youth] (Severity): Sum [Validation: No more than 5 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 5 of 25 items missing

Usage

vars_mh_y_ple__severity

compute_mh_y_ple__severity_sum(
  data,
  name = "mh_y_ple__severity_sum",
  combine = TRUE,
  max_na = 5
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 5).

Format

vars_mh_y_ple__severity is a character vector of all column names used to compute summary score of mh_y_ple__severity.

Value

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


Compute "Life Events [Youth] (Severity): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity_sum__v01 Life Events [Youth] (Severity): Sum - Version 1 (Year 3) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 31 items missing

Usage

vars_mh_y_ple__severity__v01

compute_mh_y_ple__severity_sum__v01(
  data,
  name = "mh_y_ple__severity_sum__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_y_ple__severity__v01 is a character vector of all column names used to compute summary score of mh_y_ple__severity.

Value

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


Compute "Life Events [Youth] (Severity): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity_sum__v02 Life Events [Youth] (Severity): Sum - Version 2 (Year 4 and Year 5) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 33 items missing

Usage

vars_mh_y_ple__severity__v02

compute_mh_y_ple__severity_sum__v02(
  data,
  name = "mh_y_ple__severity_sum__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_y_ple__severity__v02 is a character vector of all column names used to compute summary score of mh_y_ple__severity.

Value

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


Compute "Life Events [Youth] (Severity): Sum - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no severity items missing or declined]"

Description

Computes the summary score mh_y_ple__severity_sum__v03 Life Events [Youth] (Severity): Sum - Version 3 (Starting at Year 6) [Validation: No more than 6 events missing and no severity items missing or declined]

  • Summarized variables:

    • mh_y_ple__severity_001

    • mh_y_ple__severity_002

    • mh_y_ple__severity_003

    • mh_y_ple__severity_004

    • mh_y_ple__severity_005

    • mh_y_ple__severity_006

    • mh_y_ple__severity_007

    • mh_y_ple__severity_008

    • mh_y_ple__severity_009

    • mh_y_ple__severity_010

    • mh_y_ple__severity_011

    • mh_y_ple__severity_012

    • mh_y_ple__severity_013

    • mh_y_ple__severity_014

    • mh_y_ple__severity_015

    • mh_y_ple__severity_016

    • mh_y_ple__severity_017

    • mh_y_ple__severity_018

    • mh_y_ple__severity_019

    • mh_y_ple__severity_020

    • mh_y_ple__severity_021

    • mh_y_ple__severity_022

    • mh_y_ple__severity_023

    • mh_y_ple__severity_024

    • mh_y_ple__severity_025

    • mh_y_ple__severity_026

    • mh_y_ple__severity_027

    • mh_y_ple__severity_028

    • mh_y_ple__severity_029

    • mh_y_ple__severity_030

    • mh_y_ple__severity_031

    • mh_y_ple__severity_032

    • mh_y_ple__severity_033

    • mh_y_ple__severity_034

  • Excluded values:

    • 444

    • 777

    • 999

  • Validation criterion: maximally 6 of 34 items missing

Usage

vars_mh_y_ple__severity__v03

compute_mh_y_ple__severity_sum__v03(
  data,
  name = "mh_y_ple__severity_sum__v03",
  events = c("ses-06A", "ses-07A"),
  combine = TRUE,
  max_na = 6
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 6).

Format

vars_mh_y_ple__severity__v03 is a character vector of all column names used to compute summary score of mh_y_ple__severity.

Value

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


Compute "Life Events [Youth] (Events): Count - Version 1 (Year 3)"

Description

Computes the summary score mh_y_ple_count__v01 Life Events [Youth] (Events): Count - Version 1 (Year 3)

  • Summarized variables:

    • mh_y_ple_001

    • mh_y_ple_002

    • mh_y_ple_003

    • mh_y_ple_004

    • mh_y_ple_005

    • mh_y_ple_006

    • mh_y_ple_007

    • mh_y_ple_008

    • mh_y_ple_009

    • mh_y_ple_010

    • mh_y_ple_011

    • mh_y_ple_012

    • mh_y_ple_013

    • mh_y_ple_014

    • mh_y_ple_015

    • mh_y_ple_016

    • mh_y_ple_017

    • mh_y_ple_018

    • mh_y_ple_019

    • mh_y_ple_020

    • mh_y_ple_021

    • mh_y_ple_022

    • mh_y_ple_023

    • mh_y_ple_024

    • mh_y_ple_025

    • mh_y_ple_026

    • mh_y_ple_027

    • mh_y_ple_028

    • mh_y_ple_029

    • mh_y_ple_030

    • mh_y_ple_031

  • Excluded values:

    • 444

    • 777

    • 999

Usage

vars_mh_y_ple__v01

compute_mh_y_ple_count__v01(
  data,
  name = "mh_y_ple_count__v01",
  events = "ses-03A",
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Format

vars_mh_y_ple__v01 is a character vector of all column names used to compute summary score of mh_y_ple.

Value

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


Compute "Life Events [Youth] (Events): Count - Version 2 (Year 4 and Year 5)"

Description

Computes the summary score mh_y_ple_count__v02 Life Events [Youth] (Events): Count - Version 2 (Year 4 and Year 5)

  • Summarized variables:

    • mh_y_ple_001

    • mh_y_ple_002

    • mh_y_ple_003

    • mh_y_ple_004

    • mh_y_ple_005

    • mh_y_ple_006

    • mh_y_ple_007

    • mh_y_ple_008

    • mh_y_ple_009

    • mh_y_ple_010

    • mh_y_ple_011

    • mh_y_ple_012

    • mh_y_ple_013

    • mh_y_ple_014

    • mh_y_ple_015

    • mh_y_ple_016

    • mh_y_ple_017

    • mh_y_ple_018

    • mh_y_ple_019

    • mh_y_ple_020

    • mh_y_ple_021

    • mh_y_ple_022

    • mh_y_ple_023

    • mh_y_ple_024

    • mh_y_ple_025

    • mh_y_ple_026

    • mh_y_ple_027

    • mh_y_ple_028

    • mh_y_ple_029

    • mh_y_ple_030

    • mh_y_ple_031

    • mh_y_ple_032

    • mh_y_ple_034

  • Excluded values:

    • 444

    • 777

    • 999

Usage

vars_mh_y_ple__v02

compute_mh_y_ple_count__v02(
  data,
  name = "mh_y_ple_count__v02",
  events = c("ses-04A", "ses-05A"),
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Format

vars_mh_y_ple__v02 is a character vector of all column names used to compute summary score of mh_y_ple.

Value

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


Compute "Life Events [Youth] (Events): Count - Version 3 (Starting at Year 6)"

Description

Computes the summary score mh_y_ple_count__v03 Life Events [Youth] (Events): Count - Version 3 (Starting at Year 6)

  • Summarized variables:

    • mh_y_ple_001

    • mh_y_ple_002

    • mh_y_ple_003

    • mh_y_ple_004

    • mh_y_ple_005

    • mh_y_ple_006

    • mh_y_ple_007

    • mh_y_ple_008

    • mh_y_ple_009

    • mh_y_ple_010

    • mh_y_ple_011

    • mh_y_ple_012

    • mh_y_ple_013

    • mh_y_ple_014

    • mh_y_ple_015

    • mh_y_ple_016

    • mh_y_ple_017

    • mh_y_ple_018

    • mh_y_ple_019

    • mh_y_ple_020

    • mh_y_ple_021

    • mh_y_ple_022

    • mh_y_ple_023

    • mh_y_ple_024

    • mh_y_ple_025

    • mh_y_ple_026

    • mh_y_ple_027

    • mh_y_ple_028

    • mh_y_ple_029

    • mh_y_ple_030

    • mh_y_ple_031

    • mh_y_ple_032

    • mh_y_ple_033

    • mh_y_ple_034

  • Excluded values:

    • 444

    • 777

    • 999

Usage

vars_mh_y_ple__v03

compute_mh_y_ple_count__v03(
  data,
  name = "mh_y_ple_count__v03",
  events = c("ses-06A", "ses-07A"),
  combine = TRUE,
  max_na = NULL
)

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).

events

character vector. Event (session ID) to be used.

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.

max_na

numeric, positive whole number. Number of missing items allowed. NULL means no limit (Default: NULL).

Format

vars_mh_y_ple__v03 is a character vector of all column names used to compute summary score of mh_y_ple.

Value

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


Compute "Prodromal Psychosis Scale [Youth] (Bother responses): Number missing"

Description

Computes the summary score mh_y_pps__bother_nm Prodromal Psychosis Scale [Youth] (Bother responses): Number missing

  • Summarized variables:

    • mh_y_pps__bother_001

    • mh_y_pps__bother_002

    • mh_y_pps__bother_003

    • mh_y_pps__bother_004

    • mh_y_pps__bother_005

    • mh_y_pps__bother_006

    • mh_y_pps__bother_007

    • mh_y_pps__bother_008

    • mh_y_pps__bother_009

    • mh_y_pps__bother_010

    • mh_y_pps__bother_011

    • mh_y_pps__bother_012

    • mh_y_pps__bother_013

    • mh_y_pps__bother_014

    • mh_y_pps__bother_015

    • mh_y_pps__bother_016

    • mh_y_pps__bother_017

    • mh_y_pps__bother_018

    • mh_y_pps__bother_019

    • mh_y_pps__bother_020

    • mh_y_pps__bother_021

Usage

vars_mh_y_pps__bother

compute_mh_y_pps__bother_nm(data, name = "mh_y_pps__bother_nm", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_mh_y_pps__bother is a character vector of all column names used to compute summary of mh_y_pps__bother scores.

Details

The number of missing values in the mh_y_pps__bother score is calculated by subtracting the number of valid pairs from the total PPS count for each subject (mh_y_pps_count - bother_pair_good_sum).

A good pair is defined as a pair where the mh_y_pps_count is 1 and the mh_y_pps__bother is not missing.

See Also

compute_mh_y_pps_count()

Examples

## Not run: 
compute_mh_y_pps__bother_nm(data) |>
  select(
    any_of(c("mh_y_pps__bother_nm", vars_mh_y_pps__bother))
  )

## End(Not run)

Compute "Prodromal Psychosis Scale [Youth] (Severity Score): Number missing"

Description

Computes the summary score mh_y_pps__severity_nm Prodromal Psychosis Scale [Youth] (Severity Score): Number missing

  • Summarized variables:

    • mh_y_pps__severity_001

    • mh_y_pps__severity_002

    • mh_y_pps__severity_003

    • mh_y_pps__severity_004

    • mh_y_pps__severity_005

    • mh_y_pps__severity_006

    • mh_y_pps__severity_007

    • mh_y_pps__severity_008

    • mh_y_pps__severity_009

    • mh_y_pps__severity_010

    • mh_y_pps__severity_011

    • mh_y_pps__severity_012

    • mh_y_pps__severity_013

    • mh_y_pps__severity_014

    • mh_y_pps__severity_015

    • mh_y_pps__severity_016

    • mh_y_pps__severity_017

    • mh_y_pps__severity_018

    • mh_y_pps__severity_019

    • mh_y_pps__severity_020

    • mh_y_pps__severity_021

  • Excluded values: none

Usage

vars_mh_y_pps__severity

compute_mh_y_pps__severity_nm(
  data,
  name = "mh_y_pps__severity_nm",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_mh_y_pps__severity is a character vector of all column names used to compute summary of mh_y_pps__severity scores.

Details

The number of missing values in the mh_y_pps__severity score is calculated by subtracting the number of valid pairs from the total bother count for each subject (mh_y_pps__bother_yes_count - severity_pair_good_sum).

A good pair is defined as a pair where the mh_y_pps__bother__yes_count is 1 and the mh_y_pps__severity is not missing.

See Also

compute_mh_y_pps__bother__yes_count()

Examples

## Not run: 
compute_mh_y_pps__severity_nm(data) |>
  select(
    any_of(c("mh_y_pps__severity_nm", vars_mh_y_pps__severity))
  )

## End(Not run)

Compute "Prodromal Psychosis Scale [Youth] (number of "Yes" responses): Count "

Description

Computes the summary score mh_y_pps_count Prodromal Psychosis Scale [Youth] (number of

  • Summarized variables:

    • mh_y_pps_001

    • mh_y_pps_002

    • mh_y_pps_003

    • mh_y_pps_004

    • mh_y_pps_005

    • mh_y_pps_006

    • mh_y_pps_007

    • mh_y_pps_008

    • mh_y_pps_009

    • mh_y_pps_010

    • mh_y_pps_011

    • mh_y_pps_012

    • mh_y_pps_013

    • mh_y_pps_014

    • mh_y_pps_015

    • mh_y_pps_016

    • mh_y_pps_017

    • mh_y_pps_018

    • mh_y_pps_019

    • mh_y_pps_020

    • mh_y_pps_021

  • Excluded values: none

  • Validation criterion: maximally 4 of 21 items missing

Usage

vars_mh_y_pps_count

compute_mh_y_pps_count(
  data,
  name = "mh_y_pps_count",
  max_na = 4,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_mh_y_pps_count is a character vector of all column names used to compute summary score of mh_y_pps_count and mh_y_pps_nm

Details

The mh_y_pps_count is calculated by summing the number of 1s in each question. If the number of missing values is greater than max_na, the summary score is set to NA. By default, max_na is set to 4 (20%).

Value

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

Examples

## Not run: 
compute_mh_y_pps_count(data) |>
  select(
    any_of(c("mh_y_pps_count", vars_mh_y_pps_count))
  )

## End(Not run)

Compute "7-Up Mania Inventory [Youth]: Number missing"

Description

Computes the summary score mh_y_sup_nm 7-Up Mania Inventory [Youth]: Number missing

  • Summarized variables:

    • mh_y_sup_001

    • mh_y_sup_002

    • mh_y_sup_003

    • mh_y_sup_004

    • mh_y_sup_005

    • mh_y_sup_006

    • mh_y_sup_007

  • Excluded values: none

Usage

vars_mh_y_sup

compute_mh_y_sup_nm(data, name = "mh_y_sup_nm", exclude = NULL, 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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_sup is vector of all column names used to compute summary score of mh_y_sup scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_sup_nm(data) |>
  select(
    any_of(c("mh_y_sup_nm", vars_mh_y_sup))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Negative Urgency): Number missing"

Description

Computes the summary score mh_y_upps__nurg_nm Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Negative Urgency): Number missing

  • Summarized variables:

    • mh_y_upps__nurg_001

    • mh_y_upps__nurg_002

    • mh_y_upps__nurg_003

    • mh_y_upps__nurg_004

  • Excluded values: none

Usage

vars_mh_y_upps__nurg

compute_mh_y_upps__nurg_nm(
  data,
  name = "mh_y_upps__nurg_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_upps__nurg is vector of all column names used to compute summary score of mh_y_upps__nurg scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_upps__nurg_nm(data) |>
  select(
    any_of(c("mh_y_upps__nurg_nm", vars_mh_y_upps__nurg))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Lack of Perseverance (GSSF)): Number missing"

Description

Computes the summary score mh_y_upps__pers_nm Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Lack of Perseverance (GSSF)): Number missing

  • Summarized variables:

    • mh_y_upps__pers_001

    • mh_y_upps__pers_002

    • mh_y_upps__pers_003

    • mh_y_upps__pers_004

  • Excluded values: none

Usage

vars_mh_y_upps__pers

compute_mh_y_upps__pers_nm(
  data,
  name = "mh_y_upps__pers_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_upps__pers is vector of all column names used to compute summary score of mh_y_upps__pers scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_upps__pers_nm(data) |>
  select(
    any_of(c("mh_y_upps__pers_nm", vars_mh_y_upps__pers))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Lack of Planning): Number missing"

Description

Computes the summary score mh_y_upps__plan_nm Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Lack of Planning): Number missing

  • Summarized variables:

    • mh_y_upps__plan_001

    • mh_y_upps__plan_002

    • mh_y_upps__plan_003

    • mh_y_upps__plan_004

  • Excluded values: none

Usage

vars_mh_y_upps__plan

compute_mh_y_upps__plan_nm(
  data,
  name = "mh_y_upps__plan_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_upps__plan is vector of all column names used to compute summary score of mh_y_upps__plan scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_upps__plan_nm(data) |>
  select(
    any_of(c("mh_y_upps__plan_nm", vars_mh_y_upps__plan))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Positive Urgency): Number missing"

Description

Computes the summary score mh_y_upps__purg_nm Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Positive Urgency): Number missing

  • Summarized variables:

    • mh_y_upps__purg_001

    • mh_y_upps__purg_002

    • mh_y_upps__purg_003

    • mh_y_upps__purg_004

  • Excluded values: none

Usage

vars_mh_y_upps__purg

compute_mh_y_upps__purg_nm(
  data,
  name = "mh_y_upps__purg_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_upps__purg is vector of all column names used to compute summary score of mh_y_upps__purg scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_upps__purg_nm(data) |>
  select(
    any_of(c("mh_y_upps__purg_nm", vars_mh_y_upps__purg))
  )

## End(Not run)

Compute "Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Sensation Seeking): Number missing"

Description

Computes the summary score mh_y_upps__sens_nm Urgency, Premeditation, Perseverance, Sensation Seeking, Positive Urgency, Impulsive Behavior Scale (Short Version) [Youth] (Sensation Seeking): Number missing

  • Summarized variables:

    • mh_y_upps__sens_001

    • mh_y_upps__sens_002

    • mh_y_upps__sens_003

    • mh_y_upps__sens_004

  • Excluded values: none

Usage

vars_mh_y_upps__sens

compute_mh_y_upps__sens_nm(
  data,
  name = "mh_y_upps__sens_nm",
  exclude = NULL,
  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. If FALSE, the summary score is returned as a separate one-column data frame.

Format

vars_mh_y_upps__sens is vector of all column names used to compute summary score of mh_y_upps__sens scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_upps__sens_nm(data) |>
  select(
    any_of(c("mh_y_upps__sens_nm", vars_mh_y_upps__sens))
  )

## End(Not run)

Compute "Youth Self Report [Youth]: Number missing"

Description

Computes the summary score mh_y_ysr_nm Youth Self Report [Youth]: Number missing

  • Summarized variables:

    • mh_y_ysr__attn__adhd_001

    • mh_y_ysr__attn__adhd_002

    • mh_y_ysr__attn__adhd_003

    • mh_y_ysr__attn__adhd_004

    • mh_y_ysr__attn__adhd_005

    • mh_y_ysr__othpr__adhd_001

    • mh_y_ysr__aggr__adhd_001

    • mh_y_ysr__soc__anx_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__rule__cond_010

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__othpr__dep_001

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__tho__dep_002

    • mh_y_ysr__othpr__dep_002

    • mh_y_ysr__tho__dep_003

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr__opp_005

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

    • mh_y_ysr__aggr_001

    • mh_y_ysr__aggr_002

    • mh_y_ysr__aggr_003

    • mh_y_ysr__aggr_004

    • mh_y_ysr__aggr_005

    • mh_y_ysr__aggr_006

    • mh_y_ysr__anxdep_001

    • mh_y_ysr__anxdep_002

    • mh_y_ysr__attn_001

    • mh_y_ysr__attn_002

    • mh_y_ysr__attn_003

    • mh_y_ysr__attn_004

    • mh_y_ysr__rule_001

    • mh_y_ysr__rule_002

    • mh_y_ysr__rule_003

    • mh_y_ysr__rule_004

    • mh_y_ysr__rule_005

    • mh_y_ysr__wthdep_001

    • mh_y_ysr__wthdep_002

    • mh_y_ysr__wthdep_003

    • mh_y_ysr__wthdep_004

    • mh_y_ysr__wthdep_005

    • mh_y_ysr__som_001

    • mh_y_ysr__othpr_001

    • mh_y_ysr__othpr_002

    • mh_y_ysr__othpr_003

    • mh_y_ysr__othpr_004

    • mh_y_ysr__othpr_005

    • mh_y_ysr__othpr_006

    • mh_y_ysr__soc_001

    • mh_y_ysr__soc_002

    • mh_y_ysr__soc_003

    • mh_y_ysr__soc_004

    • mh_y_ysr__soc_005

    • mh_y_ysr__soc_006

    • mh_y_ysr__soc_007

    • mh_y_ysr__soc_008

    • mh_y_ysr__soc_009

    • mh_y_ysr__soc_010

    • mh_y_ysr__tho_001

    • mh_y_ysr__tho_002

    • mh_y_ysr__tho_003

    • mh_y_ysr__tho_004

    • mh_y_ysr__tho_005

    • mh_y_ysr__tho_006

    • mh_y_ysr__tho_007

    • mh_y_ysr__tho_008

    • mh_y_ysr__tho_009

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr

compute_mh_y_ysr_nm(
  data,
  name = "mh_y_ysr_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.

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.

Format

vars_mh_y_ysr is vector of all column names used to compute summary score of mh_y_ysr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr_nm(data) |>
  select(
    any_of(c("mh_y_ysr_nm", vars_mh_y_ysr))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - ADHD): Number missing"

Description

Computes the summary score mh_y_ysr__dsm__adhd_nm Youth Self Report [Youth] (DSM-5 Oriented Scale - ADHD): Number missing

  • Summarized variables:

    • mh_y_ysr__attn__adhd_001

    • mh_y_ysr__attn__adhd_002

    • mh_y_ysr__attn__adhd_003

    • mh_y_ysr__attn__adhd_004

    • mh_y_ysr__attn__adhd_005

    • mh_y_ysr__othpr__adhd_001

    • mh_y_ysr__aggr__adhd_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__dsm__adhd

compute_mh_y_ysr__dsm__adhd_nm(
  data,
  name = "mh_y_ysr__dsm__adhd_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.

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.

Format

vars_mh_y_ysr__dsm__adhd is vector of all column names used to compute summary score of mh_y_ysr__dsm__adhd scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__dsm__adhd_nm(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__adhd_nm", vars_mh_y_ysr__dsm__adhd))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Anxiety problems): Number missing"

Description

Computes the summary score mh_y_ysr__dsm__anx_nm Youth Self Report [Youth] (DSM-5 Oriented Scale - Anxiety problems): Number missing

  • Summarized variables:

    • mh_y_ysr__soc__anx_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__dsm__anx

compute_mh_y_ysr__dsm__anx_nm(
  data,
  name = "mh_y_ysr__dsm__anx_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.

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.

Format

vars_mh_y_ysr__dsm__anx is vector of all column names used to compute summary score of mh_y_ysr__dsm__anx scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__dsm__anx_nm(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__anx_nm", vars_mh_y_ysr__dsm__anx))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Conduct problems): Number missing"

Description

Computes the summary score mh_y_ysr__dsm__cond_nm Youth Self Report [Youth] (DSM-5 Oriented Scale - Conduct problems): Number missing

  • Summarized variables:

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__rule__cond_010

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__dsm__cond

compute_mh_y_ysr__dsm__cond_nm(
  data,
  name = "mh_y_ysr__dsm__cond_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.

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.

Format

vars_mh_y_ysr__dsm__cond is vector of all column names used to compute summary score of mh_y_ysr__dsm__cond scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__dsm__cond_nm(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__cond_nm", vars_mh_y_ysr__dsm__cond))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Depressive problems): Number missing"

Description

Computes the summary score mh_y_ysr__dsm__dep_nm Youth Self Report [Youth] (DSM-5 Oriented Scale - Depressive problems): Number missing

  • Summarized variables:

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__othpr__dep_001

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__tho__dep_002

    • mh_y_ysr__othpr__dep_002

    • mh_y_ysr__tho__dep_003

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__dsm__dep

compute_mh_y_ysr__dsm__dep_nm(
  data,
  name = "mh_y_ysr__dsm__dep_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.

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.

Format

vars_mh_y_ysr__dsm__dep is vector of all column names used to compute summary score of mh_y_ysr__dsm__dep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__dsm__dep_nm(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__dep_nm", vars_mh_y_ysr__dsm__dep))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Oppositional Defiant problems): Number missing"

Description

Computes the summary score mh_y_ysr__dsm__opp_nm Youth Self Report [Youth] (DSM-5 Oriented Scale - Oppositional Defiant problems): Number missing

  • Summarized variables:

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr__opp_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__dsm__opp

compute_mh_y_ysr__dsm__opp_nm(
  data,
  name = "mh_y_ysr__dsm__opp_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.

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.

Format

vars_mh_y_ysr__dsm__opp is vector of all column names used to compute summary score of mh_y_ysr__dsm__opp scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__dsm__opp_nm(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__opp_nm", vars_mh_y_ysr__dsm__opp))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (DSM-5 Oriented Scale - Somatic complaints): Number missing"

Description

Computes the summary score mh_y_ysr__dsm__somat_nm Youth Self Report [Youth] (DSM-5 Oriented Scale - Somatic complaints): Number missing

  • Summarized variables:

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__dsm__somat

compute_mh_y_ysr__dsm__somat_nm(
  data,
  name = "mh_y_ysr__dsm__somat_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.

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.

Format

vars_mh_y_ysr__dsm__somat is vector of all column names used to compute summary score of mh_y_ysr__dsm__somat scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__dsm__somat_nm(data) |>
  select(
    any_of(c("mh_y_ysr__dsm__somat_nm", vars_mh_y_ysr__dsm__somat))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Positive): Number missing"

Description

Computes the summary score mh_y_ysr__pos_nm Youth Self Report [Youth] (Positive): Number missing

  • Summarized variables:

    • mh_y_ysr__pos_001

    • mh_y_ysr__pos_002

    • mh_y_ysr__pos_003

    • mh_y_ysr__pos_004

    • mh_y_ysr__pos_005

    • mh_y_ysr__pos_006

    • mh_y_ysr__pos_007

    • mh_y_ysr__pos_008

    • mh_y_ysr__pos_009

    • mh_y_ysr__pos_010

    • mh_y_ysr__pos_011

    • mh_y_ysr__pos_012

    • mh_y_ysr__pos_013

    • mh_y_ysr__pos_014

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__pos

compute_mh_y_ysr__pos_nm(
  data,
  name = "mh_y_ysr__pos_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.

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.

Format

vars_mh_y_ysr__pos is vector of all column names used to compute summary score of mh_y_ysr__pos scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__pos_nm(data) |>
  select(
    any_of(c("mh_y_ysr__pos_nm", vars_mh_y_ysr__pos))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Aggressive behavior): Number missing"

Description

Computes the summary score mh_y_ysr__synd__aggr_nm Youth Self Report [Youth] (Syndrome Scale - Aggressive behavior): Number missing

  • Summarized variables:

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr_001

    • mh_y_ysr__aggr_002

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__aggr_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr_004

    • mh_y_ysr__aggr_005

    • mh_y_ysr__aggr_006

    • mh_y_ysr__aggr__opp_005

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__aggr__adhd_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__aggr

compute_mh_y_ysr__synd__aggr_nm(
  data,
  name = "mh_y_ysr__synd__aggr_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.

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.

Format

vars_mh_y_ysr__synd__aggr is vector of all column names used to compute summary score of mh_y_ysr__synd__aggr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__aggr_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__aggr_nm", vars_mh_y_ysr__synd__aggr))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Anxious/Depressed): Number missing"

Description

Computes the summary score mh_y_ysr__synd__anxdep_nm Youth Self Report [Youth] (Syndrome Scale - Anxious/Depressed): Number missing

  • Summarized variables:

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep_001

    • mh_y_ysr__anxdep_002

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__anxdep

compute_mh_y_ysr__synd__anxdep_nm(
  data,
  name = "mh_y_ysr__synd__anxdep_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.

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.

Format

vars_mh_y_ysr__synd__anxdep is vector of all column names used to compute summary score of mh_y_ysr__synd__anxdep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__anxdep_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__anxdep_nm", vars_mh_y_ysr__synd__anxdep))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Attention problems): Number missing"

Description

Computes the summary score mh_y_ysr__synd__attn_nm Youth Self Report [Youth] (Syndrome Scale - Attention problems): Number missing

  • Summarized variables:

    • mh_y_ysr__attn_001

    • mh_y_ysr__attn__adhd_001

    • mh_y_ysr__attn__adhd_002

    • mh_y_ysr__attn__adhd_003

    • mh_y_ysr__attn_002

    • mh_y_ysr__attn_003

    • mh_y_ysr__attn__adhd_004

    • mh_y_ysr__attn_004

    • mh_y_ysr__attn__adhd_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__attn

compute_mh_y_ysr__synd__attn_nm(
  data,
  name = "mh_y_ysr__synd__attn_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.

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.

Format

vars_mh_y_ysr__synd__attn is vector of all column names used to compute summary score of mh_y_ysr__synd__attn scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__attn_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__attn_nm", vars_mh_y_ysr__synd__attn))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - External): Number missing"

Description

Computes the summary score mh_y_ysr__synd__ext_nm Youth Self Report [Youth] (Syndrome Scale - External): Number missing

  • Summarized variables:

    • mh_y_ysr__rule_001

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__rule_002

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__rule_003

    • mh_y_ysr__rule_004

    • mh_y_ysr__rule__cond_010

    • mh_y_ysr__rule_005

    • mh_y_ysr__aggr__opp_001

    • mh_y_ysr__aggr__cond_001

    • mh_y_ysr__aggr_001

    • mh_y_ysr__aggr_002

    • mh_y_ysr__aggr__cond_002

    • mh_y_ysr__aggr__opp_002

    • mh_y_ysr__aggr__opp_003

    • mh_y_ysr__aggr__cond_003

    • mh_y_ysr__aggr__cond_004

    • mh_y_ysr__aggr_003

    • mh_y_ysr__aggr__opp_004

    • mh_y_ysr__aggr_004

    • mh_y_ysr__aggr_005

    • mh_y_ysr__aggr_006

    • mh_y_ysr__aggr__opp_005

    • mh_y_ysr__aggr__cond_005

    • mh_y_ysr__aggr__adhd_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__ext

compute_mh_y_ysr__synd__ext_nm(
  data,
  name = "mh_y_ysr__synd__ext_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.

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.

Format

vars_mh_y_ysr__synd__ext is vector of all column names used to compute summary score of mh_y_ysr__synd__ext scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__ext_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__ext_nm", vars_mh_y_ysr__synd__ext))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Internaling): Number missing"

Description

Computes the summary score mh_y_ysr__synd__int_nm Youth Self Report [Youth] (Syndrome Scale - Internaling): Number missing

  • Summarized variables:

    • mh_y_ysr__anxdep__dep_001

    • mh_y_ysr__anxdep__anx_001

    • mh_y_ysr__anxdep__anx_002

    • mh_y_ysr__anxdep__anx_003

    • mh_y_ysr__anxdep_001

    • mh_y_ysr__anxdep_002

    • mh_y_ysr__anxdep__dep_002

    • mh_y_ysr__anxdep__anx_004

    • mh_y_ysr__anxdep__anx_005

    • mh_y_ysr__anxdep__dep_003

    • mh_y_ysr__anxdep__anx_006

    • mh_y_ysr__anxdep__anx_007

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__wthdep_001

    • mh_y_ysr__wthdep_002

    • mh_y_ysr__wthdep_003

    • mh_y_ysr__wthdep_004

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

    • mh_y_ysr__wthdep_005

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__som_001

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__int

compute_mh_y_ysr__synd__int_nm(
  data,
  name = "mh_y_ysr__synd__int_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.

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.

Format

vars_mh_y_ysr__synd__int is vector of all column names used to compute summary score of mh_y_ysr__synd__int scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__int_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__int_nm", vars_mh_y_ysr__synd__int))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Other problems): Number missing"

Description

Computes the summary score mh_y_ysr__synd__othpr_nm Youth Self Report [Youth] (Other problems): Number missing

  • Summarized variables:

    • mh_y_ysr__othpr_001

    • mh_y_ysr__othpr__dep_001

    • mh_y_ysr__othpr_002

    • mh_y_ysr__othpr_003

    • mh_y_ysr__othpr_004

    • mh_y_ysr__othpr_005

    • mh_y_ysr__othpr_006

    • mh_y_ysr__othpr__dep_002

    • mh_y_ysr__othpr__adhd_001

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__othpr

compute_mh_y_ysr__synd__othpr_nm(
  data,
  name = "mh_y_ysr__synd__othpr_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.

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.

Format

vars_mh_y_ysr__synd__othpr is vector of all column names used to compute summary score of mh_y_ysr__synd__othpr scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__othpr_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__othpr_nm", vars_mh_y_ysr__synd__othpr))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Rule breaking behavior): Number missing"

Description

Computes the summary score mh_y_ysr__synd__rule_nm Youth Self Report [Youth] (Syndrome Scale - Rule breaking behavior): Number missing

  • Summarized variables:

    • mh_y_ysr__rule_001

    • mh_y_ysr__rule__cond_001

    • mh_y_ysr__rule__cond_002

    • mh_y_ysr__rule__cond_003

    • mh_y_ysr__rule__cond_004

    • mh_y_ysr__rule_002

    • mh_y_ysr__rule__cond_005

    • mh_y_ysr__rule__cond_006

    • mh_y_ysr__rule__cond_007

    • mh_y_ysr__rule__cond_008

    • mh_y_ysr__rule__cond_009

    • mh_y_ysr__rule_003

    • mh_y_ysr__rule_004

    • mh_y_ysr__rule__cond_010

    • mh_y_ysr__rule_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__rule

compute_mh_y_ysr__synd__rule_nm(
  data,
  name = "mh_y_ysr__synd__rule_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.

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.

Format

vars_mh_y_ysr__synd__rule is vector of all column names used to compute summary score of mh_y_ysr__synd__rule scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__rule_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__rule_nm", vars_mh_y_ysr__synd__rule))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale -Social problems): Number missing"

Description

Computes the summary score mh_y_ysr__synd__soc_nm Youth Self Report [Youth] (Syndrome Scale -Social problems): Number missing

  • Summarized variables:

    • mh_y_ysr__soc__anx_001

    • mh_y_ysr__soc_001

    • mh_y_ysr__soc_002

    • mh_y_ysr__soc_003

    • mh_y_ysr__soc_004

    • mh_y_ysr__soc_005

    • mh_y_ysr__soc_006

    • mh_y_ysr__soc_007

    • mh_y_ysr__soc_008

    • mh_y_ysr__soc_009

    • mh_y_ysr__soc_010

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__soc

compute_mh_y_ysr__synd__soc_nm(
  data,
  name = "mh_y_ysr__synd__soc_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.

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.

Format

vars_mh_y_ysr__synd__soc is vector of all column names used to compute summary score of mh_y_ysr__synd__soc scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__soc_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__soc_nm", vars_mh_y_ysr__synd__soc))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Somatic complaints): Number missing"

Description

Computes the summary score mh_y_ysr__synd__som_nm Youth Self Report [Youth] (Syndrome Scale - Somatic complaints): Number missing

  • Summarized variables:

    • mh_y_ysr__som__anx_001

    • mh_y_ysr__som_001

    • mh_y_ysr__som__dep_001

    • mh_y_ysr__som__somat_001

    • mh_y_ysr__som__somat_002

    • mh_y_ysr__som__somat_003

    • mh_y_ysr__som__somat_004

    • mh_y_ysr__som__somat_005

    • mh_y_ysr__som__somat_006

    • mh_y_ysr__som__somat_007

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__som

compute_mh_y_ysr__synd__som_nm(
  data,
  name = "mh_y_ysr__synd__som_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.

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.

Format

vars_mh_y_ysr__synd__som is vector of all column names used to compute summary score of mh_y_ysr__synd__som scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__som_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__som_nm", vars_mh_y_ysr__synd__som))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Thought problems): Number missing"

Description

Computes the summary score mh_y_ysr__synd__tho_nm Youth Self Report [Youth] (Syndrome Scale - Thought problems): Number missing

  • Summarized variables:

    • mh_y_ysr__tho_001

    • mh_y_ysr__tho_002

    • mh_y_ysr__tho_003

    • mh_y_ysr__tho_004

    • mh_y_ysr__tho_005

    • mh_y_ysr__tho_006

    • mh_y_ysr__tho__dep_002

    • mh_y_ysr__tho_007

    • mh_y_ysr__tho_008

    • mh_y_ysr__tho_009

    • mh_y_ysr__tho__dep_003

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__tho

compute_mh_y_ysr__synd__tho_nm(
  data,
  name = "mh_y_ysr__synd__tho_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.

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.

Format

vars_mh_y_ysr__synd__tho is vector of all column names used to compute summary score of mh_y_ysr__synd__tho scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__tho_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__tho_nm", vars_mh_y_ysr__synd__tho))
  )

## End(Not run)

Compute "Youth Self Report [Youth] (Syndrome Scale - Withdrawn/Depressed): Number missing"

Description

Computes the summary score mh_y_ysr__synd__wthdep_nm Youth Self Report [Youth] (Syndrome Scale - Withdrawn/Depressed): Number missing

  • Summarized variables:

    • mh_y_ysr__wthdep__dep_001

    • mh_y_ysr__wthdep_001

    • mh_y_ysr__wthdep_002

    • mh_y_ysr__wthdep_003

    • mh_y_ysr__wthdep_004

    • mh_y_ysr__wthdep__dep_002

    • mh_y_ysr__wthdep__dep_003

    • mh_y_ysr__wthdep_005

  • Excluded values:

    • 777

    • 999

Usage

vars_mh_y_ysr__synd__wthdep

compute_mh_y_ysr__synd__wthdep_nm(
  data,
  name = "mh_y_ysr__synd__wthdep_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.

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.

Format

vars_mh_y_ysr__synd__wthdep is vector of all column names used to compute summary score of mh_y_ysr__synd__wthdep scores.

Value

tbl. see combine.

Examples

## Not run: 
compute_mh_y_ysr__synd__wthdep_nm(data) |>
  select(
    any_of(c("mh_y_ysr__synd__wthdep_nm", vars_mh_y_ysr__synd__wthdep))
  )

## End(Not run)

Compute "Barkley Deficits in Executive Functioning Scale [Parent] (EF Summary Score): Sum"

Description

Computes the summary score nc_p_bdefs_sum Barkley Deficits in Executive Functioning Scale [Parent] (EF Summary Score): Sum

  • Summarized variables:

    • nc_p_bdefs_001

    • nc_p_bdefs_002

    • nc_p_bdefs_003

    • nc_p_bdefs_004

    • nc_p_bdefs_005

    • nc_p_bdefs_006

    • nc_p_bdefs_007

    • nc_p_bdefs_008

    • nc_p_bdefs_009

    • nc_p_bdefs_010

    • nc_p_bdefs_011

    • nc_p_bdefs_012

    • nc_p_bdefs_013

    • nc_p_bdefs_014

    • nc_p_bdefs_015

    • nc_p_bdefs_016

    • nc_p_bdefs_017

    • nc_p_bdefs_018

    • nc_p_bdefs_019

    • nc_p_bdefs_020

Usage

vars_nc_p_bdefs

compute_nc_p_bdefs_sum(
  data,
  name = "nc_p_bdefs_sum",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_nc_p_bdefs is a character vector of all column names used to compute summary scores of nc_p_bdefs.

Value

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

Examples

## Not run: 
compute_nc_p_bdefs_sum(data) |>
  select(
    data,
    all_of(c("nc_p_bdefs_sum", vars_nc_p_bdefs))
  )

## End(Not run)

Compute "Edinburgh Handedness Inventory [Youth] (Handedness score rating)"

Description

Computes the summary score nc_y_ehis_score Edinburgh Handedness Inventory [Youth] (Handedness score rating)

  • Summarized variables:

    • nc_y_ehis_001

    • nc_y_ehis_002

    • nc_y_ehis_003

    • nc_y_ehis_004

Usage

vars_nc_y_ehis

compute_nc_y_ehis_score(
  data,
  name = "nc_y_ehis_score",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_nc_y_ehis is a character vector of all column names used to compute summary scores of nc_y_ehis.

Value

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

Examples

## Not run: 
compute_nc_y_ehis_score(data) |>
  select(
    data,
    all_of(c("nc_y_ehis_score", vars_nc_y_ehis))
  )

## End(Not run)

Compute "Youth Screen Time [Parent] (Problematic Media Use): Mean [Validation: No more than 1 missing or declined]"

Description

Computes the summary score nt_p_yst__pmum_mean Youth Screen Time [Parent] (Problematic Media Use): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • nt_p_yst__pmum_001

    • nt_p_yst__pmum_002

    • nt_p_yst__pmum_003

    • nt_p_yst__pmum_004

    • nt_p_yst__pmum_005

    • nt_p_yst__pmum_006

    • nt_p_yst__pmum_007

    • nt_p_yst__pmum_008

    • nt_p_yst__pmum_009

  • Excluded values:

    • 777

    • 999

Usage

vars_nt_p_yst__pmum

compute_nt_p_yst__pmum_mean(
  data,
  name = "nt_p_yst__pmum_mean",
  max_na = 1,
  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).

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

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.

Format

vars_nt_p_yst__pmum is a character vector of all column names used to compute summary score of nt_p_yst__pmum_mean.

Value

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


Compute "Youth Screen Time [Parent] (Weekday): Sum"

Description

Computes the summary score nt_p_yst__screen__wkdy_sum Youth Screen Time [Parent] (Weekday): Sum

  • Summarized variables:

    • nt_p_yst__wkdy__hr_001

    • nt_p_yst__wkdy__min_001

    • nt_p_yst__wkdy__min_001__v01

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 1 item missing

Usage

vars_nt_p_yst__screen__wkdy

compute_nt_p_yst__screen__wkdy_sum(
  data,
  name = "nt_p_yst__screen__wkdy_sum",
  max_na = 0,
  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).

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

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.

Format

vars_nt_p_yst__screen__wkdy is a character vector of all column names used to compute summary score of nt_p_yst__screen__wkdy.

Value

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


Compute "Youth Screen Time [Parent] (Weekend): Sum"

Description

Computes the summary score nt_p_yst__screen__wknd_sum Youth Screen Time [Parent] (Weekend): Sum

  • Summarized variables:

    • nt_p_yst__wknd__hr_001

    • nt_p_yst__wknd__min_001

    • nt_p_yst__wknd__min_001__v01

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 of 1 item missing

Usage

vars_nt_p_yst__screen__wknd

compute_nt_p_yst__screen__wknd_sum(
  data,
  name = "nt_p_yst__screen__wknd_sum",
  max_na = 0,
  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).

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

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.

Format

vars_nt_p_yst__screen__wknd is a character vector of all column names used to compute summary score of nt_p_yst__screen__wknd.

Value

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


Compute "Screen Time [Youth] (Weekday): Sum"

Description

Computes the summary score nt_y_stq__screen__wkdy_sum Screen Time [Youth] (Weekday): Sum

  • Summarized variables:

    • nt_y_stq__screen__wkdy_001

    • nt_y_stq__screen__wkdy_002

    • nt_y_stq__screen__wkdy_003

    • nt_y_stq__screen__wkdy_004

    • nt_y_stq__screen__wkdy_005

    • nt_y_stq__screen__wkdy_006

    • nt_y_stq__screen__wkdy__hr_001

    • nt_y_stq__screen__wkdy__min_001

    • nt_y_stq__screen__wkdy__hr_001__v01

    • nt_y_stq__screen__wkdy__min_001__v01

    • nt_y_stq__screen__wkdy__hr_002

    • nt_y_stq__screen__wkdy__min_002

    • nt_y_stq__screen__wkdy__hr_003

    • nt_y_stq__screen__wkdy__min_003

    • nt_y_stq__screen__wkdy__hr_004

    • nt_y_stq__screen__wkdy__min_004

    • nt_y_stq__screen__wkdy__hr_005

    • nt_y_stq__screen__wkdy__min_005

    • nt_y_stq__screen__wkdy__hr_006

    • nt_y_stq__screen__wkdy__min_006

    • nt_y_stq__screen__wkdy__hr_007

    • nt_y_stq__screen__wkdy__min_007

    • nt_y_stq__screen__wkdy__hr_008

    • nt_y_stq__screen__wkdy__min_008

    • nt_y_stq__screen__wkdy__hr_009

    • nt_y_stq__screen__wkdy__min_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: none missing

Usage

vars_nt_y_stq__screen__wkdy

compute_nt_y_stq__screen__wkdy_sum(
  data,
  name = "nt_y_stq__screen__wkdy_sum",
  max_na = 0,
  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).

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

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.

Format

vars_nt_y_stq__screen__wkdy is a character vector of all column names used to compute summary score of nt_y_stq__screen__wkdy.

Value

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


Compute "Screen Time [Youth] (Weekend): Sum"

Description

Computes the summary score nt_y_stq__screen__wknd_sum Screen Time [Youth] (Weekend): Sum

  • Summarized variables:

    • nt_y_stq__screen__wknd_001

    • nt_y_stq__screen__wknd_002

    • nt_y_stq__screen__wknd_003

    • nt_y_stq__screen__wknd_004

    • nt_y_stq__screen__wknd_005

    • nt_y_stq__screen__wknd_006

    • nt_y_stq__screen__wknd__hr_001

    • nt_y_stq__screen__wknd__min_001

    • nt_y_stq__screen__wknd__hr_001__v01

    • nt_y_stq__screen__wknd__min_001__v01

    • nt_y_stq__screen__wknd__hr_002

    • nt_y_stq__screen__wknd__min_002

    • nt_y_stq__screen__wknd__hr_003

    • nt_y_stq__screen__wknd__min_003

    • nt_y_stq__screen__wknd__hr_004

    • nt_y_stq__screen__wknd__min_004

    • nt_y_stq__screen__wknd__hr_005

    • nt_y_stq__screen__wknd__min_005

    • nt_y_stq__screen__wknd__hr_006

    • nt_y_stq__screen__wknd__min_006

    • nt_y_stq__screen__wknd__hr_007

    • nt_y_stq__screen__wknd__min_007

    • nt_y_stq__screen__wknd__hr_008

    • nt_y_stq__screen__wknd__min_008

    • nt_y_stq__screen__wknd__hr_009

    • nt_y_stq__screen__wknd__min_009

  • Excluded values:

    • 777

    • 999

  • Validation criterion: none missing

Usage

vars_nt_y_stq__screen__wknd

compute_nt_y_stq__screen__wknd_sum(
  data,
  name = "nt_y_stq__screen__wknd_sum",
  max_na = 0,
  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).

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

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.

Format

vars_nt_y_stq__screen__wknd is a character vector of all column names used to compute summary score of nt_y_stq__screen__wknd.

Value

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


Compute "Anthropometrics [Parent] (Height): Father's height (in)"

Description

Computes the summary score ph_p_anthr__fath_height__in Anthropometrics [Parent] (Height): Father's height (in)

  • Summarized variables:

    • ph_p_anthr__height__fath_001

    • ph_p_anthr__height__fath_001__01

  • Excluded values: None

  • Validation criterion: None

Usage

vars_ph_p_anthr__height

compute_ph_p_anthr__fath_height__in(
  data,
  name = "ph_p_anthr__fath_height__in",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

character vector of all column names used to compute summary scores of ph_p_anthr__fath_height__in and ph_p_anthr__moth_height__in.

Examples

## Not run: 
compute_ph_p_anthr__fath_height__in(data) |>
  select(
    all_of(c("ph_p_anthr__fath_height__in", vars_ph_p_anthr__height))
  )

## End(Not run)

Compute "Child Nutrition Assessment [Parent]: Sum [Validation: No more than 0 missing or declined]"

Description

Computes the summary score ph_p_cna_sum Child Nutrition Assessment [Parent]: Sum [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • ph_p_cna_001

    • ph_p_cna_002

    • ph_p_cna_003

    • ph_p_cna_004

    • ph_p_cna_005

    • ph_p_cna_006

    • ph_p_cna_007

    • ph_p_cna_008

    • ph_p_cna_009

    • ph_p_cna_010

    • ph_p_cna_011

    • ph_p_cna_012

    • ph_p_cna_013

    • ph_p_cna_014

  • Excluded values:

    • 999

    • 777

  • Validation criterion: maximally 0 of 14 items missing

Usage

vars_ph_p_cna

compute_ph_p_cna_sum(
  data,
  name = "ph_p_cna_sum",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

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

Format

vars_ph_p_cna is a character vector of all column names used to compute summary scores of ph_p_cna.

Value

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

Examples

## Not run: 
compute_ph_p_cna_sum(data) |>
  select(
    all_of(c("ph_p_cna_sum", vars_ph_p_cna))
  )

## End(Not run)

Compute "Developmental History [Parent]: Youth birth weight"

Description

Computes the summary score ph_p_dhx_birthweight Developmental History [Parent]: Youth birth weight

  • Summarized variables:

    • ph_p_dhx_002__01

    • ph_p_dhx_002__02

  • Excluded values:

    • 999

    • any value less than 0

  • Notes:

    • Computed using only baseline (⁠ses-00A⁠) and four-year (⁠ses-04A⁠) data

    • The following transformations were made prior to computing the score:

      • if ph_p_dhx_002__01 < 2, set it to 2

      • if ph_p_dhx_002__01 > 15, set it to 15

      • if ph_p_dhx_002__02 > 15 / 16, set it to 15 / 16

    • The following decisions were made based on discordance between baseline and four-year data:

      • if discordance is <= 1, take baseline weight

      • if discordance is > 1 and baseline weight is > 4, take baseline weight

      • else if discordance is > 1, take four-year weight

      • else if baseline weight is missing, take four-year weight

      • else, take baseline weight

Usage

vars_ph_p_dhx_birthweight

compute_ph_p_dhx_birthweight(
  data,
  name = "ph_p_dhx_birthweight",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized. NOTE: Only baseline and year 4 data has been used for this summary score.

name

character, Name of the new column to be created. Default is the name in description, but users can change it.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_ph_p_dhx_birthweight is a character vector of all column names used to compute summary score of ph_p_dhx_birthweight.

Value

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


Compute "Ohio State Traumatic Brain Injury Screen [Parent]: Number of missing gating items"

Description

Computes the summary score ph_p_otbi_nm Ohio State Traumatic Brain Injury Screen [Parent]: Number of missing gating items

  • Excluded values:

    • 777

    • 999

Usage

vars_ph_p_otbi

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

Format

vars_ph_p_otbi is a character vector of all column names used to compute summary score of ph_p_otbi_nm.

Value

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


Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness - Over 30 minutes): Count"

Description

Computes the summary score ph_p_otbi__loc__30m_count Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness - Over 30 minutes): Count

  • Summarized variables:

    • ph_p_otbi_001

    • ph_p_otbi__loc_001

    • ph_p_otbi_002

    • ph_p_otbi__loc_002

    • ph_p_otbi_003

    • ph_p_otbi__loc_003

    • ph_p_otbi_004

    • ph_p_otbi__loc_004

    • ph_p_otbi_005

    • ph_p_otbi__loc_005

    • ph_p_otbi__loc__add_001

    • ph_p_otbi__loc__add_001__03

    • ph_p_otbi__rpt_001

    • ph_p_otbi__rpt__loc_001

    • ph_p_otbi_001__l

    • ph_p_otbi__loc_001__l

    • ph_p_otbi_002__l

    • ph_p_otbi__loc_002__l

    • ph_p_otbi_003__l

    • ph_p_otbi__loc_003__l

    • ph_p_otbi_004__l

    • ph_p_otbi__loc_004__l

    • ph_p_otbi_005__l

    • ph_p_otbi__loc_005__l

    • ph_p_otbi__loc__add_001__l

    • ph_p_otbi__loc__add_001__03__l

    • ph_p_otbi__rpt_001__l

    • ph_p_otbi__rpt__loc_001__l

  • Excluded values:

    • 777

    • 999

Usage

vars_ph_p_otbi__loc__30m_count

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

Format

vars_ph_p_otbi__loc__30m_count is a character vector of all column names used to compute summary score of ph_p_otbi__loc__30m_count.

Value

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


Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): LOC before the age of 15"

Description

Computes the summary score ph_p_otbi__loc_before15 Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): LOC before the age of 15

  • Summarized variables:

    • ph_p_otbi_001

    • ph_p_otbi__loc_001

    • ph_p_otbi__age_001

    • ph_p_otbi_002

    • ph_p_otbi__loc_002

    • ph_p_otbi__age_002

    • ph_p_otbi_003

    • ph_p_otbi__loc_003

    • ph_p_otbi__age_003

    • ph_p_otbi_004

    • ph_p_otbi__loc_004

    • ph_p_otbi__age_004

    • ph_p_otbi_005

    • ph_p_otbi__loc_005

    • ph_p_otbi__age_005

    • ph_p_otbi__loc__add_001

    • ph_p_otbi__loc__add_001__04

    • ph_p_otbi__rpt_001

    • ph_p_otbi__rpt__loc_001

    • ph_p_otbi__rpt__age_001a

    • ph_p_otbi__rpt_002

    • ph_p_otbi__rpt__loc__daz_002

    • ph_p_otbi__rpt__age_002a

    • ph_p_otbi__rpt_003

    • ph_p_otbi__rpt__loc__daz_003

    • ph_p_otbi__rpt__age_003a

    • ph_p_otbi_001__l

    • ph_p_otbi__loc_001__l

    • ph_p_otbi__age_001__l

    • ph_p_otbi_002__l

    • ph_p_otbi__loc_002__l

    • ph_p_otbi__age_002__l

    • ph_p_otbi_003__l

    • ph_p_otbi__loc_003__l

    • ph_p_otbi__age_003__l

    • ph_p_otbi_004__l

    • ph_p_otbi__loc_004__l

    • ph_p_otbi__age_004__l

    • ph_p_otbi_005__l

    • ph_p_otbi__loc_005__l

    • ph_p_otbi__age_005__l

    • ph_p_otbi__loc__add_001__l

    • ph_p_otbi__loc__add_001__04__l

    • ph_p_otbi__rpt_001__l

    • ph_p_otbi__rpt__loc_001__l

    • ph_p_otbi__rpt__age_001a__l

  • Excluded values:

    • 777

    • 999

Usage

vars_ph_p_otbi__loc_before15

compute_ph_p_otbi__loc_before15(
  data,
  name = "ph_p_otbi__loc_before15",
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

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.

Format

vars_ph_p_otbi__loc_before15 is a character vector of all column names used to compute summary score of ph_p_otbi__loc_before15.

Value

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

See Also

compute_ph_p_otbi__loc_tbiage()


Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): Count"

Description

Computes the summary score ph_p_otbi__loc_count Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): Count

  • Summarized variables:

    • ph_p_otbi_001

    • ph_p_otbi__loc_001

    • ph_p_otbi_002

    • ph_p_otbi__loc_002

    • ph_p_otbi_003

    • ph_p_otbi__loc_003

    • ph_p_otbi_004

    • ph_p_otbi__loc_004

    • ph_p_otbi_005

    • ph_p_otbi__loc_005

    • ph_p_otbi__loc__add_001

    • ph_p_otbi__loc__add_001__01

    • ph_p_otbi__rpt_001

    • ph_p_otbi__rpt__loc_001

    • ph_p_otbi__rpt_002

    • ph_p_otbi__rpt__loc__daz_002

    • ph_p_otbi__rpt_003

    • ph_p_otbi__rpt__loc__daz_003

    • ph_p_otbi_001__l

    • ph_p_otbi__loc_001__l

    • ph_p_otbi_002__l

    • ph_p_otbi__loc_002__l

    • ph_p_otbi_003__l

    • ph_p_otbi__loc_003__l

    • ph_p_otbi_004__l

    • ph_p_otbi__loc_004__l

    • ph_p_otbi_005__l

    • ph_p_otbi__loc_005__l

    • ph_p_otbi__loc__add_001__l

    • ph_p_otbi__loc__add_001__01__l

    • ph_p_otbi__rpt_001__l

    • ph_p_otbi__rpt__loc_001__l

  • Excluded values:

    • 777

    • 999

Usage

vars_ph_p_otbi__loc_count

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

Format

vars_ph_p_otbi__loc_count is a character vector of all column names used to compute summary score of ph_p_otbi__loc_count.

Value

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


Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): Age of first injury with LOC"

Description

Computes the summary score ph_p_otbi__loc_tbiage Ohio State Traumatic Brain Injury Screen [Parent] (Loss of consciousness): Age of first injury with LOC

  • Summarized variables:

    • ph_p_otbi_001

    • ph_p_otbi__loc_001

    • ph_p_otbi__age_001

    • ph_p_otbi_002

    • ph_p_otbi__loc_002

    • ph_p_otbi__age_002

    • ph_p_otbi_003

    • ph_p_otbi__loc_003

    • ph_p_otbi__age_003

    • ph_p_otbi_004

    • ph_p_otbi__loc_004

    • ph_p_otbi__age_004

    • ph_p_otbi_005

    • ph_p_otbi__loc_005

    • ph_p_otbi__age_005

    • ph_p_otbi__loc__add_001

    • ph_p_otbi__loc__add_001__04

    • ph_p_otbi__rpt_001

    • ph_p_otbi__rpt__loc_001

    • ph_p_otbi__rpt__age_001a

    • ph_p_otbi__rpt_002

    • ph_p_otbi__rpt__loc__daz_002

    • ph_p_otbi__rpt__age_002a

    • ph_p_otbi__rpt_003

    • ph_p_otbi__rpt__loc__daz_003

    • ph_p_otbi__rpt__age_003a

    • ph_p_otbi_001__l

    • ph_p_otbi__loc_001__l

    • ph_p_otbi__age_001__l

    • ph_p_otbi_002__l

    • ph_p_otbi__loc_002__l

    • ph_p_otbi__age_002__l

    • ph_p_otbi_003__l

    • ph_p_otbi__loc_003__l

    • ph_p_otbi__age_003__l

    • ph_p_otbi_004__l

    • ph_p_otbi__loc_004__l

    • ph_p_otbi__age_004__l

    • ph_p_otbi_005__l

    • ph_p_otbi__loc_005__l

    • ph_p_otbi__age_005__l

    • ph_p_otbi__loc__add_001__l

    • ph_p_otbi__loc__add_001__04__l

    • ph_p_otbi__rpt_001__l

    • ph_p_otbi__rpt__loc_001__l

    • ph_p_otbi__rpt__age_001a__l

  • Excluded values:

    • 777

    • 999

    • any reported age less than or equal to 0

  • Notes:

    • The output is set to NA for the following cases:

      • minimum age is less than 0

      • minimum age is higher than age at visit

      • no head or neck injury/impact is reported

Usage

vars_ph_p_otbi__loc_tbiage

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

Format

vars_ph_p_otbi__loc_tbiage is a character vector of all column names used to compute summary score of ph_p_otbi__loc_tbiage.

Value

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


Compute "Ohio State Traumatic Brain Injury Screen [Parent] (Repeated injuries): Count"

Description

Computes the summary score ph_p_otbi__rpt_count Ohio State Traumatic Brain Injury Screen [Parent] (Repeated injuries): Count [Validation: No more than 2 missing or declined at baseline and no more than 0 missing or declined at non-baseline events]

  • Summarized variables:

    • ph_p_otbi__rpt_001

    • ph_p_otbi__rpt_002

    • ph_p_otbi__rpt_003

    • ph_p_otbi__rpt_001__l

  • Excluded values:

    • 777

    • 999

  • Validation criterion:

    • maximally 2 item missing at baseline event

    • maximally 0 item missing at non-baseline events

Usage

vars_ph_p_otbi__rpt_count

compute_ph_p_otbi__rpt_count(
  data,
  name = "ph_p_otbi__rpt_count",
  exclude = c("777", "999"),
  combine = TRUE,
  max_na = 2
)

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 (Default: 2).

Format

vars_ph_p_otbi__rpt_count is a character vector of all column names used to compute summary score of ph_p_otbi__rpt_count.

Value

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


Compute "Ohio State Traumatic Brain Injury Screen [Parent]: Worst injury overall"

Description

Computes the summary score ph_p_otbi_tbiworst Ohio State Traumatic Brain Injury Screen [Parent]: Worst injury overall

  • Summarized variables:

    • ph_p_otbi_001

    • ph_p_otbi_002

    • ph_p_otbi_003

    • ph_p_otbi_004

    • ph_p_otbi_005

    • ph_p_otbi__loc__add_001

    • ph_p_otbi__rpt_001

    • ph_p_otbi_001__l

    • ph_p_otbi_002__l

    • ph_p_otbi_003__l

    • ph_p_otbi_004__l

    • ph_p_otbi_005__l

    • ph_p_otbi__loc__add_001__l

    • ph_p_otbi__rpt_001__l

    • ph_p_otbi__loc_001

    • ph_p_otbi__loc_002

    • ph_p_otbi__loc_003

    • ph_p_otbi__loc_004

    • ph_p_otbi__loc_005

    • ph_p_otbi__daz_001

    • ph_p_otbi__daz_002

    • ph_p_otbi__daz_003

    • ph_p_otbi__daz_004

    • ph_p_otbi__daz_005

    • ph_p_otbi__rpt__loc_001

    • ph_p_otbi__rpt__daz_001

    • ph_p_otbi__rpt_002

    • ph_p_otbi__rpt__loc__daz_002

    • ph_p_otbi__rpt_003

    • ph_p_otbi__rpt__loc__daz_003

    • ph_p_otbi__loc_001__l

    • ph_p_otbi__loc_002__l

    • ph_p_otbi__loc_003__l

    • ph_p_otbi__loc_004__l

    • ph_p_otbi__loc_005__l

    • ph_p_otbi__daz_001__l

    • ph_p_otbi__daz_002__l

    • ph_p_otbi__daz_003__l

    • ph_p_otbi__daz_004__l

    • ph_p_otbi__daz_005__l

    • ph_p_otbi__rpt__loc_001__l

    • ph_p_otbi__rpt__daz_001__l

    • ph_p_otbi__loc__add_001__02

    • ph_p_otbi__loc__add_001__03

    • ph_p_otbi__loc__add_001__02__l

    • ph_p_otbi__loc__add_001__03__l

  • Excluded values:

    • 777

    • 999

  • Notes:

    • Computed using the following summary scores:

      • ph_p_otbi__tbi1a

      • ph_p_otbi__tbi1b

      • ph_p_otbi__tbi2

      • ph_p_otbi__tbi3

      • ph_p_otbi__tbi4

      • ph_p_otbi__tbi5

Usage

vars_ph_p_otbi_tbiworst

compute_ph_p_otbi_tbiworst(
  data,
  name = "ph_p_otbi_tbiworst",
  keep_summaries = FALSE,
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

keep_summaries

logical. If TRUE, intermediate columns created to compute the summary score will be retained. If FALSE, the intermediate columns will be removed. Default set to FALSE.

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.

Format

vars_ph_p_otbi_tbiworst is a character vector of all column names used to compute summary score of ph_p_otbi_tbiworst.

Value

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


Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Female): Mean"

Description

Computes the summary score ph_p_pds__f_mean Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Female): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • ph_p_pds_001

    • ph_p_pds_002

    • ph_p_pds_003

    • ph_p_pds__f_001

    • ph_p_pds__f_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 item missing

  • Notes:

    • Values in ph_p_pds__f_002 were recoded:

      • "0" –> "1",

      • "1" –> "4"

Usage

vars_ph_p_pds__f

compute_ph_p_pds__f_mean(
  data,
  name = "ph_p_pds__f_mean",
  exclude = c("777", "999"),
  combine = TRUE,
  max_na = 1
)

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__f is a character vector of all column names used to compute summary score of ph_p_pds__f_mean and ph_p_pds__f_nm.

Value

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


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

Description

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

  • Summarized variables:

    • ph_p_pds_002

    • ph_p_pds__f_001

    • ph_p_pds__f_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 items missing

Usage

vars_ph_p_pds__f_categ

compute_ph_p_pds__f_categ(
  data,
  name = "ph_p_pds__f_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__f is a character vector of all column names used to compute summary score of ph_p_pds__f_categ and ph_p_pds__f__categ_nm.

Value

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


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

Description

Computes the summary score ph_p_pds__m_mean Pubertal Development Scale & Menstrual Cycle Survey History [Parent] (Male): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • ph_p_pds_001

    • ph_p_pds_002

    • ph_p_pds_003

    • ph_p_pds__m_001

    • ph_p_pds__m_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 item missing

Usage

vars_ph_p_pds__m

compute_ph_p_pds__m_mean(
  data,
  name = "ph_p_pds__m_mean",
  exclude = c("777", "999"),
  combine = TRUE,
  max_na = 1
)

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_mean and ph_p_pds__m_nm.

Value

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


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.


Compute "Sleep Disturbance Scale [Parent] (Disorder of arousal): Sum [Validation: No more than 0 missing or declined]"

Description

Computes the summary score ph_p_sds__da_sum Sleep Disturbance Scale [Parent] (Disorder of arousal): Sum [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • ph_p_sds__da_001

    • ph_p_sds__da_002

    • ph_p_sds__da_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 items missing

Usage

vars_ph_p_sds__da

compute_ph_p_sds__da_sum(
  data,
  name = "ph_p_sds__da_sum",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

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

Format

character vector of all column names used to compute summary scores of ph_p_sds__da_sum and ph_p_sds__da_nm.

Examples

## Not run: 
compute_ph_p_sds__da_sum(data) |>
  select(
    all_of(c("ph_p_sds__da_sum", vars_ph_p_sds__da))
  )

## End(Not run)

Compute "Sleep Disturbance Scale [Parent] (Disorders of initiating and maintaining sleep): Sum [Validation: No more than 0 missing or declined]"

Description

Computes the summary score ph_p_sds__dims_sum Sleep Disturbance Scale [Parent] (Disorders of initiating and maintaining sleep): 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__dims_006

    • ph_p_sds__dims_007

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 items missing

Usage

vars_ph_p_sds__dims

compute_ph_p_sds__dims_sum(
  data,
  name = "ph_p_sds__dims_sum",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

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

Format

character vector of all column names used to compute summary scores of ph_p_sds__dims_sum and ph_p_sds__dims_nm.

Examples

## Not run: 
compute_ph_p_sds__dims_sum(data) |>
  select(
    all_of(c("ph_p_sds__dims_sum", vars_ph_p_sds__dims))
  )

## End(Not run)

Compute "Sleep Disturbance Scale [Parent] (Disorders of excessive somnolence): Sum [Validation: No more than 0 missing or declined]"

Description

Computes the summary score ph_p_sds__does_sum Sleep Disturbance Scale [Parent] (Disorders of excessive somnolence): Sum [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • 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

Usage

vars_ph_p_sds__does

compute_ph_p_sds__does_sum(
  data,
  name = "ph_p_sds__does_sum",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

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

Format

character vector of all column names used to compute summary scores of ph_p_sds__does_sum and ph_p_sds__does_nm.

Examples

## Not run: 
compute_ph_p_sds__does_sum(data) |>
  select(
    all_of(c("ph_p_sds__does_sum", vars_ph_p_sds__does))
  )

## End(Not run)

Compute "Sleep Disturbance Scale [Parent] (Sleep hyperhydrosis): Sum [Validation: No more than 0 missing or declined]"

Description

Computes the summary score ph_p_sds__hyphy_sum Sleep Disturbance Scale [Parent] (Sleep hyperhydrosis): Sum [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • ph_p_sds__hyphy_001

    • ph_p_sds__hyphy_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 items missing

Usage

vars_ph_p_sds__hyphy

compute_ph_p_sds__hyphy_sum(
  data,
  name = "ph_p_sds__hyphy_sum",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

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

Format

character vector of all column names used to compute summary scores of ph_p_sds__hyphy_sum and ph_p_sds__hyphy_nm.

Examples

## Not run: 
compute_ph_p_sds__hyphy_sum(data) |>
  select(
    all_of(c("ph_p_sds__hyphy_sum", vars_ph_p_sds__hyphy))
  )

## End(Not run)

Compute "Sleep Disturbance Scale [Parent] (Sleep breathing disorders): Sum [Validation: No more than 0 missing or declined]"

Description

Computes the summary score ph_p_sds__sbd_sum Sleep Disturbance Scale [Parent] (Sleep breathing disorders): Sum [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • ph_p_sds__sbd_001

    • ph_p_sds__sbd_002

    • ph_p_sds__sbd_003

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 items missing

Usage

vars_ph_p_sds__sbd

compute_ph_p_sds__sbd_sum(
  data,
  name = "ph_p_sds__sbd_sum",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

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

Format

character vector of all column names used to compute summary scores of ph_p_sds__sbd_sum and ph_p_sds__sbd_nm.

Examples

## Not run: 
compute_ph_p_sds__sbd_sum(data) |>
  select(
    all_of(c("ph_p_sds__sbd_sum", vars_ph_p_sds__sbd))
  )

## End(Not run)

Compute "Sleep Disturbance Scale [Parent] (Sleep-wake transition disorders): Sum [Validation: No more than 0 missing or declined]"

Description

Computes the summary score ph_p_sds__swtd_sum Sleep Disturbance Scale [Parent] (Sleep-wake transition disorders): Sum [Validation: No more than 0 missing or declined]

  • Summarized variables:

    • ph_p_sds__swtd_001

    • ph_p_sds__swtd_002

    • ph_p_sds__swtd_003

    • ph_p_sds__swtd_004

    • ph_p_sds__swtd_005

    • ph_p_sds__swtd_006

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 items missing

Usage

vars_ph_p_sds__swtd

compute_ph_p_sds__swtd_sum(
  data,
  name = "ph_p_sds__swtd_sum",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

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

Format

character vector of all column names used to compute summary scores of ph_p_sds__swtd_sum and ph_p_sds__swtd_nm.

Examples

## Not run: 
compute_ph_p_sds__swtd_sum(data) |>
  select(
    all_of(c("ph_p_sds__swtd_sum", vars_ph_p_sds__swtd))
  )

## End(Not run)

Compute "Sleep Disturbance Scale [Parent]: Sum [Validation: No more than 0 missing or declined]"

Description

Computes the summary score ph_p_sds_sum Sleep Disturbance Scale [Parent]: 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

Usage

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
)

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.

max_na

integer, Maximum number of missing values allowed in the summary score. NULL means no limit.

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

Format

character vector of all column names used to compute summary scores of ph_p_sds_sum and ph_p_sds_nm.

Value

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

Examples

## Not run: 
compute_ph_p_sds_sum(data) |>
  select(
    all_of(c("ph_p_sds_sum", vars_ph_p_sds_sum))
  )

## End(Not run)

Compute "Anthropometrics [Youth] (Height): Mean"

Description

Computes the summary score ph_y_anthr__height_mean Anthropometrics [Youth] (Height): Mean

  • Summarized variables:

    • ph_y_anthr__height__r01_001

    • ph_y_anthr__height__r02_001

    • ph_y_anthr__height__r03_001

  • Excluded values: none

Calculation

There are at most 3 possible measurements, and the calculation is as follows:

  • 0 missing, find the max and min of the three, and take the average of the min and max. Then compare the average to the third value.

    • third value < average -> mean(min, third value)

    • third value > average -> mean(max, third value)

    • third value = average -> third value

  • 1 missing, mean of the rest two

  • 2 missing, use the last one

  • 3 missing, NA

Usage

vars_ph_y_anthr__height

compute_ph_y_anthr__height_mean(
  data,
  name = "ph_y_anthr__height_mean",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_ph_y_anthr__height is a character vector of all column names used to compute summary scores of ph_y_anthr__height.

Value

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

Examples

## Not run: 
compute_ph_y_anthr__height_mean(data) |>
  select(
    all_of(c("ph_y_anthr__height_mean", vars_ph_y_anthr__height))
  )

## End(Not run)

Compute "Anthropometrics [Youth] (Weight): Mean"

Description

Computes the summary score ph_y_anthr__weight_mean Anthropometrics [Youth] (Weight): Mean

  • Summarized variables: * ph_y_anthr__weight__r01_001

    • ph_y_anthr__weight__r02_001

    • ph_y_anthr__weight__r03_001

  • Excluded values: none

Calculation

There are at most 3 possible measurements, and the calculation is as follows:

  • 0 missing, find the max and min of the three, and take the average of the min and max. Then compare the average to the third value.

    • third value < average -> mean(min, third value)

    • third value > average -> mean(max, third value)

    • third value = average -> third value

  • 1 missing, mean of the rest two

  • 2 missing, use the last one

  • 3 missing, NA

Usage

vars_ph_y_anthr__weight

compute_ph_y_anthr__weight_mean(
  data,
  name = "ph_y_anthr__weight_mean",
  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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_ph_y_anthr__weight is a character vector of all column names used to compute summary scores of ph_y_anthr__weight.

Value

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

Examples

## Not run: 
compute_ph_y_anthr__weight_mean(data) |>
  select(
    all_of(c("ph_y_anthr__weight_mean", vars_ph_y_anthr__weight))
  )

## End(Not run)

Compute "Blood Pressure [Youth] (Diastolic): Mean"

Description

Computes the summary score ph_y_bp__dia_mean Blood Pressure [Youth] (Diastolic): Mean

  • Summarized variables:

    • ph_y_bp__dia__r01_001

    • ph_y_bp__dia__r01_002

    • ph_y_bp__dia__r01_003

    • ph_y_bp__dia__r02_001

    • ph_y_bp__dia__r02_002

    • ph_y_bp__dia__r03_001

    • ph_y_bp__dia__r03_002

  • Excluded values: none

Usage

vars_ph_y_bp__dia

compute_ph_y_bp__dia_mean(data, name = "ph_y_bp__dia_mean", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_ph_y_bp__dia is a character vector of all column names used to compute summary scores of ph_y_bp__dia.

Value

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

Examples

## Not run: 
compute_ph_y_bp__dia_mean(data) |>
  select(
    all_of(c("ph_y_bp__dia_mean", vars_ph_y_bp__dia))
  )

## End(Not run)

Compute "Blood Pressure [Youth] (Heart rate): Mean"

Description

Computes the summary score ph_y_bp__hrate_mean Blood Pressure [Youth] (Heart rate): Mean

  • Summarized variables:

    • ph_y_bp__hrate__r01_001

    • ph_y_bp__hrate__r01_002

    • ph_y_bp__hrate__r01_003

    • ph_y_bp__hrate__r02_001

    • ph_y_bp__hrate__r02_002

    • ph_y_bp__hrate__r03_001

    • ph_y_bp__hrate__r03_002

  • Excluded values: none

Usage

vars_ph_y_bp__hrate

compute_ph_y_bp__hrate_mean(data, name = "ph_y_bp__hrate_mean", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_ph_y_bp__hrate is a character vector of all column names used to compute summary scores of ph_y_bp__hrate.

Value

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

Examples

## Not run: 
compute_ph_y_bp__hrate_mean(data) |>
  select(
    all_of(c("ph_y_bp__hrate_mean", vars_ph_y_bp__hrate))
  )

## End(Not run)

Compute "Blood Pressure [Youth] (Systolic): Mean"

Description

Computes the summary score ph_y_bp__sys_mean Blood Pressure [Youth] (Systolic): Mean

  • Summarized variables:

    • ph_y_bp__sys__r01_001

    • ph_y_bp__sys__r01_002

    • ph_y_bp__sys__r01_003

    • ph_y_bp__sys__r02_001

    • ph_y_bp__sys__r02_002

    • ph_y_bp__sys__r03_001

    • ph_y_bp__sys__r03_002

  • Excluded values: none

Usage

vars_ph_y_bp__sys

compute_ph_y_bp__sys_mean(data, name = "ph_y_bp__sys_mean", 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.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_ph_y_bp__sys is a character vector of all column names used to compute summary scores of ph_y_bp__sys.

Value

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

Examples

## Not run: 
compute_ph_y_bp__sys_mean(data) |>
  select(
    all_of(c("ph_y_bp__sys_mean", vars_ph_y_bp__sys))
  )

## End(Not run)

Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Female): Mean"

Description

Computes the summary score ph_y_pds__f_mean Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Female): Mean [Validation: No more than 1 missing or declined]

  • 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

  • Validation criterion: maximally 1 item missing

Usage

vars_ph_y_pds__f

compute_ph_y_pds__f_mean(
  data,
  name = "ph_y_pds__f_mean",
  exclude = c("777", "999"),
  combine = TRUE,
  max_na = 1
)

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_y_pds__f is a character vector of all column names used to compute summary score of ph_y_pds__f_mean and ph_y_pds__f_nm.

Value

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


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

Description

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

  • Summarized variables:

    • ph_y_pds_002

    • ph_y_pds__f_001

    • ph_y_pds__f_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 items missing

Usage

vars_ph_y_pds__f_categ

compute_ph_y_pds__f_categ(
  data,
  name = "ph_y_pds__f_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_y_pds__f is a character vector of all column names used to compute summary score of ph_y_pds__f_categ and ph_y_pds__f__categ_nm.

Value

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


Compute "Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Male): Mean"

Description

Computes the summary score ph_y_pds__m_mean Pubertal Development Scale & Menstrual Cycle Survey History [Youth] (Male): Mean [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • ph_y_pds_001

    • ph_y_pds_002

    • ph_y_pds_003

    • ph_y_pds__m_001

    • ph_y_pds__m_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 1 item missing

Usage

vars_ph_y_pds__m

compute_ph_y_pds__m_mean(
  data,
  name = "ph_y_pds__m_mean",
  combine = TRUE,
  exclude = c("777", "999"),
  max_na = 1
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

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.

exclude

character vector. Values to be excluded from the summary score calculation.

max_na

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

Format

vars_ph_y_pds__m is a character vector of all column names used to compute summary score of ph_y_pds__m_mean and ph_y_pds__m_nm.

Value

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


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

Description

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

  • Summarized variables:

    • ph_y_pds_002

    • ph_y_pds__m_001

    • ph_y_pds__m_002

  • Excluded values:

    • 777

    • 999

  • Validation criterion: maximally 0 items missing

Usage

vars_ph_y_pds__m_categ

compute_ph_y_pds__m_categ(
  data,
  name = "ph_y_pds__m_categ",
  combine = TRUE,
  exclude = c("777", "999"),
  max_na = 0
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

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.

exclude

character vector. Values to be excluded from the summary score calculation.

max_na

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

Format

vars_ph_y_pds__m is a character vector of all column names used to compute summary score of ph_y_pds__m_categ and ph_y_pds__m__categ_nm.

Value

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


Compute "KSADS - Alcohol Use Disorder [Parent] (Symptom - Past): Mean"

Description

Computes the summary score su_p_ksads__aud__past__sx_mean KSADS - Alcohol Use Disorder [Parent] (Symptom - Past): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • su_p_ksads__aud__actvdecr__past_sx

    • su_p_ksads__aud__crave__past_sx

    • su_p_ksads__aud__dwi__past_sx

    • su_p_ksads__aud__failrespons__past_sx

    • su_p_ksads__aud__haz__past_sx

    • su_p_ksads__aud__negimpct__interprs__past_sx

    • su_p_ksads__aud__overuse__past_sx

    • su_p_ksads__aud__prob__phys__past_sx

    • su_p_ksads__aud__prob__psych__past_sx

    • su_p_ksads__aud__reduce__dsr__past_sx

    • su_p_ksads__aud__reduce__unsucces__past_sx

    • su_p_ksads__aud__time__past_sx

    • su_p_ksads__aud__tol__past_sx

    • su_p_ksads__aud__withdr__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_su_p_ksads__aud__past__sx

compute_su_p_ksads__aud__past__sx_mean(
  data,
  name = "su_p_ksads__aud__past__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__aud__past__sx is a character vector of all column names used to compute summary score of su_p_ksads__aud__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Alcohol Use Disorder [Parent] (Symptom - Present): Mean"

Description

Computes the summary score su_p_ksads__aud__pres__sx_mean KSADS - Alcohol Use Disorder [Parent] (Symptom - Present): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • su_p_ksads__aud__actvdecr__pres_sx

    • su_p_ksads__aud__crave__pres_sx

    • su_p_ksads__aud__dwi__pres_sx

    • su_p_ksads__aud__failrespons__pres_sx

    • su_p_ksads__aud__haz__pres_sx

    • su_p_ksads__aud__negimpct__interprs__pres_sx

    • su_p_ksads__aud__overuse__pres_sx

    • su_p_ksads__aud__prob__phys__pres_sx

    • su_p_ksads__aud__prob__psych__pres_sx

    • su_p_ksads__aud__reduce__dsr__pres_sx

    • su_p_ksads__aud__reduce__unsucces__pres_sx

    • su_p_ksads__aud__time__pres_sx

    • su_p_ksads__aud__tol__pres_sx

    • su_p_ksads__aud__withdr__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_su_p_ksads__aud__pres__sx

compute_su_p_ksads__aud__pres__sx_mean(
  data,
  name = "su_p_ksads__aud__pres__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__aud__pres__sx is a character vector of all column names used to compute summary score of su_p_ksads__aud__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Cocaine - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__coc__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Cocaine - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__coc__past_sx

    • su_p_ksads__dud__crave__coc__past_sx

    • su_p_ksads__dud__dwi__coc__past_sx

    • su_p_ksads__dud__failrespons__coc__past_sx

    • su_p_ksads__dud__haz__coc__past_sx

    • su_p_ksads__dud__negimpct__interprs__coc__past_sx

    • su_p_ksads__dud__negimpct__obl__coc__past_sx

    • su_p_ksads__dud__overuse__coc__past_sx

    • su_p_ksads__dud__prob__phys__coc__past_sx

    • su_p_ksads__dud__prob__psych__coc__past_sx

    • su_p_ksads__dud__reduce__dsr__coc__past_sx

    • su_p_ksads__dud__reduce__unsucces__coc__past_sx

    • su_p_ksads__dud__time__coc__past_sx

    • su_p_ksads__dud__tol__coc__past_sx

    • su_p_ksads__dud__withdr__coc__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__coc__past__sx_mean

compute_su_p_ksads__dud__coc__past__sx_mean(
  data,
  name = "su_p_ksads__dud__coc__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__coc__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__coc__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Cocaine - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__coc__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Cocaine - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__coc__pres_sx

    • su_p_ksads__dud__crave__coc__pres_sx

    • su_p_ksads__dud__dwi__coc__pres_sx

    • su_p_ksads__dud__failrespons__coc__pres_sx

    • su_p_ksads__dud__haz__coc__pres_sx

    • su_p_ksads__dud__negimpct__interprs__coc__pres_sx

    • su_p_ksads__dud__negimpct__obl__coc__pres_sx

    • su_p_ksads__dud__overuse__coc__pres_sx

    • su_p_ksads__dud__prob__phys__coc__pres_sx

    • su_p_ksads__dud__prob__psych__coc__pres_sx

    • su_p_ksads__dud__reduce__dsr__coc__pres_sx

    • su_p_ksads__dud__reduce__unsucces__coc__pres_sx

    • su_p_ksads__dud__time__coc__pres_sx

    • su_p_ksads__dud__tol__coc__pres_sx

    • su_p_ksads__dud__withdr__coc__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__coc__pres__sx_mean

compute_su_p_ksads__dud__coc__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__coc__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__coc__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__coc__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Hallucinogen - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__hall__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Hallucinogen - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__hall__past_sx

    • su_p_ksads__dud__crave__hall__past_sx

    • su_p_ksads__dud__dwi__hall__past_sx

    • su_p_ksads__dud__failrespons__hall__past_sx

    • su_p_ksads__dud__haz__hall__past_sx

    • su_p_ksads__dud__negimpct__interprs__hall__past_sx

    • su_p_ksads__dud__negimpct__obl__hall__past_sx

    • su_p_ksads__dud__overuse__hall__past_sx

    • su_p_ksads__dud__prob__phys__hall__past_sx

    • su_p_ksads__dud__prob__psych__hall__past_sx

    • su_p_ksads__dud__reduce__dsr__hall__past_sx

    • su_p_ksads__dud__reduce__unsucces__hall__past_sx

    • su_p_ksads__dud__time__hall__past_sx

    • su_p_ksads__dud__tol__hall__past_sx

    • su_p_ksads__dud__withdr__hall__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__hall__past__sx_mean

compute_su_p_ksads__dud__hall__past__sx_mean(
  data,
  name = "su_p_ksads__dud__hall__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__hall__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__hall__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Hallucinogen - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__hall__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Hallucinogen - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__hall__pres_sx

    • su_p_ksads__dud__crave__hall__pres_sx

    • su_p_ksads__dud__dwi__hall__pres_sx

    • su_p_ksads__dud__failrespons__hall__pres_sx

    • su_p_ksads__dud__haz__hall__pres_sx

    • su_p_ksads__dud__negimpct__interprs__hall__pres_sx

    • su_p_ksads__dud__negimpct__obl__hall__pres_sx

    • su_p_ksads__dud__overuse__hall__pres_sx

    • su_p_ksads__dud__prob__phys__hall__pres_sx

    • su_p_ksads__dud__prob__psych__hall__pres_sx

    • su_p_ksads__dud__reduce__dsr__hall__pres_sx

    • su_p_ksads__dud__reduce__unsucces__hall__pres_sx

    • su_p_ksads__dud__time__hall__pres_sx

    • su_p_ksads__dud__tol__hall__pres_sx

    • su_p_ksads__dud__withdr__hall__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__hall__pres__sx_mean

compute_su_p_ksads__dud__hall__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__hall__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__hall__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__hall__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Cannabis - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__mj__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Cannabis - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__mj__past_sx

    • su_p_ksads__dud__crave__mj__past_sx

    • su_p_ksads__dud__dwi__mj__past_sx

    • su_p_ksads__dud__failrespons__mj__past_sx

    • su_p_ksads__dud__haz__mj__past_sx

    • su_p_ksads__dud__negimpct__interprs__mj__past_sx

    • su_p_ksads__dud__negimpct__obl__mj__past_sx

    • su_p_ksads__dud__overuse__mj__past_sx

    • su_p_ksads__dud__prob__phys__mj__past_sx

    • su_p_ksads__dud__prob__psych__mj__past_sx

    • su_p_ksads__dud__reduce__dsr__mj__past_sx

    • su_p_ksads__dud__reduce__unsucces__mj__past_sx

    • su_p_ksads__dud__time__mj__past_sx

    • su_p_ksads__dud__tol__mj__past_sx

    • su_p_ksads__dud__withdr__mj__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__mj__past__sx_mean

compute_su_p_ksads__dud__mj__past__sx_mean(
  data,
  name = "su_p_ksads__dud__mj__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__mj__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__mj__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Cannabis - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__mj__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Cannabis - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__mj__pres_sx

    • su_p_ksads__dud__crave__mj__pres_sx

    • su_p_ksads__dud__dwi__mj__pres_sx

    • su_p_ksads__dud__failrespons__mj__pres_sx

    • su_p_ksads__dud__haz__mj__pres_sx

    • su_p_ksads__dud__negimpct__interprs__mj__pres_sx

    • su_p_ksads__dud__negimpct__obl__mj__pres_sx

    • su_p_ksads__dud__overuse__mj__pres_sx

    • su_p_ksads__dud__prob__phys__mj__pres_sx

    • su_p_ksads__dud__prob__psych__mj__pres_sx

    • su_p_ksads__dud__reduce__dsr__mj__pres_sx

    • su_p_ksads__dud__reduce__unsucces__mj__pres_sx

    • su_p_ksads__dud__time__mj__pres_sx

    • su_p_ksads__dud__tol__mj__pres_sx

    • su_p_ksads__dud__withdr__mj__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__mj__pres__sx_mean

compute_su_p_ksads__dud__mj__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__mj__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__mj__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__mj__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Tobacco - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__nic__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Tobacco - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__nic__past_sx

    • su_p_ksads__dud__crave__nic__past_sx

    • su_p_ksads__dud__dwi__nic__past_sx

    • su_p_ksads__dud__failrespons__nic__past_sx

    • su_p_ksads__dud__haz__nic__past_sx

    • su_p_ksads__dud__negimpct__interprs__nic__past_sx

    • su_p_ksads__dud__negimpct__obl__nic__past_sx

    • su_p_ksads__dud__overuse__nic__past_sx

    • su_p_ksads__dud__prob__phys__nic__past_sx

    • su_p_ksads__dud__prob__psych__nic__past_sx

    • su_p_ksads__dud__reduce__dsr__nic__past_sx

    • su_p_ksads__dud__reduce__unsucces__nic__past_sx

    • su_p_ksads__dud__time__nic__past_sx

    • su_p_ksads__dud__tol__nic__past_sx

    • su_p_ksads__dud__withdr__nic__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__nic__past__sx_mean

compute_su_p_ksads__dud__nic__past__sx_mean(
  data,
  name = "su_p_ksads__dud__nic__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__nic__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__nic__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Tobacco - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__nic__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Tobacco - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__nic__pres_sx

    • su_p_ksads__dud__crave__nic__pres_sx

    • su_p_ksads__dud__dwi__nic__pres_sx

    • su_p_ksads__dud__failrespons__nic__pres_sx

    • su_p_ksads__dud__haz__nic__pres_sx

    • su_p_ksads__dud__negimpct__interprs__nic__pres_sx

    • su_p_ksads__dud__negimpct__obl__nic__pres_sx

    • su_p_ksads__dud__overuse__nic__pres_sx

    • su_p_ksads__dud__prob__phys__nic__pres_sx

    • su_p_ksads__dud__prob__psych__nic__pres_sx

    • su_p_ksads__dud__reduce__dsr__nic__pres_sx

    • su_p_ksads__dud__reduce__unsucces__nic__pres_sx

    • su_p_ksads__dud__time__nic__pres_sx

    • su_p_ksads__dud__tol__nic__pres_sx

    • su_p_ksads__dud__withdr__nic__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__nic__pres__sx_mean

compute_su_p_ksads__dud__nic__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__nic__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__nic__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__nic__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Opiod - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__opi__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Opiod - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__opi__past_sx

    • su_p_ksads__dud__crave__opi__past_sx

    • su_p_ksads__dud__dwi__opi__past_sx

    • su_p_ksads__dud__failrespons__opi__past_sx

    • su_p_ksads__dud__haz__opi__past_sx

    • su_p_ksads__dud__negimpct__interprs__opi__past_sx

    • su_p_ksads__dud__negimpct__obl__opi__past_sx

    • su_p_ksads__dud__overuse__opi__past_sx

    • su_p_ksads__dud__prob__phys__opi__past_sx

    • su_p_ksads__dud__prob__psych__opi__past_sx

    • su_p_ksads__dud__reduce__dsr__opi__past_sx

    • su_p_ksads__dud__reduce__unsucces__opi__past_sx

    • su_p_ksads__dud__time__opi__past_sx

    • su_p_ksads__dud__tol__opi__past_sx

    • su_p_ksads__dud__withdr__opi__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__opi__past__sx_mean

compute_su_p_ksads__dud__opi__past__sx_mean(
  data,
  name = "su_p_ksads__dud__opi__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__opi__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__opi__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Opiod - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__opi__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Opiod - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__opi__pres_sx

    • su_p_ksads__dud__crave__opi__pres_sx

    • su_p_ksads__dud__dwi__opi__pres_sx

    • su_p_ksads__dud__failrespons__opi__pres_sx

    • su_p_ksads__dud__haz__opi__pres_sx

    • su_p_ksads__dud__negimpct__interprs__opi__pres_sx

    • su_p_ksads__dud__negimpct__obl__opi__pres_sx

    • su_p_ksads__dud__overuse__opi__pres_sx

    • su_p_ksads__dud__prob__phys__opi__pres_sx

    • su_p_ksads__dud__prob__psych__opi__pres_sx

    • su_p_ksads__dud__reduce__dsr__opi__pres_sx

    • su_p_ksads__dud__reduce__unsucces__opi__pres_sx

    • su_p_ksads__dud__time__opi__pres_sx

    • su_p_ksads__dud__tol__opi__pres_sx

    • su_p_ksads__dud__withdr__opi__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__opi__pres__sx_mean

compute_su_p_ksads__dud__opi__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__opi__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__opi__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__opi__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Other drugs - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__othdrg__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Other drugs - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__othdrg__past_sx

    • su_p_ksads__dud__crave__othdrg__past_sx

    • su_p_ksads__dud__dwi__othdrg__past_sx

    • su_p_ksads__dud__failrespons__othdrg__past_sx

    • su_p_ksads__dud__haz__othdrg__past_sx

    • su_p_ksads__dud__negimpct__interprs__othdrg__past_sx

    • su_p_ksads__dud__negimpct__obl__othdrg__past_sx

    • su_p_ksads__dud__overuse__othdrg__past_sx

    • su_p_ksads__dud__prob__phys__othdrg__past_sx

    • su_p_ksads__dud__prob__psych__othdrg__past_sx

    • su_p_ksads__dud__reduce__dsr__othdrg__past_sx

    • su_p_ksads__dud__reduce__unsucces__othdrg__past_sx

    • su_p_ksads__dud__time__othdrg__past_sx

    • su_p_ksads__dud__tol__othdrg__past_sx

    • su_p_ksads__dud__withdr__othdrg__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__othdrg__past__sx_mean

compute_su_p_ksads__dud__othdrg__past__sx_mean(
  data,
  name = "su_p_ksads__dud__othdrg__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__othdrg__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__othdrg__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Other drugs - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__othdrg__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Other drugs - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__othdrg__pres_sx

    • su_p_ksads__dud__crave__othdrg__pres_sx

    • su_p_ksads__dud__dwi__othdrg__pres_sx

    • su_p_ksads__dud__failrespons__othdrg__pres_sx

    • su_p_ksads__dud__haz__othdrg__pres_sx

    • su_p_ksads__dud__negimpct__interprs__othdrg__pres_sx

    • su_p_ksads__dud__negimpct__obl__othdrg__pres_sx

    • su_p_ksads__dud__overuse__othdrg__pres_sx

    • su_p_ksads__dud__prob__phys__othdrg__pres_sx

    • su_p_ksads__dud__prob__psych__othdrg__pres_sx

    • su_p_ksads__dud__reduce__dsr__othdrg__pres_sx

    • su_p_ksads__dud__reduce__unsucces__othdrg__pres_sx

    • su_p_ksads__dud__time__othdrg__pres_sx

    • su_p_ksads__dud__tol__othdrg__pres_sx

    • su_p_ksads__dud__withdr__othdrg__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__othdrg__pres__sx_mean

compute_su_p_ksads__dud__othdrg__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__othdrg__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__othdrg__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__othdrg__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom - Past): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__past_sx

    • su_p_ksads__dud__crave__past_sx

    • su_p_ksads__dud__dwi__past_sx

    • su_p_ksads__dud__failrespons__past_sx

    • su_p_ksads__dud__haz__past_sx

    • su_p_ksads__dud__negimpct__interprs__past_sx

    • su_p_ksads__dud__negimpct__obl__past_sx

    • su_p_ksads__dud__overuse__past_sx

    • su_p_ksads__dud__prob__phys__past_sx

    • su_p_ksads__dud__prob__psych__past_sx

    • su_p_ksads__dud__reduce__dsr__past_sx

    • su_p_ksads__dud__reduce__unsucces__past_sx

    • su_p_ksads__dud__tol__past_sx

    • su_p_ksads__dud__withdr__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_su_p_ksads__dud__past__sx_mean

compute_su_p_ksads__dud__past__sx_mean(
  data,
  name = "su_p_ksads__dud__past__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: PCP - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__pcp__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: PCP - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__pcp__past_sx

    • su_p_ksads__dud__crave__pcp__past_sx

    • su_p_ksads__dud__dwi__pcp__past_sx

    • su_p_ksads__dud__failrespons__pcp__past_sx

    • su_p_ksads__dud__haz__pcp__past_sx

    • su_p_ksads__dud__negimpct__interprs__pcp__past_sx

    • su_p_ksads__dud__negimpct__obl__pcp__past_sx

    • su_p_ksads__dud__overuse__pcp__past_sx

    • su_p_ksads__dud__prob__phys__pcp__past_sx

    • su_p_ksads__dud__prob__psych__pcp__past_sx

    • su_p_ksads__dud__reduce__dsr__pcp__past_sx

    • su_p_ksads__dud__reduce__unsucces__pcp__past_sx

    • su_p_ksads__dud__time__pcp__past_sx

    • su_p_ksads__dud__tol__pcp__past_sx

    • su_p_ksads__dud__withdr__pcp__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__pcp__past__sx_mean

compute_su_p_ksads__dud__pcp__past__sx_mean(
  data,
  name = "su_p_ksads__dud__pcp__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__pcp__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__pcp__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: PCP - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__pcp__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: PCP - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__pcp__pres_sx

    • su_p_ksads__dud__crave__pcp__pres_sx

    • su_p_ksads__dud__dwi__pcp__pres_sx

    • su_p_ksads__dud__failrespons__pcp__pres_sx

    • su_p_ksads__dud__haz__pcp__pres_sx

    • su_p_ksads__dud__negimpct__interprs__pcp__pres_sx

    • su_p_ksads__dud__negimpct__obl__pcp__pres_sx

    • su_p_ksads__dud__overuse__pcp__pres_sx

    • su_p_ksads__dud__prob__phys__pcp__pres_sx

    • su_p_ksads__dud__prob__psych__pcp__pres_sx

    • su_p_ksads__dud__reduce__dsr__pcp__pres_sx

    • su_p_ksads__dud__reduce__unsucces__pcp__pres_sx

    • su_p_ksads__dud__time__pcp__pres_sx

    • su_p_ksads__dud__tol__pcp__pres_sx

    • su_p_ksads__dud__withdr__pcp__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__pcp__pres__sx_mean

compute_su_p_ksads__dud__pcp__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__pcp__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__pcp__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__pcp__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__pres_sx

    • su_p_ksads__dud__crave__pres_sx

    • su_p_ksads__dud__dwi__pres_sx

    • su_p_ksads__dud__failrespons__pres_sx

    • su_p_ksads__dud__haz__pres_sx

    • su_p_ksads__dud__negimpct__interprs__pres_sx

    • su_p_ksads__dud__negimpct__obl__pres_sx

    • su_p_ksads__dud__overuse__pres_sx

    • su_p_ksads__dud__prob__phys__pres_sx

    • su_p_ksads__dud__prob__psych__pres_sx

    • su_p_ksads__dud__reduce__dsr__pres_sx

    • su_p_ksads__dud__reduce__unsucces__pres_sx

    • su_p_ksads__dud__time__pres_sx

    • su_p_ksads__dud__tol__pres_sx

    • su_p_ksads__dud__withdr__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__pres__sx_mean

compute_su_p_ksads__dud__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Sedatives - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__sed__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Sedatives - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__sed__past_sx

    • su_p_ksads__dud__crave__sed__past_sx

    • su_p_ksads__dud__dwi__sed__past_sx

    • su_p_ksads__dud__failrespons__sed__past_sx

    • su_p_ksads__dud__haz__sed__past_sx

    • su_p_ksads__dud__negimpct__interprs__sed__past_sx

    • su_p_ksads__dud__negimpct__obl__sed__past_sx

    • su_p_ksads__dud__overuse__sed__past_sx

    • su_p_ksads__dud__prob__phys__sed__past_sx

    • su_p_ksads__dud__prob__psych__sed__past_sx

    • su_p_ksads__dud__reduce__dsr__sed__past_sx

    • su_p_ksads__dud__reduce__unsucces__sed__past_sx

    • su_p_ksads__dud__time__sed__past_sx

    • su_p_ksads__dud__tol__sed__past_sx

    • su_p_ksads__dud__withdr__sed__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__sed__past__sx_mean

compute_su_p_ksads__dud__sed__past__sx_mean(
  data,
  name = "su_p_ksads__dud__sed__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__sed__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__sed__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Sedatives - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__sed__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Sedatives - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__sed__pres_sx

    • su_p_ksads__dud__crave__sed__pres_sx

    • su_p_ksads__dud__dwi__sed__pres_sx

    • su_p_ksads__dud__failrespons__sed__pres_sx

    • su_p_ksads__dud__haz__sed__pres_sx

    • su_p_ksads__dud__negimpct__interprs__sed__pres_sx

    • su_p_ksads__dud__negimpct__obl__sed__pres_sx

    • su_p_ksads__dud__overuse__sed__pres_sx

    • su_p_ksads__dud__prob__phys__sed__pres_sx

    • su_p_ksads__dud__prob__psych__sed__pres_sx

    • su_p_ksads__dud__reduce__dsr__sed__pres_sx

    • su_p_ksads__dud__reduce__unsucces__sed__pres_sx

    • su_p_ksads__dud__time__sed__pres_sx

    • su_p_ksads__dud__tol__sed__pres_sx

    • su_p_ksads__dud__withdr__sed__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__sed__pres__sx_mean

compute_su_p_ksads__dud__sed__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__sed__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__sed__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__sed__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Solvent - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__solv__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Solvent - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__solv__past_sx

    • su_p_ksads__dud__crave__solv__past_sx

    • su_p_ksads__dud__dwi__solv__past_sx

    • su_p_ksads__dud__failrespons__solv__past_sx

    • su_p_ksads__dud__haz__solv__past_sx

    • su_p_ksads__dud__negimpct__interprs__solv__past_sx

    • su_p_ksads__dud__negimpct__obl__solv__past_sx

    • su_p_ksads__dud__overuse__solv__past_sx

    • su_p_ksads__dud__prob__phys__solv__past_sx

    • su_p_ksads__dud__prob__psych__solv__past_sx

    • su_p_ksads__dud__reduce__dsr__solv__past_sx

    • su_p_ksads__dud__reduce__unsucces__solv__past_sx

    • su_p_ksads__dud__time__solv__past_sx

    • su_p_ksads__dud__tol__solv__past_sx

    • su_p_ksads__dud__withdr__solv__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__solv__past__sx_mean

compute_su_p_ksads__dud__solv__past__sx_mean(
  data,
  name = "su_p_ksads__dud__solv__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__solv__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__solv__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Solvent - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__solv__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Solvent - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__solv__pres_sx

    • su_p_ksads__dud__crave__solv__pres_sx

    • su_p_ksads__dud__dwi__solv__pres_sx

    • su_p_ksads__dud__failrespons__solv__pres_sx

    • su_p_ksads__dud__haz__solv__pres_sx

    • su_p_ksads__dud__negimpct__interprs__solv__pres_sx

    • su_p_ksads__dud__negimpct__obl__solv__pres_sx

    • su_p_ksads__dud__overuse__solv__pres_sx

    • su_p_ksads__dud__prob__phys__solv__pres_sx

    • su_p_ksads__dud__prob__psych__solv__pres_sx

    • su_p_ksads__dud__reduce__dsr__solv__pres_sx

    • su_p_ksads__dud__reduce__unsucces__solv__pres_sx

    • su_p_ksads__dud__time__solv__pres_sx

    • su_p_ksads__dud__tol__solv__pres_sx

    • su_p_ksads__dud__withdr__solv__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__solv__pres__sx_mean

compute_su_p_ksads__dud__solv__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__solv__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__solv__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__solv__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Stimulants - Past): Mean"

Description

Computes the summary score su_p_ksads__dud__stim__past__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Stimulants - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__stim__past_sx

    • su_p_ksads__dud__crave__stim__past_sx

    • su_p_ksads__dud__dwi__stim__past_sx

    • su_p_ksads__dud__failrespons__stim__past_sx

    • su_p_ksads__dud__haz__stim__past_sx

    • su_p_ksads__dud__negimpct__interprs__stim__past_sx

    • su_p_ksads__dud__negimpct__obl__stim__past_sx

    • su_p_ksads__dud__overuse__stim__past_sx

    • su_p_ksads__dud__prob__phys__stim__past_sx

    • su_p_ksads__dud__prob__psych__stim__past_sx

    • su_p_ksads__dud__reduce__dsr__stim__past_sx

    • su_p_ksads__dud__reduce__unsucces__stim__past_sx

    • su_p_ksads__dud__time__stim__past_sx

    • su_p_ksads__dud__tol__stim__past_sx

    • su_p_ksads__dud__withdr__stim__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__stim__past__sx_mean

compute_su_p_ksads__dud__stim__past__sx_mean(
  data,
  name = "su_p_ksads__dud__stim__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__stim__past__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__stim__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Parent] (Symptom: Stimulants - Present): Mean"

Description

Computes the summary score su_p_ksads__dud__stim__pres__sx_mean KSADS - Drug Use Disorders [Parent] (Symptom: Stimulants - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_p_ksads__dud__actvdecr__stim__pres_sx

    • su_p_ksads__dud__crave__stim__pres_sx

    • su_p_ksads__dud__dwi__stim__pres_sx

    • su_p_ksads__dud__failrespons__stim__pres_sx

    • su_p_ksads__dud__haz__stim__pres_sx

    • su_p_ksads__dud__negimpct__interprs__stim__pres_sx

    • su_p_ksads__dud__negimpct__obl__stim__pres_sx

    • su_p_ksads__dud__overuse__stim__pres_sx

    • su_p_ksads__dud__prob__phys__stim__pres_sx

    • su_p_ksads__dud__prob__psych__stim__pres_sx

    • su_p_ksads__dud__reduce__dsr__stim__pres_sx

    • su_p_ksads__dud__reduce__unsucces__stim__pres_sx

    • su_p_ksads__dud__time__stim__pres_sx

    • su_p_ksads__dud__tol__stim__pres_sx

    • su_p_ksads__dud__withdr__stim__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_p_ksads__dud__stim__pres__sx_mean

compute_su_p_ksads__dud__stim__pres__sx_mean(
  data,
  name = "su_p_ksads__dud__stim__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_p_ksads__dud__stim__pres__sx_mean is a character vector of all column names used to compute summary score of su_p_ksads__dud__stim__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "Alcohol Expectancies (AEQ-AB) [Youth] (Strength of negative expectancies): Prorated sum"

Description

Computes the summary score su_y_alcexp__neg_prsum Alcohol Expectancies (AEQ-AB) [Youth] (Strength of negative expectancies): Prorated sum

  • Summarized variables:

    • su_y_alcexp__neg_001

    • su_y_alcexp__neg_002

    • su_y_alcexp__neg_003

  • Excluded values: none

  • Validation criterion: maximally 1 of 3 items missing

Usage

vars_su_y_alcexp__neg

compute_su_y_alcexp__neg_prsum(
  data,
  name = "su_y_alcexp__neg_prsum",
  combine = TRUE,
  max_na = 1
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_alcexp__neg is a character vector of all column names used to compute summary score of su_y_alcexp__neg_prsum and su_y_alcexp__neg_nm

Value

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


Compute "Alcohol Expectancies (AEQ-AB) [Youth] (Strength of positive expectancies): Prorated sum"

Description

Computes the summary score su_y_alcexp__pos_prsum Alcohol Expectancies (AEQ-AB) [Youth] (Strength of positive expectancies): Prorated sum

  • Summarized variables:

    • su_y_alcexp__pos_001

    • su_y_alcexp__pos_002

    • su_y_alcexp__pos_003

  • Excluded values: none

  • Validation criterion: maximally 1 of 3 items missing

Usage

vars_su_y_alcexp__pos

compute_su_y_alcexp__pos_prsum(
  data,
  name = "su_y_alcexp__pos_prsum",
  combine = TRUE,
  max_na = 1
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_alcexp__pos is a character vector of all column names used to compute summary score of su_y_alcexp__pos_prsum and su_y_alcexp__pos_nm.

Value

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


Compute "Alcohol Hangover Symptoms Scale (HSS) [Youth]: Sum"

Description

Computes the summary score su_y_alchss_sum Alcohol Hangover Symptoms Scale (HSS) [Youth]: Sum

  • Summarized variables:

    • su_y_alchss_001

    • su_y_alchss_002

    • su_y_alchss_003

    • su_y_alchss_004

    • su_y_alchss_005

    • su_y_alchss_006

    • su_y_alchss_007

    • su_y_alchss_008

    • su_y_alchss_009

    • su_y_alchss_010

    • su_y_alchss_011

    • su_y_alchss_012

    • su_y_alchss_013

    • su_y_alchss_014

    • su_y_alchss_001__l

    • su_y_alchss_002__l

    • su_y_alchss_003__l

    • su_y_alchss_004__l

    • su_y_alchss_005__l

    • su_y_alchss_006__l

    • su_y_alchss_007__l

    • su_y_alchss_008__l

    • su_y_alchss_009__l

    • su_y_alchss_010__l

    • su_y_alchss_011__l

    • su_y_alchss_012__l

    • su_y_alchss_013__l

    • su_y_alchss_014__l

  • Excluded values: none

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_su_y_alchss

compute_su_y_alchss_sum(
  data,
  name = "su_y_alchss_sum",
  max_na = 0,
  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.

max_na

integer, Maximum number of missing values allowed in the summary score.

combine

logical, If TRUE, the summary score will be appended to the input data frame. If FALSE, the summary score will be returned as a separate data frame.

Format

vars_su_y_alchss is a table of all column names used to compute summary score of su_y_alchss.

Value

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

Examples

## Not run: 
compute_su_y_alchss_sum(data)

## End(Not run)

Compute "Alcohol Problem Index (RAPI) [Youth]: Prorated sum"

Description

Computes the summary score su_y_alcprob_prsum Alcohol Problem Index (RAPI) [Youth]: Prorated sum [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • su_y_alcprob_001

    • su_y_alcprob_002

    • su_y_alcprob_003

    • su_y_alcprob_004

    • su_y_alcprob_005

    • su_y_alcprob_006

    • su_y_alcprob_007

    • su_y_alcprob_008

    • su_y_alcprob_009

    • su_y_alcprob_010

    • su_y_alcprob_012

    • su_y_alcprob_016

    • su_y_alcprob_017

    • su_y_alcprob_018

    • su_y_alcprob_001__l

    • su_y_alcprob_002__l

    • su_y_alcprob_003__l

    • su_y_alcprob_004__l

    • su_y_alcprob_005__l

    • su_y_alcprob_006__l

    • su_y_alcprob_007__l

    • su_y_alcprob_008__l

    • su_y_alcprob_009__l

    • su_y_alcprob_010__l

    • su_y_alcprob_012__l

    • su_y_alcprob_016__l

    • su_y_alcprob_017__l

    • su_y_alcprob_018__l

  • Excluded values: none

  • Validation criterion: maximally 2 items missing

Usage

vars_su_y_alcprob

compute_su_y_alcprob_prsum(
  data,
  name = "su_y_alcprob_prsum",
  combine = TRUE,
  max_na = 2
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_alcprob is a table with pairs of baseline and longitudinal redcap fields used to compute summary score of su_y_alcprob_prsum and su_y_alcprob_nm.

Value

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


Compute "Alcohol Subject Response and Effects [Youth] (Last 6 months): Mean [Validation: None missing or declined]"

Description

Computes the summary score su_y_alcsre__6mo_mean Alcohol Subject Response and Effects [Youth] (Last 6 months): Mean [Validation: None missing or declined]

  • Summarized variables:

    • su_y_alcsre__6mo_001

    • su_y_alcsre__6mo_002

    • su_y_alcsre__6mo_003

    • su_y_alcsre__6mo_004

  • Excluded values: none

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_su_y_alcsre__6mo

compute_su_y_alcsre__6mo_mean(
  data,
  name = "su_y_alcsre__6mo_mean",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Format

vars_su_y_alcsre__6mo is a character vector of all column names used to compute summary scores of compute_su_y_alcsre__6mo (⁠_mean⁠, ⁠_count⁠, ⁠_nm⁠).

Value

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


Compute "Alcohol Subject Response and Effects [Youth] (First 5 times ever drank): Mean [Validation: None missing or declined]"

Description

Computes the summary score su_y_alcsre__first5_mean Alcohol Subject Response and Effects [Youth] (First 5 times ever drank): Mean [Validation: None missing or declined]

  • Summarized variables:

    • su_y_alcsre__first5_001

    • su_y_alcsre__first5_002

    • su_y_alcsre__first5_003

    • su_y_alcsre__first5_004

  • Excluded values: none

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_su_y_alcsre__first5

compute_su_y_alcsre__first5_mean(
  data,
  name = "su_y_alcsre__first5_mean",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Format

vars_su_y_alcsre__first5 is a character vector of all column names used to compute summary scores of compute_su_y_alcsre__first5 (⁠_mean⁠, ⁠_count⁠, ⁠_nm⁠).

Value

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


Compute "Alcohol Subject Response and Effects [Youth] (Heaviest drinking period): Mean [Validation: None missing or declined]"

Description

Computes the summary score su_y_alcsre__hvy_mean Alcohol Subject Response and Effects [Youth] (Heaviest drinking period): Mean [Validation: None missing or declined]

  • Summarized variables:

    • su_y_alcsre__hvy_001

    • su_y_alcsre__hvy_002

    • su_y_alcsre__hvy_003

    • su_y_alcsre__hvy_004

  • Excluded values: none

  • Validation criterion: maximally 0 of 4 items missing

Usage

vars_su_y_alcsre__hvy

compute_su_y_alcsre__hvy_mean(
  data,
  name = "su_y_alcsre__hvy_mean",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Format

vars_su_y_alcsre__hvy is a character vector of all column names used to compute summary scores of compute_su_y_alcsre__hvy (⁠_mean⁠, ⁠_count⁠, ⁠_nm⁠).

Value

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


Compute "Caffeine Use Questionnaire [Youth] (Coffee): Sum [Validation: None]"

Description

Computes the summary score su_y_caff__coffee_sum Caffeine Use Questionnaire [Youth] (Coffee): Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__coffee_001

    • su_y_caff__coffee_001__01__01

    • su_y_caff__coffee_001__01__02

    • su_y_caff__coffee_001__01__03

    • su_y_caff__coffee_001__02__01

    • su_y_caff__coffee_001__02__02

    • su_y_caff__coffee_001__02__03

    • su_y_caff__coffee_001__03__01

    • su_y_caff__coffee_001__03__02

    • su_y_caff__coffee_001__03__03

    • su_y_caff__coffee_001__04__01

    • su_y_caff__coffee_001__04__02

    • su_y_caff__coffee_001__04__03

    • su_y_caff__coffee_001__l

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__coffee

compute_su_y_caff__coffee_sum(
  data,
  name = "su_y_caff__coffee_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.

Format

vars_su_y_caff__coffee is a character vector of all column names used to compute compute_su_y_caff__coffee_sum.

Value

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


Compute "Caffeine Use Questionnaire [Youth] (Energy): Sum [Validation: None]"

Description

Computes the summary score su_y_caff__energy_sum Caffeine Use Questionnaire [Youth] (Energy): Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__energy_001

    • su_y_caff__energy_001__l

    • su_y_caff__energy__shot_001__01

    • su_y_caff__energy__shot_001__02

    • su_y_caff__energy__drink_001__01__01

    • su_y_caff__energy__drink_001__01__02

    • su_y_caff__energy__drink_001__01__03

    • su_y_caff__energy__drink_001__02__01

    • su_y_caff__energy__drink_001__02__02

    • su_y_caff__energy__drink_001__02__03

    • su_y_caff__energy__drink_001__03__01

    • su_y_caff__energy__drink_001__03__02

    • su_y_caff__energy__drink_001__03__03

    • su_y_caff__energy__drink_001__04__01

    • su_y_caff__energy__drink_001__04__02

    • su_y_caff__energy__drink_001__04__03

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__energy

compute_su_y_caff__energy_sum(
  data,
  name = "su_y_caff__energy_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.

Format

vars_su_y_caff__energy is a character vector of all column names used to compute compute_su_y_caff__energy_sum.

Value

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


Compute "Caffeine Use Questionnaire [Youth] (Energy drink): Sum [Validation: None]"

Description

Computes the summary score su_y_caff__energy__drink_sum Caffeine Use Questionnaire [Youth] (Energy drink): Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__energy__drink_001__01__01

    • su_y_caff__energy__drink_001__01__02

    • su_y_caff__energy__drink_001__01__03

    • su_y_caff__energy__drink_001__02__01

    • su_y_caff__energy__drink_001__02__02

    • su_y_caff__energy__drink_001__02__03

    • su_y_caff__energy__drink_001__03__01

    • su_y_caff__energy__drink_001__03__02

    • su_y_caff__energy__drink_001__03__03

    • su_y_caff__energy__drink_001__04__01

    • su_y_caff__energy__drink_001__04__02

    • su_y_caff__energy__drink_001__04__03

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__energy__drink

compute_su_y_caff__energy__drink_sum(
  data,
  name = "su_y_caff__energy__drink_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.

Format

vars_su_y_caff__energy__drink is a character vector of all column names used to compute compute_su_y_caff__energy__drink_sum.

Value

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


Compute "Caffeine Use Questionnaire [Youth] (Energy shot): Sum [Validation: None]"

Description

Computes the summary score su_y_caff__energy__shot_sum Caffeine Use Questionnaire [Youth] (Energy shot): Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__energy__shot_001__01

    • su_y_caff__energy__shot_001__02

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__energy__shot

compute_su_y_caff__energy__shot_sum(
  data,
  name = "su_y_caff__energy__shot_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.

Format

vars_su_y_caff__energy__shot is a character vector of all column names used to compute compute_su_y_caff__energy__shot_sum.

Value

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


Compute "Caffeine Use Questionnaire [Youth] (Espresso): Sum [Validation: None]"

Description

Computes the summary score su_y_caff__espres_sum Caffeine Use Questionnaire [Youth] (Espresso): Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__espres_001

    • su_y_caff__espres_001__01

    • su_y_caff__espres_001__02

    • su_y_caff__espres_001__l

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__espres

compute_su_y_caff__espres_sum(
  data,
  name = "su_y_caff__espres_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.

Format

vars_su_y_caff__espres is a character vector of all column names used to compute compute_su_y_caff__espres_sum.

Value

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


Compute "Caffeine Use Questionnaire [Youth] (Other): Sum [Validation: None]"

Description

Computes the summary score su_y_caff__oth_sum Caffeine Use Questionnaire [Youth] (Other): Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__oth_001__01

    • su_y_caff__oth_001__02

    • su_y_caff__oth_001__l

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__oth

compute_su_y_caff__oth_sum(data, name = "su_y_caff__oth_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.

Format

vars_su_y_caff__oth is a character vector of all column names used to compute compute_su_y_caff__oth_sum.

Value

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


Compute "Caffeine Use Questionnaire [Youth] (Soda): Sum [Validation: None]"

Description

Computes the summary score su_y_caff__soda_sum Caffeine Use Questionnaire [Youth] (Soda) : Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__soda_001

    • su_y_caff__soda_001__01__01

    • su_y_caff__soda_001__01__02

    • su_y_caff__soda_001__01__03

    • su_y_caff__soda_001__02__01

    • su_y_caff__soda_001__02__02

    • su_y_caff__soda_001__02__03

    • su_y_caff__soda_001__03__01

    • su_y_caff__soda_001__03__02

    • su_y_caff__soda_001__03__03

    • su_y_caff__soda_001__04__01

    • su_y_caff__soda_001__04__02

    • su_y_caff__soda_001__04__03

    • su_y_caff__soda_001__l

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__soda

compute_su_y_caff__soda_sum(data, name = "su_y_caff__soda_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.

Format

vars_su_y_caff__soda is a character vector of all column names used to compute compute_su_y_caff__soda_sum.

Value

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


Compute "Caffeine Use Questionnaire [Youth] (Caffeine supplements): Sum [Validation: None]"

Description

Computes the summary score su_y_caff__suppl_sum Caffeine Use Questionnaire [Youth] (Caffeine supplements): Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__suppl_001__01__01

    • su_y_caff__suppl_001__01__02

    • su_y_caff__suppl_001__02__01

    • su_y_caff__suppl_001__02__02

    • su_y_caff__suppl_001__03__01

    • su_y_caff__suppl_001__03__02

    • su_y_caff__suppl_001__04__01

    • su_y_caff__suppl_001__04__02

    • su_y_caff__suppl_001__l

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__suppl

compute_su_y_caff__suppl_sum(
  data,
  name = "su_y_caff__suppl_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.

Format

vars_su_y_caff__suppl is a character vector of all column names used to compute compute_su_y_caff__suppl_sum.

Value

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


Compute "Caffeine Use Questionnaire [Youth] (Tea) : Sum [Validation: None]"

Description

Computes the summary score su_y_caff__tea_sum Caffeine Use Questionnaire [Youth] (Tea) : Sum [Validation: None]

  • Summarized variables:

    • su_y_caff__tea_001

    • su_y_caff__tea_001__01__01

    • su_y_caff__tea_001__01__02

    • su_y_caff__tea_001__01__03

    • su_y_caff__tea_001__02__01

    • su_y_caff__tea_001__02__02

    • su_y_caff__tea_001__02__03

    • su_y_caff__tea_001__03__01

    • su_y_caff__tea_001__03__02

    • su_y_caff__tea_001__03__03

    • su_y_caff__tea_001__04__01

    • su_y_caff__tea_001__04__02

    • su_y_caff__tea_001__04__03

    • su_y_caff__tea_001__l

  • Excluded values: none

  • Validation criterion: none

Usage

vars_su_y_caff__tea

compute_su_y_caff__tea_sum(data, name = "su_y_caff__tea_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.

Format

vars_su_y_caff__tea is a character vector of all column names used to compute compute_su_y_caff__tea_sum.

Value

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


Compute "Cigarette Expectancies (ASCQ) [Youth] (Strength of negative expectancies): Prorated sum"

Description

Computes the summary score su_y_cigexp__neg_prsum Cigarette Expectancies (ASCQ) [Youth] (Strength of negative expectancies): Prorated sum [Validation: No more than 0 missing or declined]

Note: all 0s are changed to NAs prior to calculating pro-rated sum

  • Summarized variables:

    • su_y_cigexp__neg_001

    • su_y_cigexp__neg_002

  • Excluded values:

    • 0

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_su_y_cigexp__neg

compute_su_y_cigexp__neg_prsum(
  data,
  name = "su_y_cigexp__neg_prsum",
  combine = TRUE,
  exclude = c("0"),
  max_na = 0
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

exclude

character vector. Values to be excluded from the summary score calculation.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_cigexp__neg is a character vector of all column names used to compute summary score of su_y_cigexp__neg_prsum and su_y_cigexp__neg_nm.

Value

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


Compute "Cigarette Expectancies (ASCQ) [Youth] (Strength of positive expectancies): Prorated sum"

Description

Computes the summary score su_y_cigexp__pos_prsum Cigarette Expectancies (ASCQ) [Youth] (Strength of positive expectancies): Prorated sum

Note: all 0s are changed to NAs prior to calculating pro-rated sum

  • Summarized variables:

    • su_y_cigexp__pos_001

    • su_y_cigexp__pos_002

    • su_y_cigexp__pos_003

    • su_y_cigexp__pos_004

  • Excluded values:

    • 0

  • Validation criterion: maximally 2 of 4 items missing

Usage

vars_su_y_cigexp__pos

compute_su_y_cigexp__pos_prsum(
  data,
  name = "su_y_cigexp__pos_prsum",
  combine = TRUE,
  exclude = c("0"),
  max_na = 2
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

exclude

character vector. Values to be excluded from the summary score calculation.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_cigexp__pos is a character vector of all column names used to compute summary score of su_y_cigexp__pos_prsum and su_y_cigexp__pos_nm.

Value

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


Compute "Drug Problem Index (DAPI) [Youth]: Prorated sum"

Description

Computes the summary score su_y_drgprob_prsum Drug Problem Index (DAPI) [Youth]: Prorated sum [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_drgprob_001

    • su_y_drgprob_002

    • su_y_drgprob_003

    • su_y_drgprob_004

    • su_y_drgprob_005

    • su_y_drgprob_006

    • su_y_drgprob_007

    • su_y_drgprob_008

    • su_y_drgprob_009

    • su_y_drgprob_010

    • su_y_drgprob_012

    • su_y_drgprob_013

    • su_y_drgprob_014

    • su_y_drgprob_015

    • su_y_drgprob_016

    • su_y_drgprob_017

    • su_y_drgprob_018

  • Excluded values: none

  • Validation criterion: maximally 3 items missing

Usage

vars_su_y_drgprob

compute_su_y_drgprob_prsum(
  data,
  name = "su_y_drgprob_prsum",
  combine = TRUE,
  max_na = 3
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_drgprob is a character vector of all column names used to compute summary score of su_y_drgprob_prsum and su_y_drgprob_nm.

Value

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


Compute "KSADS - Alcohol Use Disorder [Youth] (Symptom - Past): Mean"

Description

Computes the summary score su_y_ksads__aud__past__sx_mean KSADS - Alcohol Use Disorder [Youth] (Symptom - Past): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • su_y_ksads__aud__actvdecr__past_sx

    • su_y_ksads__aud__crave__past_sx

    • su_y_ksads__aud__dwi__past_sx

    • su_y_ksads__aud__failrespons__past_sx

    • su_y_ksads__aud__haz__past_sx

    • su_y_ksads__aud__negimpct__interprs__past_sx

    • su_y_ksads__aud__overuse__past_sx

    • su_y_ksads__aud__prob__phys__past_sx

    • su_y_ksads__aud__prob__psych__past_sx

    • su_y_ksads__aud__reduce__dsr__past_sx

    • su_y_ksads__aud__reduce__unsucces__past_sx

    • su_y_ksads__aud__time__past_sx

    • su_y_ksads__aud__tol__past_sx

    • su_y_ksads__aud__withdr__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_su_y_ksads__aud__past__sx

compute_su_y_ksads__aud__past__sx_mean(
  data,
  name = "su_y_ksads__aud__past__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__aud__past__sx is a character vector of all column names used to compute summary score of su_y_ksads__aud__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Alcohol Use Disorder [Youth] (Symptom - Present): Mean"

Description

Computes the summary score su_y_ksads__aud__pres__sx_mean KSADS - Alcohol Use Disorder [Youth] (Symptom - Present): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • su_y_ksads__aud__actvdecr__pres_sx

    • su_y_ksads__aud__crave__pres_sx

    • su_y_ksads__aud__dwi__pres_sx

    • su_y_ksads__aud__failrespons__pres_sx

    • su_y_ksads__aud__haz__pres_sx

    • su_y_ksads__aud__negimpct__interprs__pres_sx

    • su_y_ksads__aud__overuse__pres_sx

    • su_y_ksads__aud__prob__phys__pres_sx

    • su_y_ksads__aud__prob__psych__pres_sx

    • su_y_ksads__aud__reduce__dsr__pres_sx

    • su_y_ksads__aud__reduce__unsucces__pres_sx

    • su_y_ksads__aud__time__pres_sx

    • su_y_ksads__aud__tol__pres_sx

    • su_y_ksads__aud__withdr__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_su_y_ksads__aud__pres__sx

compute_su_y_ksads__aud__pres__sx_mean(
  data,
  name = "su_y_ksads__aud__pres__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__aud__pres__sx is a character vector of all column names used to compute summary score of su_y_ksads__aud__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Cocaine - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__coc__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Cocaine - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__coc__past_sx

    • su_y_ksads__dud__crave__coc__past_sx

    • su_y_ksads__dud__dwi__coc__past_sx

    • su_y_ksads__dud__failrespons__coc__past_sx

    • su_y_ksads__dud__haz__coc__past_sx

    • su_y_ksads__dud__negimpct__interprs__coc__past_sx

    • su_y_ksads__dud__negimpct__obl__coc__past_sx

    • su_y_ksads__dud__overuse__coc__past_sx

    • su_y_ksads__dud__prob__phys__coc__past_sx

    • su_y_ksads__dud__prob__psych__coc__past_sx

    • su_y_ksads__dud__reduce__dsr__coc__past_sx

    • su_y_ksads__dud__reduce__unsucces__coc__past_sx

    • su_y_ksads__dud__time__coc__past_sx

    • su_y_ksads__dud__tol__coc__past_sx

    • su_y_ksads__dud__withdr__coc__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__coc__past__sx_mean

compute_su_y_ksads__dud__coc__past__sx_mean(
  data,
  name = "su_y_ksads__dud__coc__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__coc__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__coc__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Cocaine - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__coc__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Cocaine - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__coc__pres_sx

    • su_y_ksads__dud__crave__coc__pres_sx

    • su_y_ksads__dud__dwi__coc__pres_sx

    • su_y_ksads__dud__failrespons__coc__pres_sx

    • su_y_ksads__dud__haz__coc__pres_sx

    • su_y_ksads__dud__negimpct__interprs__coc__pres_sx

    • su_y_ksads__dud__negimpct__obl__coc__pres_sx

    • su_y_ksads__dud__overuse__coc__pres_sx

    • su_y_ksads__dud__prob__phys__coc__pres_sx

    • su_y_ksads__dud__prob__psych__coc__pres_sx

    • su_y_ksads__dud__reduce__dsr__coc__pres_sx

    • su_y_ksads__dud__reduce__unsucces__coc__pres_sx

    • su_y_ksads__dud__time__coc__pres_sx

    • su_y_ksads__dud__tol__coc__pres_sx

    • su_y_ksads__dud__withdr__coc__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__coc__pres__sx_mean

compute_su_y_ksads__dud__coc__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__coc__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__coc__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__coc__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Hallucinogen - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__hall__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Hallucinogen - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__hall__past_sx

    • su_y_ksads__dud__crave__hall__past_sx

    • su_y_ksads__dud__dwi__hall__past_sx

    • su_y_ksads__dud__failrespons__hall__past_sx

    • su_y_ksads__dud__haz__hall__past_sx

    • su_y_ksads__dud__negimpct__interprs__hall__past_sx

    • su_y_ksads__dud__negimpct__obl__hall__past_sx

    • su_y_ksads__dud__overuse__hall__past_sx

    • su_y_ksads__dud__prob__phys__hall__past_sx

    • su_y_ksads__dud__prob__psych__hall__past_sx

    • su_y_ksads__dud__reduce__dsr__hall__past_sx

    • su_y_ksads__dud__reduce__unsucces__hall__past_sx

    • su_y_ksads__dud__time__hall__past_sx

    • su_y_ksads__dud__tol__hall__past_sx

    • su_y_ksads__dud__withdr__hall__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__hall__past__sx_mean

compute_su_y_ksads__dud__hall__past__sx_mean(
  data,
  name = "su_y_ksads__dud__hall__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__hall__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__hall__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Hallucinogen - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__hall__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Hallucinogen - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__hall__pres_sx

    • su_y_ksads__dud__crave__hall__pres_sx

    • su_y_ksads__dud__dwi__hall__pres_sx

    • su_y_ksads__dud__failrespons__hall__pres_sx

    • su_y_ksads__dud__haz__hall__pres_sx

    • su_y_ksads__dud__negimpct__interprs__hall__pres_sx

    • su_y_ksads__dud__negimpct__obl__hall__pres_sx

    • su_y_ksads__dud__overuse__hall__pres_sx

    • su_y_ksads__dud__prob__phys__hall__pres_sx

    • su_y_ksads__dud__prob__psych__hall__pres_sx

    • su_y_ksads__dud__reduce__dsr__hall__pres_sx

    • su_y_ksads__dud__reduce__unsucces__hall__pres_sx

    • su_y_ksads__dud__time__hall__pres_sx

    • su_y_ksads__dud__tol__hall__pres_sx

    • su_y_ksads__dud__withdr__hall__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__hall__pres__sx_mean

compute_su_y_ksads__dud__hall__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__hall__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__hall__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__hall__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Cannabis - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__mj__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Cannabis - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__mj__past_sx

    • su_y_ksads__dud__crave__mj__past_sx

    • su_y_ksads__dud__dwi__mj__past_sx

    • su_y_ksads__dud__failrespons__mj__past_sx

    • su_y_ksads__dud__haz__mj__past_sx

    • su_y_ksads__dud__negimpct__interprs__mj__past_sx

    • su_y_ksads__dud__negimpct__obl__mj__past_sx

    • su_y_ksads__dud__overuse__mj__past_sx

    • su_y_ksads__dud__prob__phys__mj__past_sx

    • su_y_ksads__dud__prob__psych__mj__past_sx

    • su_y_ksads__dud__reduce__dsr__mj__past_sx

    • su_y_ksads__dud__reduce__unsucces__mj__past_sx

    • su_y_ksads__dud__time__mj__past_sx

    • su_y_ksads__dud__tol__mj__past_sx

    • su_y_ksads__dud__withdr__mj__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__mj__past__sx_mean

compute_su_y_ksads__dud__mj__past__sx_mean(
  data,
  name = "su_y_ksads__dud__mj__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__mj__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__mj__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Cannabis - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__mj__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Cannabis - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__mj__pres_sx

    • su_y_ksads__dud__crave__mj__pres_sx

    • su_y_ksads__dud__dwi__mj__pres_sx

    • su_y_ksads__dud__failrespons__mj__pres_sx

    • su_y_ksads__dud__haz__mj__pres_sx

    • su_y_ksads__dud__negimpct__interprs__mj__pres_sx

    • su_y_ksads__dud__negimpct__obl__mj__pres_sx

    • su_y_ksads__dud__overuse__mj__pres_sx

    • su_y_ksads__dud__prob__phys__mj__pres_sx

    • su_y_ksads__dud__prob__psych__mj__pres_sx

    • su_y_ksads__dud__reduce__dsr__mj__pres_sx

    • su_y_ksads__dud__reduce__unsucces__mj__pres_sx

    • su_y_ksads__dud__time__mj__pres_sx

    • su_y_ksads__dud__tol__mj__pres_sx

    • su_y_ksads__dud__withdr__mj__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__mj__pres__sx_mean

compute_su_y_ksads__dud__mj__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__mj__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__mj__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__mj__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Tobacco - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__nic__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Tobacco - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__nic__past_sx

    • su_y_ksads__dud__crave__nic__past_sx

    • su_y_ksads__dud__dwi__nic__past_sx

    • su_y_ksads__dud__failrespons__nic__past_sx

    • su_y_ksads__dud__haz__nic__past_sx

    • su_y_ksads__dud__negimpct__interprs__nic__past_sx

    • su_y_ksads__dud__negimpct__obl__nic__past_sx

    • su_y_ksads__dud__overuse__nic__past_sx

    • su_y_ksads__dud__prob__phys__nic__past_sx

    • su_y_ksads__dud__prob__psych__nic__past_sx

    • su_y_ksads__dud__reduce__dsr__nic__past_sx

    • su_y_ksads__dud__reduce__unsucces__nic__past_sx

    • su_y_ksads__dud__time__nic__past_sx

    • su_y_ksads__dud__tol__nic__past_sx

    • su_y_ksads__dud__withdr__nic__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__nic__past__sx_mean

compute_su_y_ksads__dud__nic__past__sx_mean(
  data,
  name = "su_y_ksads__dud__nic__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__nic__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__nic__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Tobacco - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__nic__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Tobacco - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__nic__pres_sx

    • su_y_ksads__dud__crave__nic__pres_sx

    • su_y_ksads__dud__dwi__nic__pres_sx

    • su_y_ksads__dud__failrespons__nic__pres_sx

    • su_y_ksads__dud__haz__nic__pres_sx

    • su_y_ksads__dud__negimpct__interprs__nic__pres_sx

    • su_y_ksads__dud__negimpct__obl__nic__pres_sx

    • su_y_ksads__dud__overuse__nic__pres_sx

    • su_y_ksads__dud__prob__phys__nic__pres_sx

    • su_y_ksads__dud__prob__psych__nic__pres_sx

    • su_y_ksads__dud__reduce__dsr__nic__pres_sx

    • su_y_ksads__dud__reduce__unsucces__nic__pres_sx

    • su_y_ksads__dud__time__nic__pres_sx

    • su_y_ksads__dud__tol__nic__pres_sx

    • su_y_ksads__dud__withdr__nic__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__nic__pres__sx_mean

compute_su_y_ksads__dud__nic__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__nic__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__nic__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__nic__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Opiod - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__opi__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Opiod - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__opi__past_sx

    • su_y_ksads__dud__crave__opi__past_sx

    • su_y_ksads__dud__dwi__opi__past_sx

    • su_y_ksads__dud__failrespons__opi__past_sx

    • su_y_ksads__dud__haz__opi__past_sx

    • su_y_ksads__dud__negimpct__interprs__opi__past_sx

    • su_y_ksads__dud__negimpct__obl__opi__past_sx

    • su_y_ksads__dud__overuse__opi__past_sx

    • su_y_ksads__dud__prob__phys__opi__past_sx

    • su_y_ksads__dud__prob__psych__opi__past_sx

    • su_y_ksads__dud__reduce__dsr__opi__past_sx

    • su_y_ksads__dud__reduce__unsucces__opi__past_sx

    • su_y_ksads__dud__time__opi__past_sx

    • su_y_ksads__dud__tol__opi__past_sx

    • su_y_ksads__dud__withdr__opi__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__opi__past__sx_mean

compute_su_y_ksads__dud__opi__past__sx_mean(
  data,
  name = "su_y_ksads__dud__opi__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__opi__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__opi__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Opiod - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__opi__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Opiod - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__opi__pres_sx

    • su_y_ksads__dud__crave__opi__pres_sx

    • su_y_ksads__dud__dwi__opi__pres_sx

    • su_y_ksads__dud__failrespons__opi__pres_sx

    • su_y_ksads__dud__haz__opi__pres_sx

    • su_y_ksads__dud__negimpct__interprs__opi__pres_sx

    • su_y_ksads__dud__negimpct__obl__opi__pres_sx

    • su_y_ksads__dud__overuse__opi__pres_sx

    • su_y_ksads__dud__prob__phys__opi__pres_sx

    • su_y_ksads__dud__prob__psych__opi__pres_sx

    • su_y_ksads__dud__reduce__dsr__opi__pres_sx

    • su_y_ksads__dud__reduce__unsucces__opi__pres_sx

    • su_y_ksads__dud__time__opi__pres_sx

    • su_y_ksads__dud__tol__opi__pres_sx

    • su_y_ksads__dud__withdr__opi__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__opi__pres__sx_mean

compute_su_y_ksads__dud__opi__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__opi__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__opi__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__opi__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Other drugs - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__othdrg__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Other drugs - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__othdrg__past_sx

    • su_y_ksads__dud__crave__othdrg__past_sx

    • su_y_ksads__dud__dwi__othdrg__past_sx

    • su_y_ksads__dud__failrespons__othdrg__past_sx

    • su_y_ksads__dud__haz__othdrg__past_sx

    • su_y_ksads__dud__negimpct__interprs__othdrg__past_sx

    • su_y_ksads__dud__negimpct__obl__othdrg__past_sx

    • su_y_ksads__dud__overuse__othdrg__past_sx

    • su_y_ksads__dud__prob__phys__othdrg__past_sx

    • su_y_ksads__dud__prob__psych__othdrg__past_sx

    • su_y_ksads__dud__reduce__dsr__othdrg__past_sx

    • su_y_ksads__dud__reduce__unsucces__othdrg__past_sx

    • su_y_ksads__dud__time__othdrg__past_sx

    • su_y_ksads__dud__tol__othdrg__past_sx

    • su_y_ksads__dud__withdr__othdrg__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__othdrg__past__sx_mean

compute_su_y_ksads__dud__othdrg__past__sx_mean(
  data,
  name = "su_y_ksads__dud__othdrg__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__othdrg__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__othdrg__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Other drugs - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__othdrg__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Other drugs - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__othdrg__pres_sx

    • su_y_ksads__dud__crave__othdrg__pres_sx

    • su_y_ksads__dud__dwi__othdrg__pres_sx

    • su_y_ksads__dud__failrespons__othdrg__pres_sx

    • su_y_ksads__dud__haz__othdrg__pres_sx

    • su_y_ksads__dud__negimpct__interprs__othdrg__pres_sx

    • su_y_ksads__dud__negimpct__obl__othdrg__pres_sx

    • su_y_ksads__dud__overuse__othdrg__pres_sx

    • su_y_ksads__dud__prob__phys__othdrg__pres_sx

    • su_y_ksads__dud__prob__psych__othdrg__pres_sx

    • su_y_ksads__dud__reduce__dsr__othdrg__pres_sx

    • su_y_ksads__dud__reduce__unsucces__othdrg__pres_sx

    • su_y_ksads__dud__time__othdrg__pres_sx

    • su_y_ksads__dud__tol__othdrg__pres_sx

    • su_y_ksads__dud__withdr__othdrg__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__othdrg__pres__sx_mean

compute_su_y_ksads__dud__othdrg__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__othdrg__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__othdrg__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__othdrg__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom - Past): Mean [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__past_sx

    • su_y_ksads__dud__crave__past_sx

    • su_y_ksads__dud__dwi__past_sx

    • su_y_ksads__dud__failrespons__past_sx

    • su_y_ksads__dud__haz__past_sx

    • su_y_ksads__dud__negimpct__interprs__past_sx

    • su_y_ksads__dud__negimpct__obl__past_sx

    • su_y_ksads__dud__overuse__past_sx

    • su_y_ksads__dud__prob__phys__past_sx

    • su_y_ksads__dud__prob__psych__past_sx

    • su_y_ksads__dud__reduce__dsr__past_sx

    • su_y_ksads__dud__reduce__unsucces__past_sx

    • su_y_ksads__dud__tol__past_sx

    • su_y_ksads__dud__withdr__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 2 of 14 items missing

Usage

vars_su_y_ksads__dud__past__sx_mean

compute_su_y_ksads__dud__past__sx_mean(
  data,
  name = "su_y_ksads__dud__past__sx_mean",
  max_na = 2,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: PCP - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__pcp__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: PCP - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__pcp__past_sx

    • su_y_ksads__dud__crave__pcp__past_sx

    • su_y_ksads__dud__dwi__pcp__past_sx

    • su_y_ksads__dud__failrespons__pcp__past_sx

    • su_y_ksads__dud__haz__pcp__past_sx

    • su_y_ksads__dud__negimpct__interprs__pcp__past_sx

    • su_y_ksads__dud__negimpct__obl__pcp__past_sx

    • su_y_ksads__dud__overuse__pcp__past_sx

    • su_y_ksads__dud__prob__phys__pcp__past_sx

    • su_y_ksads__dud__prob__psych__pcp__past_sx

    • su_y_ksads__dud__reduce__dsr__pcp__past_sx

    • su_y_ksads__dud__reduce__unsucces__pcp__past_sx

    • su_y_ksads__dud__time__pcp__past_sx

    • su_y_ksads__dud__tol__pcp__past_sx

    • su_y_ksads__dud__withdr__pcp__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__pcp__past__sx_mean

compute_su_y_ksads__dud__pcp__past__sx_mean(
  data,
  name = "su_y_ksads__dud__pcp__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__pcp__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__pcp__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: PCP - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__pcp__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: PCP - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__pcp__pres_sx

    • su_y_ksads__dud__crave__pcp__pres_sx

    • su_y_ksads__dud__dwi__pcp__pres_sx

    • su_y_ksads__dud__failrespons__pcp__pres_sx

    • su_y_ksads__dud__haz__pcp__pres_sx

    • su_y_ksads__dud__negimpct__interprs__pcp__pres_sx

    • su_y_ksads__dud__negimpct__obl__pcp__pres_sx

    • su_y_ksads__dud__overuse__pcp__pres_sx

    • su_y_ksads__dud__prob__phys__pcp__pres_sx

    • su_y_ksads__dud__prob__psych__pcp__pres_sx

    • su_y_ksads__dud__reduce__dsr__pcp__pres_sx

    • su_y_ksads__dud__reduce__unsucces__pcp__pres_sx

    • su_y_ksads__dud__time__pcp__pres_sx

    • su_y_ksads__dud__tol__pcp__pres_sx

    • su_y_ksads__dud__withdr__pcp__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__pcp__pres__sx_mean

compute_su_y_ksads__dud__pcp__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__pcp__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__pcp__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__pcp__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__pres_sx

    • su_y_ksads__dud__crave__pres_sx

    • su_y_ksads__dud__dwi__pres_sx

    • su_y_ksads__dud__failrespons__pres_sx

    • su_y_ksads__dud__haz__pres_sx

    • su_y_ksads__dud__negimpct__interprs__pres_sx

    • su_y_ksads__dud__negimpct__obl__pres_sx

    • su_y_ksads__dud__overuse__pres_sx

    • su_y_ksads__dud__prob__phys__pres_sx

    • su_y_ksads__dud__prob__psych__pres_sx

    • su_y_ksads__dud__reduce__dsr__pres_sx

    • su_y_ksads__dud__reduce__unsucces__pres_sx

    • su_y_ksads__dud__time__pres_sx

    • su_y_ksads__dud__tol__pres_sx

    • su_y_ksads__dud__withdr__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__pres__sx_mean

compute_su_y_ksads__dud__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Sedatives - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__sed__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Sedatives - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__sed__past_sx

    • su_y_ksads__dud__crave__sed__past_sx

    • su_y_ksads__dud__dwi__sed__past_sx

    • su_y_ksads__dud__failrespons__sed__past_sx

    • su_y_ksads__dud__haz__sed__past_sx

    • su_y_ksads__dud__negimpct__interprs__sed__past_sx

    • su_y_ksads__dud__negimpct__obl__sed__past_sx

    • su_y_ksads__dud__overuse__sed__past_sx

    • su_y_ksads__dud__prob__phys__sed__past_sx

    • su_y_ksads__dud__prob__psych__sed__past_sx

    • su_y_ksads__dud__reduce__dsr__sed__past_sx

    • su_y_ksads__dud__reduce__unsucces__sed__past_sx

    • su_y_ksads__dud__time__sed__past_sx

    • su_y_ksads__dud__tol__sed__past_sx

    • su_y_ksads__dud__withdr__sed__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__sed__past__sx_mean

compute_su_y_ksads__dud__sed__past__sx_mean(
  data,
  name = "su_y_ksads__dud__sed__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__sed__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__sed__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Sedatives - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__sed__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Sedatives - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__sed__pres_sx

    • su_y_ksads__dud__crave__sed__pres_sx

    • su_y_ksads__dud__dwi__sed__pres_sx

    • su_y_ksads__dud__failrespons__sed__pres_sx

    • su_y_ksads__dud__haz__sed__pres_sx

    • su_y_ksads__dud__negimpct__interprs__sed__pres_sx

    • su_y_ksads__dud__negimpct__obl__sed__pres_sx

    • su_y_ksads__dud__overuse__sed__pres_sx

    • su_y_ksads__dud__prob__phys__sed__pres_sx

    • su_y_ksads__dud__prob__psych__sed__pres_sx

    • su_y_ksads__dud__reduce__dsr__sed__pres_sx

    • su_y_ksads__dud__reduce__unsucces__sed__pres_sx

    • su_y_ksads__dud__time__sed__pres_sx

    • su_y_ksads__dud__tol__sed__pres_sx

    • su_y_ksads__dud__withdr__sed__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__sed__pres__sx_mean

compute_su_y_ksads__dud__sed__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__sed__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__sed__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__sed__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Solvent - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__solv__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Solvent - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__solv__past_sx

    • su_y_ksads__dud__crave__solv__past_sx

    • su_y_ksads__dud__dwi__solv__past_sx

    • su_y_ksads__dud__failrespons__solv__past_sx

    • su_y_ksads__dud__haz__solv__past_sx

    • su_y_ksads__dud__negimpct__interprs__solv__past_sx

    • su_y_ksads__dud__negimpct__obl__solv__past_sx

    • su_y_ksads__dud__overuse__solv__past_sx

    • su_y_ksads__dud__prob__phys__solv__past_sx

    • su_y_ksads__dud__prob__psych__solv__past_sx

    • su_y_ksads__dud__reduce__dsr__solv__past_sx

    • su_y_ksads__dud__reduce__unsucces__solv__past_sx

    • su_y_ksads__dud__time__solv__past_sx

    • su_y_ksads__dud__tol__solv__past_sx

    • su_y_ksads__dud__withdr__solv__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__solv__past__sx_mean

compute_su_y_ksads__dud__solv__past__sx_mean(
  data,
  name = "su_y_ksads__dud__solv__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__solv__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__solv__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Solvent - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__solv__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Solvent - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__solv__pres_sx

    • su_y_ksads__dud__crave__solv__pres_sx

    • su_y_ksads__dud__dwi__solv__pres_sx

    • su_y_ksads__dud__failrespons__solv__pres_sx

    • su_y_ksads__dud__haz__solv__pres_sx

    • su_y_ksads__dud__negimpct__interprs__solv__pres_sx

    • su_y_ksads__dud__negimpct__obl__solv__pres_sx

    • su_y_ksads__dud__overuse__solv__pres_sx

    • su_y_ksads__dud__prob__phys__solv__pres_sx

    • su_y_ksads__dud__prob__psych__solv__pres_sx

    • su_y_ksads__dud__reduce__dsr__solv__pres_sx

    • su_y_ksads__dud__reduce__unsucces__solv__pres_sx

    • su_y_ksads__dud__time__solv__pres_sx

    • su_y_ksads__dud__tol__solv__pres_sx

    • su_y_ksads__dud__withdr__solv__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__solv__pres__sx_mean

compute_su_y_ksads__dud__solv__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__solv__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__solv__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__solv__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Stimulants - Past): Mean"

Description

Computes the summary score su_y_ksads__dud__stim__past__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Stimulants - Past): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__stim__past_sx

    • su_y_ksads__dud__crave__stim__past_sx

    • su_y_ksads__dud__dwi__stim__past_sx

    • su_y_ksads__dud__failrespons__stim__past_sx

    • su_y_ksads__dud__haz__stim__past_sx

    • su_y_ksads__dud__negimpct__interprs__stim__past_sx

    • su_y_ksads__dud__negimpct__obl__stim__past_sx

    • su_y_ksads__dud__overuse__stim__past_sx

    • su_y_ksads__dud__prob__phys__stim__past_sx

    • su_y_ksads__dud__prob__psych__stim__past_sx

    • su_y_ksads__dud__reduce__dsr__stim__past_sx

    • su_y_ksads__dud__reduce__unsucces__stim__past_sx

    • su_y_ksads__dud__time__stim__past_sx

    • su_y_ksads__dud__tol__stim__past_sx

    • su_y_ksads__dud__withdr__stim__past_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__stim__past__sx_mean

compute_su_y_ksads__dud__stim__past__sx_mean(
  data,
  name = "su_y_ksads__dud__stim__past__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__stim__past__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__stim__past__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "KSADS - Drug Use Disorders [Youth] (Symptom: Stimulants - Present): Mean"

Description

Computes the summary score su_y_ksads__dud__stim__pres__sx_mean KSADS - Drug Use Disorders [Youth] (Symptom: Stimulants - Present): Mean [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_ksads__dud__actvdecr__stim__pres_sx

    • su_y_ksads__dud__crave__stim__pres_sx

    • su_y_ksads__dud__dwi__stim__pres_sx

    • su_y_ksads__dud__failrespons__stim__pres_sx

    • su_y_ksads__dud__haz__stim__pres_sx

    • su_y_ksads__dud__negimpct__interprs__stim__pres_sx

    • su_y_ksads__dud__negimpct__obl__stim__pres_sx

    • su_y_ksads__dud__overuse__stim__pres_sx

    • su_y_ksads__dud__prob__phys__stim__pres_sx

    • su_y_ksads__dud__prob__psych__stim__pres_sx

    • su_y_ksads__dud__reduce__dsr__stim__pres_sx

    • su_y_ksads__dud__reduce__unsucces__stim__pres_sx

    • su_y_ksads__dud__time__stim__pres_sx

    • su_y_ksads__dud__tol__stim__pres_sx

    • su_y_ksads__dud__withdr__stim__pres_sx

  • Excluded values:

    • 555

  • Validation criterion: maximally 3 of 15 items missing

Usage

vars_su_y_ksads__dud__stim__pres__sx_mean

compute_su_y_ksads__dud__stim__pres__sx_mean(
  data,
  name = "su_y_ksads__dud__stim__pres__sx_mean",
  max_na = 3,
  exclude = c("555"),
  combine = TRUE
)

Arguments

data

tbl. Data frame containing the columns to be summarized.

name

character. Name of the summary score column.

max_na

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

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.

Format

vars_su_y_ksads__dud__stim__pres__sx_mean is a character vector of all column names used to compute summary score of su_y_ksads__dud__stim__pres__sx_mean

Details

KSADS summary scores are mostly calculating the means over variables, but there are two special codes to handle:

  • "888": item skipped by branching. When at least one input value is observed, any 888 value is converted to "0" prior to averaging.

  • "555": module not administered. If any input variable is "555" leave the score as NA.

  • NA: missing value. If at least one input value is observed, any NA values are converted to "0" prior to averaging. If all inputs are NA, the summary score remains NA.

Value

tbl. see combine.


Compute "Marijuana Expectancies (MEEQ-B) [Youth] (Strength of negative expectancies): Prorated sum"

Description

Computes the summary score su_y_mjexp__neg_prsum Marijuana Expectancies (MEEQ-B) [Youth] (Strength of negative expectancies): Prorated sum [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • su_y_mjexp__neg_001

    • su_y_mjexp__neg_002

    • su_y_mjexp__neg_003

  • Excluded values: none

  • Validation criterion: maximally 1 of 3 items missing

Usage

vars_su_y_mjexp__neg

compute_su_y_mjexp__neg_prsum(
  data,
  name = "su_y_mjexp__neg_prsum",
  combine = TRUE,
  max_na = 1
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_mjexp__neg is a character vector of all column names used to compute summary score of su_y_mjexp__neg_prsum and su_y_mjexp__neg_nm.

Value

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


Compute "Marijuana Expectancies (MEEQ-B) [Youth] (Strength of positive expectancies): Prorated sum"

Description

Computes the summary score su_y_mjexp__pos_prsum Marijuana Expectancies (MEEQ-B) [Youth] (Strength of positive expectancies): Prorated sum [Validation: No more than 1 missing or declined]

  • Summarized variables:

    • su_y_mjexp__pos_001

    • su_y_mjexp__pos_002

    • su_y_mjexp__pos_003

  • Excluded values: none

  • Validation criterion: maximally 1 of 3 items missing

Usage

vars_su_y_mjexp__pos

compute_su_y_mjexp__pos_prsum(
  data,
  name = "su_y_mjexp__pos_prsum",
  combine = TRUE,
  max_na = 1
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_mjexp__pos is a character vector of all column names used to compute summary score of su_y_mjexp__pos_prsum and su_y_mjexp__pos_nm

Value

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


Compute "Marijuana Problem Index (MAPI) [Youth]: Prorated sum"

Description

Computes the summary score su_y_mjprob_prsum Marijuana Problem Index (MAPI) [Youth]: Prorated sum [Validation: No more than 3 missing or declined]

  • Summarized variables:

    • su_y_mjprob_001

    • su_y_mjprob_002

    • su_y_mjprob_003

    • su_y_mjprob_004

    • su_y_mjprob_005

    • su_y_mjprob_006

    • su_y_mjprob_007

    • su_y_mjprob_008

    • su_y_mjprob_009

    • su_y_mjprob_010

    • su_y_mjprob_011

    • su_y_mjprob_012

    • su_y_mjprob_016

    • su_y_mjprob_017

    • su_y_mjprob_018

  • Excluded values: none

  • Validation criterion: maximally 3 items missing

Usage

vars_su_y_mjprob

compute_su_y_mjprob_prsum(
  data,
  name = "su_y_mjprob_prsum",
  combine = TRUE,
  max_na = 3
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_mjprob is a character vector of all column names used to compute summary score of su_y_mjprob_prsum and su_y_mjprob_nm.

Value

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


Compute "Marijuana Subjective Response and Effects [Youth] (Total): Sum - Positive score inverted [Validation: None missing or declined]"

Description

Computes the summary score su_y_mjsre_sum Marijuana Subjective Response and Effects [Youth] (Total): Sum - Positive score inverted [Validation: None missing or declined]

  • Summarized variables:

    • su_y_mjsre__pos_001

    • su_y_mjsre__pos_002

    • su_y_mjsre__pos_003

    • su_y_mjsre__neg_001

    • su_y_mjsre__neg_002

    • su_y_mjsre__neg_003

    • su_y_mjsre__neg_004

    • su_y_mjsre__neg_005

    • su_y_mjsre__neg_006

    • su_y_mjsre__neg_007

    • su_y_mjsre__neg_008

  • Excluded values: none

  • Validation criterion: maximally 0 of 11 items missing

Usage

vars_su_y_mjsre

compute_su_y_mjsre_sum(
  data,
  name = "su_y_mjsre_sum",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Format

vars_su_y_mjsre is a character vector of all column names used to compute summary scores of compute_su_y_mjsre (⁠_sum⁠, ⁠_nm⁠).

Value

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


Compute "Marijuana Subjective Response and Effects [Youth] (Negative): Sum [Validation: None missing or declined]"

Description

Computes the summary score su_y_mjsre__neg_sum Marijuana Subjective Response and Effects [Youth] (Negative): Sum [Validation: None missing or declined]

  • Summarized variables:

    • su_y_mjsre__neg_001

    • su_y_mjsre__neg_002

    • su_y_mjsre__neg_003

    • su_y_mjsre__neg_004

    • su_y_mjsre__neg_005

    • su_y_mjsre__neg_006

    • su_y_mjsre__neg_007

    • su_y_mjsre__neg_008

  • Excluded values: none

  • Validation criterion: maximally 0 of 8 items missing

Usage

vars_su_y_mjsre__neg

compute_su_y_mjsre__neg_sum(
  data,
  name = "su_y_mjsre__neg_sum",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Format

vars_su_y_mjsre__neg is a character vector of all column names used to compute summary scores of compute_su_y_mjsre__neg (⁠_sum⁠, ⁠_nm⁠).

Value

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


Compute "Marijuana Subjective Response and Effects [Youth] (Positive): Sum [Validation: None missing or declined]"

Description

Computes the summary score su_y_mjsre__pos_sum Marijuana Subjective Response and Effects [Youth] (Positive): Sum [Validation: None missing or declined]

  • Summarized variables:

    • su_y_mjsre__pos_001

    • su_y_mjsre__pos_002

    • su_y_mjsre__pos_003

  • Excluded values: none

  • Validation criterion: maximally 0 of 3 items missing

Usage

vars_su_y_mjsre__pos

compute_su_y_mjsre__pos_sum(
  data,
  name = "su_y_mjsre__pos_sum",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Format

vars_su_y_mjsre__pos is a character vector of all column names used to compute summary scores of compute_su_y_mjsre__pos (⁠_sum⁠, ⁠_nm⁠).

Value

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


Compute "Nicotine Subjective Response and Effects [Youth] (Intensity of positive and negative effects of first smokeless tobacco or chew use): Sum - Negative score inverted [Validation: None missing or declined]"

Description

Computes the summary score su_y_nicsre__chew_sum Nicotine Subjective Response and Effects [Youth] (Intensity of positive and negative effects of first smokeless tobacco or chew use): Sum - Negative score inverted [Validation: None missing or declined]

  • Summarized variables:

    • su_y_nicsre__chew__pos_001

    • su_y_nicsre__chew__neg_001

  • Excluded values: none

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_su_y_nicsre__chew

compute_su_y_nicsre__chew_sum(
  data,
  name = "su_y_nicsre__chew_sum",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Format

vars_su_y_nicsre__chew is a character vector of all column names used to compute summary scores of compute_su_y_nicsre__chew (⁠_sum⁠, ⁠_nm⁠).

Value

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


Compute "Nicotine Subjective Response and Effects [Youth] (Intensity of positive and negative effects of first cigarette use): Sum - Negative score inverted [Validation: None missing or declined]"

Description

Computes the summary score su_y_nicsre__cig_sum Nicotine Subjective Response and Effects [Youth] (Intensity of positive and negative effects of first cigarette use): Sum - Negative score inverted [Validation: None missing or declined]

  • Summarized variables:

    • su_y_nicsre__cig__pos_001

    • su_y_nicsre__cig__neg_001

  • Excluded values: none

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_su_y_nicsre__cig

compute_su_y_nicsre__cig_sum(
  data,
  name = "su_y_nicsre__cig_sum",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Format

vars_su_y_nicsre__cig is a character vector of all column names used to compute summary scores of compute_su_y_nicsre__cig (⁠_sum⁠, ⁠_nm⁠).

Value

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


Compute "Nicotine Subjective Response and Effects [Youth] (Intensity of positive and negative effects of first vape use): Sum - Negative score inverted [Validation: None missing or declined]"

Description

Computes the summary score su_y_nicsre__vape_sum Nicotine Subjective Response and Effects [Youth] (Intensity of positive and negative effects of first vape use): Sum - Negative score inverted [Validation: None missing or declined]

  • Summarized variables:

    • su_y_nicsre__vape__pos_001

    • su_y_nicsre__vape__pos_001__v01

    • su_y_nicsre__vape__neg_001

    • su_y_nicsre__vape__neg_001__v01

  • Excluded values: none

  • Validation criterion: maximally 0 of 2 items missing

Usage

vars_su_y_nicsre__vape

compute_su_y_nicsre__vape_sum(
  data,
  name = "su_y_nicsre__vape_sum",
  combine = TRUE,
  max_na = 0
)

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.

max_na

numeric, positive whole number. Number of missing items allowed (Default: 0).

Format

vars_su_y_nicsre__vape is a character vector of all column names used to compute summary scores of compute_su_y_nicsre__vape (⁠_sum⁠, ⁠_nm⁠).

Value

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


Compute "ENDS Expectancies [Youth] (Strength of negative expectancies): Prorated sum"

Description

Computes the summary score su_y_nicvapeexp__neg_prsum ENDS Expectancies [Youth] (Strength of negative expectancies): Prorated sum [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • su_y_nicvapeexp__neg_001

    • su_y_nicvapeexp__neg_002

    • su_y_nicvapeexp__neg_003

    • su_y_nicvapeexp__neg_004

  • Excluded values: none

  • Validation criterion: maximally 2 of 4 items missing

Usage

vars_su_y_nicvapeexp__neg

compute_su_y_nicvapeexp__neg_prsum(
  data,
  name = "su_y_nicvapeexp__neg_prsum",
  combine = TRUE,
  max_na = 2
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_nicvapeexp__neg is a character vector of all column names used to compute summary score of su_y_nicvapeexp__neg_prsum and su_y_nicvapeexp__neg_nm

Value

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


Compute "ENDS Expectancies [Youth] (Strength of positive expectancies): Prorated sum"

Description

Computes the summary score su_y_nicvapeexp__pos_prsum ENDS Expectancies [Youth] (Strength of positive expectancies): Prorated sum [Validation: No more than 2 missing or declined]

  • Summarized variables:

    • su_y_nicvapeexp__pos_001

    • su_y_nicvapeexp__pos_002

    • su_y_nicvapeexp__pos_003

    • su_y_nicvapeexp__pos_004

  • Excluded values: none

  • Validation criterion: maximally 2 of 4 items missing

Usage

vars_su_y_nicvapeexp__pos

compute_su_y_nicvapeexp__pos_prsum(
  data,
  name = "su_y_nicvapeexp__pos_prsum",
  combine = TRUE,
  max_na = 2
)

Arguments

data

tbl. Data frame 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.

combine

logical, If TRUE (default), the summary score will be appended to the input data frame. If FALSE, the summary score for each participant will be returned as a separate data frame. (Default: TRUE)

max_na

numeric, positive whole number. Number of missing items allowed (Default: 1).

Format

vars_su_y_nicvapeexp__pos is a character vector of all column names used to compute summary score of su_y_nicvapeexp__pos_prsum and su_y_nicvapeexp__pos_nm.

Value

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