Learn R Programming

qtlmt (version 0.1-6)

varT2: Hotelling's T^2 test statistic

Description

Calculate the Hotelling's T^2 test statistic.

Usage

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

Run this code
# NOT RUN {
data(etrait)
varT2(traits, mdat[,42])
# }

Run the code above in your browser using DataLab