Learn R Programming

RVAideMemoire (version 0.9-83-7)

byf.mshapiro: Shapiro-Wilk test for factor levels

Description

Performs a multivariate Shapiro-Wilk test on numeric variables per level of a factor.

Usage

byf.mshapiro(formula, data)

Value

method

name of the test.

data.name

a character string giving the names of the data.

tab

table of results.

Arguments

formula

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.

data

an optional data frame containing the variables in the formula formula. By default the variables are taken from environment(formula).

Author

Maxime HERVE <maxime.herve@univ-rennes1.fr>

See Also

byf.mqqnorm, mshapiro.test, qqPlot

Examples

Run this code
data(iris)
byf.mshapiro(as.matrix(iris[,1:4])~Species,data=iris)

Run the code above in your browser using DataLab