% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/print.efa_bartlett.R
\name{print.efa_bartlett}
\alias{print.efa_bartlett}
\alias{format.efa_bartlett}
\title{Print and format an efa_bartlett object}
\usage{
\method{print}{efa_bartlett}(x, ...)

\method{format}{efa_bartlett}(x, ...)
}
\arguments{
\item{x}{An object of class \code{efa_bartlett} (output from \code{\link[=efa_bartlett]{efa_bartlett()}}).}

\item{...}{Not used; for consistency with the generic.}
}
\value{
\code{print()} returns its argument \code{x} invisibly. \code{format()} returns a
character vector with the report lines.
}
\description{
\code{print()} reports the outcome of \code{\link[=efa_bartlett]{efa_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. \code{format()} assembles the same report and
returns it as a character vector; \code{print()} is \code{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
\code{\link[cli:ansi_strip]{cli::ansi_strip()}}).
}
\examples{
bart <- efa_bartlett(test_models$baseline$cormat, N = 500)
bart

# format() returns the same lines as a character vector:
writeLines(format(bart))

}
