Learn R Programming

mnt

The package mnt is designed to give users access to state of the art tests of multivariate normality. It accompanies the survey paper on goodness of fit tests of multivariate normality by Ebner, B. and Henze, N. (2020) Tests for multivariate normality -- a critical review with emphasis on weighted L2-statistics, that will appear in TEST. All of the described tests can be performed by functions provided in mnt.

Installation

You can install the released version of mnt from CRAN with:

install.packages("mnt")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("LBPy/mnt")

Example

This is a basic example on how to use the mnt package: We generate a multivariate data set X.data and perform the BHEP test of normality for the generated X.data and using the tuning parameter a=3. The significance level is alpha. Note that the critical values are simulated by a Monte Carlo method.

library(mnt)
X.data = MASS::mvrnorm(50,c(3,4,5),diag(3,3)) 
X.BHEP = test.BHEP(X.data,a=3,alpha=0.05) 
X.BHEP 
#> 
#> ------------------------------------------------------------------------- 
#> 
#>          Test for multivariate normality with the BHEP  teststatistic.
#> 
#> tuning parameter = 3  
#> BHEP  =  0.9514364  
#> critical value =   1.09841  (via monte carlo) 
#> 
#> 
#> -------------------------------------------------------------------------

The value of the test statistic can directly be computed by

BHEP(X.data,a=3)                       
#> [1] 0.9514364

This also works in the univariate case:

X.data = stats::rnorm(25,3,5)
X.BHEP = test.BHEP(X.data,a=2,alpha=0.05) 
BHEP(X.data,a=2)     
X.BHEP 
#> 
#> ------------------------------------------------------------------------- 
#> 
#>          Test for multivariate normality with the BHEP  teststatistic.
#> 
#> tuning parameter = 2  
#> BHEP  =  0.6427705  
#> critical value =   0.9922879  (via monte carlo) 
#> 
#> 
#> -------------------------------------------------------------------------

And for other test statistics too:

X.data = stats::rnorm(25,3,5)
X.DEHT = test.DEHT(X.data,a=2,alpha=0.05) 
DEHT(X.data,a=2)     
X.DEHT 
#> 
#> ------------------------------------------------------------------------- 
#> 
#>          Test for multivariate normality with the DEH based on harmonic oscillator  teststatistic.
#> 
#> tuning parameter = 2  
#> DEH based on harmonic oscillator  =  1.303027  
#> critical value =   1.464164  (via monte carlo) 
#> 
#> 
#> -------------------------------------------------------------------------

Copy Link

Version

Install

install.packages('mnt')

Monthly Downloads

324

Version

1.4

License

CC BY 4.0

Maintainer

Bruno Ebner

Last Published

September 25th, 2026

Functions in mnt (1.4)

HV

statistic of the Henze-Visagie test
MQ2

second statistic of Manzotti und Quiroz
MASkew

multivariate skewness in the sense of Malkovich and Afifi
MSkew

Mardias measure of multivariate sample skewness
MQ1

first statistic of Manzotti and Quiroz
Quantile09

Simulated empirical 90% quantiles of the tests contained in package mnt
MAKurt

multivariate kurtosis in the sense of Malkovich and Afifi
MKurt

Mardias measure of multivariate sample kurtosis
PU

Statistic of the Pudelko test
test.DEHT

Doerr-Ebner-Henze test of multivariate normality based on harmonic oscillator
Quantile095

Simulated empirical 95% quantiles of the tests contained in package mnt
cv.quan

Monte Carlo simulation of quantiles for normality tests
mnt-package

mnt: Affine Invariant Tests of Multivariate Normality
test.DEHU

Doerr-Ebner-Henze test of multivariate normality based on a double estimation in a PDE
Quantile099

Simulated empirical 99% quantiles of the tests contained in package mnt
MRSSkew

multivariate skewness of Móri, Rohatgi and Székely
standard

Empirical scaled residuals
test.HZ

The Henze-Zirkler test
print.mnt

Print method for tests of multivariate normality
test.KKurt

Test of normality based on Koziols measure of multivariate sample kurtosis
test.MRSSkew

Test of multivariate normality based on the measure of multivariate skewness of Mori, Rohatgi and Szekely
test.MKurt

Test of normality based on Mardias measure of multivariate sample kurtosis
test.BHEP

Baringhaus-Henze-Epps-Pulley (BHEP) test
test.MQ2

Manzotti-Quiroz test 2
test.MQ1

Manzotti-Quiroz test 1
test.CS

multivariate normality test of Cox and Small
test.EHS

Ebner-Henze-Strieder test of multivariate normality based on Fourier methods in a multivariate Stein equation
test.HJG

Henze-Jimenes-Gamero test of multivariate normality
test.SR

Szekely-Rizzo (energy) test
test.MAKurt

Test of normality based on multivariate kurtosis in the sense of Malkovich and Afifi
SR

statistic of the Székely-Rizzo test
test.HJM

Henze-Jimenes-Gamero-Meintanis test of multivariate normality
test.HV

The Henze-Visagie test of multivariate normality
test.PU

Pudelko test of multivariate normality
test.MSkew

Test of normality based on Mardias measure of multivariate sample skewness
test.MASkew

Test of normality based on multivariate skewness in the sense of Malkovich and Afifi
KKurt

Koziols measure of multivariate sample kurtosis
HJM

statistic of the Henze-Jiménes-Gamero-Meintanis test
DEHT

Statistic of the DEH test based on harmonic oscillator
EHS

Statistic of the EHS test based on a multivariate Stein equation
HJG

Henze-Jiménes-Gamero test statistic
DEHU

Statistic of the DEH test based on a double estimation in PDE
BHEP

Statistic of the BHEP-test
CS

Statistic of the test of Cox and Small
HZ

Statistic of the Henze-Zirkler test