mirror of
https://github.com/agdamsbo/stRoke.git
synced 2024-11-24 21:51:55 +01:00
31 lines
639 B
Plaintext
31 lines
639 B
Plaintext
|
% 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()
|
||
|
}
|