Learn R Programming

RVAideMemoire (version 0.9-35)

mshapiro.test: Shapiro-Wilk multivariate normality test

Description

Performs a Shapiro-Wilk test to asses multivariate normality. This is a slightly modified copy of the mshapiro.test function of the package mvnormtest, for internal convenience.

Usage

mshapiro.test(x)

Arguments

x
a data frame or a matrix of numeric variables (each column giving a variable).

Value

  • methodname of the test.
  • data.namea character string giving the names of the data.
  • statistictest statistics of the test.
  • p.valuep-value of the test.

See Also

shapiro.test, mshapiro.test

Examples

Run this code
x <- 1:30+rnorm(30)
y <- 1:30+rnorm(30,1,3)
mshapiro.test(cbind(x,y))

Run the code above in your browser using DataLab