print.BoxM.F {smsets} | R Documentation |
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 class 'BoxM.F'
print(x, long = FALSE, ...)
Arguments
x |
an object of class BoxM.F |
long |
a logical variable indicating whether a long output is desired
( |
... |
further arguments passed to or from other methods. |
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.
Examples
data(skulls)
resBoxM.F <- BoxM.F(skulls, Period)
# Long output
print(resBoxM.F, long = TRUE)