assumptions_manova: Determine the assumptions for the MANOVA test

View source: R/assumptions.R

assumptions_manovaR 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 data belong to (independent variables).

Value

An object of class assumptions_manova which is a list containing two elements:

mvntest

List of results from the Royston multivariate normality test (mvn), one result per group.

vartest

Result 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])


FakenMC/micompr documentation built on Jan. 31, 2024, 5:09 a.m.