Learn R Programming

micompr (version 1.1.4)

assumptions_manova: 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)

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).

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).

Examples

Run this code

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

Run the code above in your browser using DataLab