Learn R Programming

smsets (version 2.0.0)

print.BoxM.F: Prints Box'M test based on an F-statistic

Description

Prints the results produced by BoxM.F function, with the option to display the matrices involved in the calculations

Usage

# S3 method for BoxM.F
print(x, long = FALSE, ...)

Value

Displays the results of Box's M test for homogeneity of covariance matrices, based on the F-approximation computed by the BoxM.F

function. The argument x, invisibly, as for all print methods, is a list of class "BoxM.F". 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 analysis.

  • The data frame analyzed.

  • The variables used for the test.

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

  • The value of the Box's M statistic, the corresponding approximate F-statistic, the degrees of freedom for the numerator and the denominator of the F-statistic, and the p-value.

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

  • The covariance matrix for each sample.

  • The pooled covariance matrix.

Arguments

x

an object of class BoxM.F

long

a logical variable indicating whether a long output is desired (TRUE) or not (FALSE, the default). The long output shows the covariance matrix for each group and the pooled covariance matrix.

...

further arguments passed to or from other methods.

Examples

Run this code
data(skulls)
resBoxM.F <- BoxM.F(skulls, Period)
# Long output
print(resBoxM.F, long = TRUE)

Run the code above in your browser using DataLab