mirror of
https://github.com/agdamsbo/stRoke.git
synced 2024-10-30 03:11:52 +01:00
31 lines
639 B
R
31 lines
639 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/mfi_calc.R
|
|
\name{mfi_domains}
|
|
\alias{mfi_domains}
|
|
\title{MFI domain score calculator}
|
|
\usage{
|
|
mfi_domains(
|
|
ds,
|
|
reverse = TRUE,
|
|
reverse.vars = c(2, 5, 9, 10, 13, 14, 16, 17, 18, 19)
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{ds}{data set of MFI scores, 20 columns}
|
|
|
|
\item{reverse}{reverse scoring}
|
|
|
|
\item{reverse.vars}{variables/columns to reverse}
|
|
}
|
|
\value{
|
|
tibble of domain scores
|
|
}
|
|
\description{
|
|
MFI domain score calculator
|
|
}
|
|
\examples{
|
|
mfi_mess <- data.frame(matrix(
|
|
sample(c(" 1. ", "2. -A", "3.", " 4 ", "5.", NA),200,replace=TRUE),ncol=20))
|
|
mfi_mess |> mfi_domains()
|
|
}
|