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

\method{format}{efa_reliability}(x, digits = 3, ...)
}
\arguments{
\item{x}{An object of class \code{efa_reliability}.}

\item{digits}{Integer. The number of decimal places the coefficients are
rounded to. Default is 3.}

\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()} shows the reliability coefficients for the general factor and the
group factors, for a single group or for each group: the reliability
coefficients (omega total, omega hierarchical, and omega subscale, standardized
Cronbach's alpha, and the H index) and the common-variance indices (the explained
common variance, ECV, and the percent of uncontaminated correlations, PUC).
\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{
efa_mod <- efa_fit(test_models$baseline$cormat, N = 500, n_factors = 3,
                   estimator = "PAF", rotation = "promax")
rel <- efa_reliability(efa_mod)
rel

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

}
\seealso{
Other reliability coefficients:
\code{\link[=efa_reliability]{efa_reliability()}},
\code{\link[=efa_schmid_leiman]{efa_schmid_leiman()}}
}
\concept{reliability coefficients}
