Skip to contents

Mean variables using scoresheet

Usage

mean_vars(raw, scoresheet)

Arguments

raw

A raw data object

scoresheet

A formatted scoresheet object

Value

raw tibble with four additional columns appended: {n_var} : a column which is the mean of items, with NAs removed {n_var}_complete : a column with the mean of items -- rows that contain any NA values return NA {n_var}_NAs : a column with the count of NAs among items contributing to the mean {n_var}_NA_percent : a column with the percentage of NAs among the variables contributing to the mean