compute_su_y_mjexp__pos_prsum: Compute "Marijuana Expectancies (MEEQ-B) [Youth] (Strength of...

View source: R/scores_su.R

vars_su_y_mjexp__posR Documentation

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.


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