print.Hotelling.mat {smsets}R Documentation

Prints Hotelling's T^2 test

Description

Prints the results produced by the Hotelling.mat function

Usage

## S3 method for class 'Hotelling.mat'
print(x, long = FALSE, ...)

Arguments

x

an object of class "Hotelling.mat"

long

a logical variable indicating whether a long output is desired (TRUE) or not (FALSE, the default)

...

further arguments passed to or from other methods.

Value

Displays the results of the comparison of mean values of two multivariate samples, under the assumption that covariance matrices are equal, using Hotelling's T² test. The argument x, invisibly, as for all print methods, is a list of class "Hotelling.mat". This print method provides two sorts of output depending on whether the long argument is TRUE or FALSE (the default). The "short" output displays:

In addition to this summary, the "long" output shows:

Examples

data(sparrows)
results.T2 <- Hotelling.mat(sparrows, group = Survivorship, level1 = "S")
# Long output
print(results.T2, long = TRUE)


[Package smsets version 1.2.3 Index]