print.BARTLETT: Print and format a BARTLETT object
Description
print() reports the outcome of BARTLETT()'s test of sphericity: a verdict
on whether the test was significant (and what that implies for the suitability
of the data for factor analysis), followed by the chi-square statistic, its
degrees of freedom, and the p-value. format() assembles the same report and
returns it as a character vector; print() is cat(format(x), sep = "\n").
The lines follow the active console theme, so they are plain when colours are
disabled (for example when captured into a file or stripped with
cli::ansi_strip()).
Usage
# S3 method for BARTLETT
print(x, ...)
# S3 method for BARTLETT
format(x, ...)
Value
print() returns its argument x invisibly. format() returns a
character vector with the report lines (styled to the active console theme;
plain when colours are disabled).
Arguments
x
An object of class BARTLETT (output from BARTLETT()).