VManova {MVET} | R Documentation |
Various Multivariate Anova(VManova)
Description
Perform various types of multivariate analysis of variance (MANOVA) that satisfy tests of multivariate normality and homogeneity of covariance matrices.
Usage
VManova(data,
grp1.name,
grp2.name,
way = "one",
method = "all",
plot.scale = FALSE)
Arguments
data |
A numeric matrix or data frame. If data frames, group(class) column can be a factor or a string. |
grp1.name |
The name of the first group (or class) column in the input data, specified as a |
grp2.name |
The name of the second group (or class) column in the input data, specified as a |
way |
The type of MANOVA to perform (" |
method |
The method for MANOVA analysis. " |
plot.scale |
If |
Value
Mean.val.plot |
Plot the mean value parallel coordinates, representing the two samples using the mean values for each variable. |
One.all |
Outputs the results of a one-way MANOVA test. It displays the degrees of freedom (Df1, Df2) of the F-distribution, statistics for Wilks, Lawley-Hotelling, Pillai, and Roy, the F-distribution test statistic, and the significance level in that order. |
Two.all |
Outputs the results of a two-way MANOVA test. It displays the degrees of freedom (Df1, Df2) of the F-distribution, statistics for Wilks, Lawley-Hotelling, Pillai, and Roy, the F-distribution test statistic, and the significance level in that order. |
References
Rencher, A. C., & Christensen, W. F. (2002). Methods of Multivariate Analysis. John Wiley & Sons, Inc., New York.
See Also
mardiatest for multivariate normality (Includes outlier remove)
PPCCtest for multivariate normality
SPCCtest for multivariate normality
boxMtest for homogeneity of covariance matrices
Examples
data(wine)
## one way
VManova(wine, grp1.name = "class", way = "one", method = "all", plot.scale = TRUE)
## two way
newwine <- wine
# (1: low, 2: medium, 3: high)
newwine$v4 <- ifelse(wine$v4 <= 17, 1,
ifelse(wine$v4 <= 22, 2, 3))
VManova(newwine, grp1.name = "class", grp2.name = "v4",
way = "two", method = "all", plot.scale = TRUE)