pfa: Principal Factors Analysis (Principal Axis Factoring)

Description Usage Arguments Value

View source: R/PCAandFA.R

Description

This implements the original factor analysis method, principal axis factoring. The only augmentation besides rotation of the loadings is shrinkage can be used to acheive a more numerically stable fit, particuarly under high dimensional settings. When n < p it is switched on automatically.

Usage

1
2
3
4
5
6
7
8
9
pfa(
  Y,
  nfac = min(nrow(Y) - 3, ncol(Y) - 2),
  rotate = Varimax,
  scale = T,
  corr = c("pearson", "robust", "spearman"),
  max.iter = 4000,
  tol = 1e-12
)

Arguments

Y

a numeric matrix or data frame of only numeric variables.

nfac

the number of factors to attempt to extract.

rotate

a rotation function from the GPArotation package. Defaults to Varimax.

scale

should the variables be scaled prior to analysis? Defaults to TRUE.

corr

one of "pearson", "robust", or "spearman".

max.iter

maximum number of iterations. defaults to 4000.

tol

a tolerance value for convergence. defaults to 1e-12.

shrink

if TRUE, the adaptive non-linear shrinkage method from the covShrink function is used. It is used regardless of the setting here if n < p.

Value

a factanal object


abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.