fa_residuals: Find residuals on case-level basis for all indicators in a...

View source: R/factor_analysis.R

fa_residualsR Documentation

Find residuals on case-level basis for all indicators in a factor analysis.

Description

Extracts the first factor, then uses the factor scores to predict the indicator values for each indicator and for each case. Returns a data.frame with residuals.

Usage

fa_residuals(data, standardize = T, ...)

Arguments

data

(data.frame) The data.

standardize

(log scalar) Whether to standardize the residuals (default true). If not done, they may not have the same standard deviation.

...

(arguments to fa) Further arguments to fa.

Examples

fa_residuals(iris[-5])

Deleetdk/kirkegaard documentation built on April 22, 2024, 5:22 p.m.