multkw | R Documentation |
This function computes a multivariate Kruskal-Wallis test for n numeric variables relative to one factorial variable (that subsets the dataset in groups)
multkw(group, y, print = TRUE)
group |
The factorial variable that subsets the dataset in groups. Can be a character vector, a factorial vector or an integer/numeric vector. |
y |
The dataset of n numeric(or integer) variables. |
print |
Whether the test should be printed ( |
A "standard" multivariate Kruskal-Wallis test is computed, deleting all missing data.
Output is either a list (with "simplify=FALSE"
) or a vector (with "simplify=TRUE"
) containing the results of the multivariate Kruskal-Wallis test.
Fanyin He (most of the statistical function)
Jacob Maugoust (packaging)
He.etal.2017ULT
See chapter 2.2.2 and 4.2 of the PhD manuscript of Fanyin He and 'Methodology' of \insertCiteHe.etal.2017;textualULT for more details.
data(airquality)
datamkw<-airquality[,1:4]
multkw(y=datamkw,airquality$Month)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.