Performs a multivariate Shapiro-Wilk test on numeric variables per level of a factor.
byf.mshapiro(formula, data)
name of the test.
a character string giving the names of the data.
table of results.
a formula of the form a ~ b
where a
is a matrix giving the dependent variables (each column giving a variable) and b
a factor giving the corresponding groups.
an optional data frame containing the variables in the formula formula
. By default the variables are taken from environment(formula)
.
Maxime HERVE <maxime.herve@univ-rennes1.fr>
byf.mqqnorm
, mshapiro.test
, qqPlot
data(iris)
byf.mshapiro(as.matrix(iris[,1:4])~Species,data=iris)
Run the code above in your browser using DataLab