assumptions_paruv | R Documentation |
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.
assumptions_paruv(data, factors)
data |
Data used in the parametric test (rows correspond to observations, columns to principal components). |
factors |
Groups to which rows of |
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
).
# 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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.