powered by
Performs Factor Analysis using Principal Component Analysis (PCA) to extract factors and loadings.
FA(X, r)
A list containing:
The estimated factors matrix of dimension \(T \times r\).
The estimated factor loadings matrix of dimension \(N \times r\).
The observation data matrix of dimension \(T \times N\).
The number of factors to estimate.
Jiaqi Hu
Bai, J., & Ng, S. (2002). Determining the number of factors in approximate factor models. Econometrica, 70(1), 191-221.
X <- matrix(rnorm(100*20), 100, 20) res <- FA(X, r = 2) head(res$F) head(res$L)
Run the code above in your browser using DataLab