multkw: Multivariate Kruskal-Wallis test

View source: R/multkw.R

multkwR Documentation

Multivariate Kruskal-Wallis test

Description

This function computes a multivariate Kruskal-Wallis test for n numeric variables relative to one factorial variable (that subsets the dataset in groups)

Usage

multkw(group, y, print = TRUE)

Arguments

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 (TRUE, the default) or not (e.g., to be stored in an object)

Details

A "standard" multivariate Kruskal-Wallis test is computed, deleting all missing data.

Value

Output is either a list (with "simplify=FALSE") or a vector (with "simplify=TRUE") containing the results of the multivariate Kruskal-Wallis test.

Author(s)

Fanyin He (most of the statistical function)

Jacob Maugoust (packaging)

References

\insertRef

He.etal.2017ULT

See Also

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.

Examples

data(airquality)
datamkw<-airquality[,1:4]
multkw(y=datamkw,airquality$Month)


jacobmaugoust/ULT documentation built on May 16, 2023, 1:29 p.m.