mfi_domains: MFI domain score calculator

View source: R/mfi_calc.R

mfi_domainsR Documentation

MFI domain score calculator

Description

MFI domain score calculator

Usage

mfi_domains(
  ds,
  reverse = TRUE,
  reverse.vars = c(2, 5, 9, 10, 13, 14, 16, 17, 18, 19)
)

Arguments

ds

data set of MFI scores, 20 columns

reverse

reverse scoring

reverse.vars

variables/columns to reverse

Value

tibble of domain scores

Examples

mfi_mess <- data.frame(matrix(
sample(c(" 1. ", "2. -A", "3.", " 4  ", "5.", NA),200,replace=TRUE),ncol=20))
mfi_mess |> mfi_domains()

stRoke documentation built on Oct. 25, 2024, 9:07 a.m.