Learn R Programming

qtlmt (version 0.1-1)

varT2: Hotelling's T^2 test statistic

Description

Calculate the Hotelling's T^2 test statistic.

Usage

varT2(x, grp, equalVar=T)

Arguments

x
data matrix/frame. Columns are variables to select from.
grp
grouping indicator of observations.
equalVar
whether assume the same variance-covariance in two groups.

Value

  • Hotelling's T^2 test statistic.

Examples

Run this code
data(etrait)
varT2(traits,mdat[,42])

Run the code above in your browser using DataLab