compute_su_y_alchss_sum: Compute "Alcohol Hangover Symptoms Scale (HSS) [Youth]: Sum"

View source: R/scores_su.R

vars_su_y_alchssR Documentation

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)

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