residuals.efa: Extract residuals from an efa object

View source: R/residuals.efa.R

residuals.efaR Documentation

Extract residuals from an efa object

Description

Returns the residual correlation matrix of an efa_fit() or efa_mi() solution. Residuals are a pure extractor here; their diagnostics and a formatted display are part of summary.efa().

Usage

## S3 method for class 'efa'
residuals(object, type = c("raw", "standardized"), ...)

Arguments

object

a list of class efa. Output from efa_fit() or efa_mi().

type

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

...

Further arguments (currently unused).

Value

A numeric matrix of residual correlations.

Examples

efa <- efa_fit(test_models$baseline$cormat, n_factors = 3, N = 500)
residuals(efa)

EFAtools documentation built on Aug. 21, 2026, 5:16 p.m.