computeScores: Recode/Invert items

Description Usage Arguments

View source: R/computeScores.R

Description

Recodes items from questionnaires

Usage

1
2
3
computeScores(dat, subscale_items_list, col_name_prefix = NULL,
  col_name_prefix_overall = NULL, lower_subscale_names = T,
  fun = "mean", compute_z = F, compute_overall = F)

Arguments

dat

Data object

fun

Set function for score computation as character: "mean" or "sum"

subscale_namess

Names for target scores

list4items

List of item/column names for each score in subscale_names


itawaputtytat/puttytat4R documentation built on Jan. 1, 2020, 9:46 a.m.