Learn R Programming

dprep (version 3.0.2)

mardia: The Mardia's test of normality

Description

Performs the Mardia's test to check for multivariate normality

Usage

mardia(data)

Arguments

data
The dataset containing the features for which multivariate normality is going to be tested. The last column contains the class. In case of unsupervised data add a dummy colummn of ones. In case of regression data, transform the response column in a column of ones

Value

Returns the p-values for the corresponding third and fourth moments of the multivariate normal distribution.

References

Mardia, K.V. (1985). "Mardia's Test of Multinormality," in S. Kotz and N.L. Johnson, eds., Encyclopedia of Statistical Sciences, vol. 5 (NY: Wiley), pp. 217-221.

See Also

vvalen

Examples

Run this code
#-----Mardia test for supervised data-----
data(iris)
mardia(iris)

Run the code above in your browser using DataLab