TVMM: an R package for testing hypothesis on mean vectors

Main Article Content

Henrique José de Paula Alves
Daniel Furtado Ferreira
Ben Deivide de Oliveira Batista


TThe Multivariate Tests for the Vector of Means (TVMM) package has six functions: T2O function, which computes Hotelling original’s T² test; T2Boot function, which computes the parametric bootstrap version of the original T2 test; T2RobustBoot function, which computes the robust parametric bootstrap
version of the T2Boot test; LRTTrace function, which computes the asymptotic version of the likelihood ratio test (LRT) using the trace operator; LRTTBoot function, which computes the parametric bootstrap version of the LRTTrace and the LRTTRBoot, which computes the robust version of the LRTTBoot. The alternative test versions of the LRT have the advantage of being valid for high-dimensional data. We describe the methods and illustrate the use of the TVMM package with real data on soil properties.

Article Details

How to Cite
Alves, H. J. de P., Furtado Ferreira, D., & Deivide de Oliveira Batista, B. (2023). TVMM: an R package for testing hypothesis on mean vectors. Brazilian Journal of Biometrics, 41(1), 8–17.


Alves, H. J. P. & Ferreira, D. F. Proposition of new alternative tests adapted to the traditional T2 test. Communications in statistics – simulation and computation (2019).

Cardoso de Oliveira, I. R. & Ferreira, D. F. Multivariate extension of chi-squared univariate normality test. Journal of Statistical Computation and Simulation 80, 513–526 (2010).

Di Palma, M. A., Srinivasan, M. R. & Sajesh, T. A. Detecting compositional outliers using Comedian Method in Advances in Latent Variables-Methods, Models and Applications (2013).

Falk, M. On MAD and comedians. Annals of the Institute of Statistical Mathematics 49, 615–644 (1997).

Ferreira, D. F. Estatística multivariada 3rd ed., 624 (Editora UFLA, 2018).

Ledoit, O. &Wolf, M. Some hypothesis tests for the covariance matrix when the dimension is large compared to the sample size. The Annals of Statistics 30, 1081–1102 (2002).

Maronna, R. A.&Zamar, R. H. Robust estimates of location and dispersion for high-dimensional datasets. Technometrics 44, 307–317 (2002).

Marozzi, M. Multivariate multidistance tests for high-dimensional lowsample size case-control studies. Statistics in medicine 34, 1511–1526 (2015).

Marozzi, M. Multivariate tests based on interpoint distances with application to magnetic resonance imaging. Statistical methods in medical research 25, 2593–2610 (2016).

Mudholkar, G. S. & Srivastava, D. K. A class of robust stepwise alternatives to Hotelling’s T2 tests. Journal of Applied Statistics 27, 599–619 (2000).

Sajesh, T. A. & Srinivasan, M. R. Outlier detection for high dimensional data using the Comedian approach. Journal of Statistical Computation and Simulation 82, 745–757 (2012).

Tiku, M. L. Robust statistics for testing equality of means or variances. Communications in Statistics-Theory and Methods 11, 2543–2558 (1982).

Wang, R., Peng, L. & Qi, Y. Jackknife empirical likelihood test for equality of two high dimensional means. Statistica Sinica, 667–690 (2013).

Willems, G., Pison, G., Rousseeuw, P. & Van Aelst, S. A robust Hotelling test. Metrika, 125–138 (2002).

Most read articles by the same author(s)