print.LeveneT2 {smsets}R Documentation

Prints Levene's test based on Hotelling's T^2 test

Description

Prints the results produced by LeveneT2, consisting of a Levene's test for two multivariate samples based on Hotelling's T^2 test.

Usage

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

Arguments

x

an object of class "LeveneT2".

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 multivariate variation in two samples in which data values are transformed into absolute deviations from their respective sample medians, and mean vectors of absolute deviations are compared using Hotelling's T^2 test. The argument x, invisibly, as for all print methods, is a list of class "LeveneT2". 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 the above information, the "long" output lists:

References

Curran, J. and Hersh, T. (2021). Hotelling: Hotelling's T^2 Test and Variants. R package version 1.0-8, https://CRAN.R-project.org/package=Hotelling.

Nel, D.G. and van de Merwe, C.A. (1986). A solution to the multivariate Behrens-Fisher problem. Comm. Statist. Theor. Meth., A15, 12, 3719-3736.

Examples

data(sparrows)
LeveneT2.sparrows <- LeveneT2(sparrows, group = Survivorship, level1 = "S",
                              var.equal = TRUE)
# Long output
print(LeveneT2.sparrows, long = TRUE)


[Package smsets version 1.2.3 Index]