Learn R Programming

smsets (version 2.0.0)

print.OnewayMANOVA: Prints a one-way MANOVA with extra information

Description

Prints the results produced by the OnewayMANOVA function

Usage

# S3 method for OnewayMANOVA
print(
  x,
  test = c("Pillai", "Wilks", "Hotelling-Lawley", "Roy"),
  long = FALSE,
  ...
)

Value

Displays the results of a One-way MANOVA, i.e., the test of the difference of mean vectors among the levels of a single factor with respect to p response variables. The argument x, invisibly, as for all print methods, is a list of class "OnewayMANOVA". This print method provides two sorts of output depending on whether the long argument is TRUE or FALSE (the default). The "short" output displays:

  • A heading describing the function.

  • The data frame analyzed.

  • The variables involved in the calculation of distances.

  • The factor defining the populations or samples and their levels.

  • The One-way MANOVA table specifying the test chosen for the F-test approximation, like in summary.manova.

In addition to the above information, the "long" output lists:

  • The Between-Sample Sum of Squares and Crossed Products matrix, B

  • The Within-Sample Total Sum of Squares and Crossed Products matrix, W.

  • The Total Sample Sum of Squares and Crossed Products matrix, T.

Arguments

x

An object of class OnewayMANOVA.

test

The name of the test statistic to be used (the four tests implemented in summary.manova). Pillai's test is the default. Partial matching is used so the name can be abbreviated.

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.

Examples

Run this code
data(skulls)
res.MANOVA <- OnewayMANOVA(skulls, group = Period)
# Long output, Wilks' test
print(res.MANOVA, test = "Wilks", long = TRUE)

Run the code above in your browser using DataLab