pfa | R Documentation |
Program pfa
performs (iterative) principal factor analysis, which
is based on the computation of eigenvalues of the reduced correlation matrix.
pfa(X, option = "data", m = 2, initial.communality = "R2", crit = 0.001, verbose = FALSE)
X |
A data matrix or correlation matrix |
option |
Specifies the type of matrix supplied by argument
|
m |
The number of factors to extract (2 by default) |
initial.communality |
Method for computing initial
communalites. Possibilities are |
crit |
The criterion for convergence. The default is
|
verbose |
When set to |
Res |
Matrix of residuals |
Psi |
Diagonal matrix with specific variances |
La |
Matrix of loadings |
Shat |
Estimated correlation matrix |
Fs |
Factor scores |
Jan Graffelman (jan.graffelman@upc.edu)
Mardia, K.V., Kent, J.T. and Bibby, J.M. (1979) Multivariate analysis.
Rencher, A.C. (1995) Methods of multivriate analysis.
Satorra, A. and Neudecker, H. (1998) Least-Squares Approximation of off-Diagonal Elements of a Variance Matrix in the Context of Factor Analysis. Econometric Theory 14(1) pp. 156–157.
princomp
X <- matrix(rnorm(100),ncol=2)
out.pfa <- pfa(X)
# based on a correlation matrix
R <- cor(X)
out.pfa <- pfa(R,option="cor")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.