| assumptions_manova {micompr} | R Documentation |
Determine the assumptions for the MANOVA test
Description
Determine two assumptions for the MANOVA test: a) multivariate normality of each group; b) homogeneity of covariance matrices.
Usage
assumptions_manova(data, factors)
Arguments
data |
Data used for the MANOVA test (rows correspond to observations, columns to dependent variables). |
factors |
Groups to which rows of |
Value
An object of class assumptions_manova which is a list
containing two elements:
mvntestList of results from the Royston multivariate normality test (
mvn), one result per group.vartestResult of Box's M test for homogeneity of covariance matrices (
boxM).
Note
This function requires the MVN and biotools packages.
Examples
# Determine the assumptions of applying MANOVA to the iris data
# (i.e. multivariate normality of each group and homogeneity of covariance
# matrices)
a <- assumptions_manova(iris[, 1:4], iris[, 5])
[Package micompr version 1.1.4 Index]