assumptions_paruv: Determine the assumptions for the parametric comparison test

View source: R/assumptions.R

assumptions_paruvR Documentation

Determine the assumptions for the parametric comparison test

Description

Determine two assumptions for the parametric comparison tests (i.e. either t.test or aov) for each principal component, namely: a) univariate normality of each group; b) homogeneity of variances.

Usage

assumptions_paruv(data, factors)

Arguments

data

Data used in the parametric test (rows correspond to observations, columns to principal components).

factors

Groups to which rows of data belong to.

Value

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

uvntest

List of results from the Shapiro-Wilk normality test (shapiro.test), one result per group per principal component.

vartest

Result of Bartlett test for homogeneity of variances (bartlett.test).

Examples


# Determine the assumptions of applying ANOVA to each column (dependent
# variable) of the iris data (i.e. normality of each group and homogeneity of
# variances)
a <- assumptions_paruv(iris[, 1:4], iris[, 5])


fakenmc/micompr documentation built on Aug. 6, 2024, 8:29 p.m.