% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/residuals.efa.R
\name{residuals.efa}
\alias{residuals.efa}
\title{Extract residuals from an efa object}
\usage{
\method{residuals}{efa}(object, type = c("raw", "standardized"), ...)
}
\arguments{
\item{object}{a list of class \code{efa}. Output from \code{\link[=efa_fit]{efa_fit()}} or \code{\link[=efa_mi]{efa_mi()}}.}

\item{type}{character. Which residuals to return. \code{"raw"} (default) returns
\code{orig_R - model_implied_R}; \code{"standardized"} returns the standardized
residuals (residuals divided by their standard errors), available only when
the object was fitted with bootstrap standard errors.}

\item{...}{Further arguments (currently unused).}
}
\value{
A numeric matrix of residual correlations.
}
\description{
Returns the residual correlation matrix of an \code{\link[=efa_fit]{efa_fit()}} or \code{\link[=efa_mi]{efa_mi()}}
solution. Residuals are a pure extractor here; their diagnostics and a
formatted display are part of \code{\link[=summary.efa]{summary.efa()}}.
}
\examples{
efa <- efa_fit(test_models$baseline$cormat, n_factors = 3, N = 500)
residuals(efa)
}
