varT2: Hotelling's T^2 test statistic

Description Usage Arguments Value Examples

View source: R/varSel.R

Description

Calculate the Hotelling's T^2 test statistic.

Usage

1
varT2(x, group, equalVar=T)

Arguments

x

a data matrix/frame. Columns are variables to select from.

group

a grouping indicator of observations.

equalVar

whether assume the same variance-covariance in two groups.

Value

Hotelling's T^2 test statistic.

Examples

1
2
data(etrait)
varT2(traits, mdat[,42])

qtlmt documentation built on May 2, 2019, 2:23 p.m.

Related to varT2 in qtlmt...