Learn R Programming

EFAtools (version 1.1.0)

residuals.efa: 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 efa
residuals(object, type = c("raw", "standardized"), ...)

Value

A numeric matrix of residual correlations.

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).

Examples

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

Run the code above in your browser using DataLab