Performs the Shapiro-Wilk test for multivariate normality.
mshapiro.test(U)
A list with class "htest"
containing the following components:
the value of the Shapiro-Wilk statistic.
the p-value for the test.
the character string "Shapiro-Wilk normality test"
.
a character string giving the name(s) of the data.
a numeric matrix of data values, the number of which must be for each sample between 3 and 5000.
Slawomir Jarek (slawomir.jarek@gallus.edu.pl)
Czeslaw Domanski (1998) Wlasnosci testu wielowymiarowej normalnosci Shapiro-Wilka i jego zastosowanie. Cracow University of Economics Rector's Lectures, No. 37.
Patrick Royston (1982)
An Extension of Shapiro and Wilk's
Patrick Royston (1982)
Algorithm AS 181: The
Patrick Royston (1995)
A Remark on Algorithm AS 181: The
shapiro.test
for univariate samples,
qqnorm
for producing a normal quantile-quantile plot.
library(mvnormtest)
data(EuStockMarkets)
C <- t(EuStockMarkets[15:29,1:4])
mshapiro.test(C)
C <- t(EuStockMarkets[14:29,1:4])
mshapiro.test(C)
R <- t(diff(t(log(C))))
mshapiro.test(R)
dR <- t(diff(t(R)))
mshapiro.test(dR)
Run the code above in your browser using DataLab