Skip to contents

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
)

Format

vars_fc_p_fes__org is a character vector of all column names used to compute summary score of fc_p_fes__org.

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.

Value

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