FA: Factor analysis

Description Usage Arguments Details Value See Also Examples

View source: R/fa.R

Description

FA performs common factor analysis

Usage

1
FA(data, nfactors = NULL, rotate = "none", fm = "pa", digits = 2, ...)

Arguments

data

a data frame or correlation matrix.

nfactors

nuber of factors to extract.

rotate

factor rotation to perform.

fm

type of factor extraction.

digits

number of digits to retain.

...

parameters passed to the psych::fa function.

Details

The FA function is a wrapper for the psych:fa function. Factor extractions include principal axis (pa) and maximum likelihood (ml), among others. Factor rotations include none, varimax, and promax.

Value

returns a list with 5 components:

call

the call

loadings

factor pattern

variance

variance accounted for

Structure

structure matrix

phi

factor intercorrelations for oblique rotations

scores

factor scores if factors are extracted from a data frame

See Also

PCA, plot.factorAnalysis, score, and scree_plot.

Examples

1
2
3
fit.fa <- FA(Harman74.cor$cov, nfactors=4, rotate="varimax")
plot(fit.fa)
plot(fit.fa, type="bar")

Rkabacoff/qacr documentation built on March 20, 2021, 3:03 p.m.