








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









STAT 530/J530 B.Habing Univ. of S.C. (^1)
STAT 530/J October 7 th^ , 2008
Instructor: Brian Habing Department of Statistics LeConte 203 Telephone: 803-777- E-mail: [email protected]
STAT 530/J530 B.Habing Univ. of S.C. (^2)
Principal Components Factor Analysis
To get the matrix of factor loadings Λ:
STAT 530/J530 B.Habing Univ. of S.C. (^3)
Why Not PC-FA?
PC-FA method ignores the error structure, this means:
You are not actually fitting the underlying model!
STAT 530/J530 B.Habing Univ. of S.C. (^4)
Principal Factor Factor Analysis
To get the matrix of factor loadings Λ:
B. Replace the ones on the diagonal with the R 2 for predicting that variable from the others.
STAT 530/J530 B.Habing Univ. of S.C. (^5)
STAT 530/J530 B.Habing Univ. of S.C. (^6)
Can we do even better?
What “new information” do we have after performing principal factor factor analysis?
STAT 530/J530 B.Habing Univ. of S.C. (^10)
How Many Factors?
Scree Plot: Take the number of factors corresponding to the last eigenvalue before they start to level off.
Tends to keep more than Kaiser.
STAT 530/J530 B.Habing Univ. of S.C. (^11)
How Many Factors?
Fixed % of Variance
A priori number of factors
Model Fits
Several significant loadings for each factor.
STAT 530/J530 B.Habing Univ. of S.C. (^12)
Significant Loadings? Judging loadings: ±0.3 Minimal ±0.4 More Important ±0.5 Practically Significant
Statisitcal Significance Rule of Thumb:
λ 0.722 0.512 0.384 0.298 0.210 0.
n 50 100 200 300 600 1000
STAT 530/J530 B.Habing Univ. of S.C. (^13)
Several?
Rule of Thumb:
A factor is reliable if it has 3 or more loadings of 0. 4 or more of 0.
Fewer loadings require n ≥ 300
STAT 530/J530 B.Habing Univ. of S.C. (^14)
Rotations
Orthogonal rotations are those that keep the factors orthogonal (perpendictular)
Varimax – Maximizes the sum of the variances of the squared loadings within columns. This tends to force each variable to load highly on as few factors as possible.
fact(bears,method="pca",maxfactors=2) $eigen.values [1] 4.317 0.378 0.147 0.096 0.
$method [1] "principal components - no rotation"
$loadings Factor1 Factor Head.L 0.945 0. Head.W 0.842 -0. Neck.G 0.961 -0. Length 0.939 0. Chest.G 0.954 0.
$communalities Head.L Head.W Neck.G Length Chest.G 0.924 0.988 0.926 0.940 0.
$importance Factor1 Factor variance explained 4.317 0. percent explained 0.863 0.
$residuals Min. 1st Qu. Median Mean 3rd Qu. Max. -0.047 -0.027 -0.020 -0.015 0.000 0.
fact(bears,method="pf",maxfactors=2) $eigen.values [1] 4.317 0.378 0.147 0.096 0.
$method [1] "principal factor - no rotation"
$loadings Factor1 Factor Head.L 0.937 0. Head.W 0.812 -0. Neck.G 0.955 -0. Length 0.931 0. Chest.G 0.948 0.
$communalities Head.L Head.W Neck.G Length Chest.G 0.901 0.793 0.919 0.914 0.
$importance Factor1 Factor variance explained 4.215 0. percent explained 0.843 0.
$residuals Min. 1st Qu. Median Mean 3rd Qu. Max. -0.024 -0.009 -0.002 -0.002 0.007 0.
fact(bears,method="iter",maxfactors=2,niter=36) $eigen.values [1] 4.317 0.378 0.147 0.096 0.
$method [1] "iterated principal factor - no rotation"
$loadings Factor1 Factor Head.L 0.929 -0. Head.W 0.785 0. Neck.G 0.968 0. Length 0.952 -0. Chest.G 0.942 0.
$communalities Head.L Head.W Neck.G Length Chest.G 0.871 0.658 0.977 1.000 0.
$importance Factor1 Factor variance explained 4.209 0. percent explained 0.842 0.
$residuals Min. 1st Qu. Median Mean 3rd Qu. Max. -0.003 -0.001 0.000 0.000 0.001 0.
Warning message: Convergence not achieved, difference of 0.00113 after 36 iterations.
fact(bears,method="iter",maxfactors=1) $eigen.values [1] 4.317 0.378 0.147 0.096 0.
$method [1] "iterated principal factor - no rotation"
$loadings Factor Head.L 0. Head.W 0. Neck.G 0. Length 0. Chest.G 0.
$communalities Head.L Head.W Neck.G Length Chest.G 0.872 0.608 0.925 0.855 0.
$importance Factor variance explained 4. percent explained 0.
$residuals Min. 1st Qu. Median Mean 3rd Qu. Max. -0.039 -0.018 -0.007 0.000 0.010 0.
subject<-c(1,0.44,0.41,0.29,0.33,0.25,1,0.35,0.35,0.32,0.33,1,0.16,0.19,
subnames<-c("French","English","History","Arithmetic","Algebra","Geometry") subcor<-matrix(0,ncol=6,nrow=6) subcor[lower.tri(subcor,diag=T)]<-subject subcor<-subcor+t(subcor) diag(subcor)<-rep(1,6) subcor [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1.00 0.44 0.41 0.29 0.33 0. [2,] 0.44 1.00 0.35 0.35 0.32 0. [3,] 0.41 0.35 1.00 0.16 0.19 0. [4,] 0.29 0.35 0.16 1.00 0.59 0. [5,] 0.33 0.32 0.19 0.59 1.00 0. [6,] 0.25 0.33 0.18 0.47 0.46 1.
fact(r=subcor) $eigen.values [1] 2.729 1.129 0.615 0.603 0.523 0.
$method [1] "iterated principal factor - no rotation"
$loadings Factor1 Factor [1,] 0.591 -0. [2,] 0.594 -0. [3,] 0.430 -0. [4,] 0.710 0. [5,] 0.696 0. [6,] 0.584 0.
$communalities [1] 0.490 0.408 0.355 0.621 0.558 0.
$importance Factor1 Factor variance explained 2.216 0. percent explained 0.369 0.
$residuals Min. 1st Qu. Median Mean 3rd Qu. Max. -0.030 -0.004 0.001 0.000 0.004 0.
fact(r=subcor,rotation="varimax") $eigen.values [1] 2.729 1.129 0.615 0.603 0.523 0.
$method [1] "iterated principal factor - varimax rotation"
$loadings Factor1 Factor [1,] 0.231 0. [2,] 0.321 0. [3,] 0.082 0. [4,] 0.769 0. [5,] 0.714 0. [6,] 0.572 0.
$communalities [1] 0.490 0.408 0.355 0.621 0.558 0.
$importance Factor1 Factor variance explained 1.592 1. percent explained 0.265 0.
$residuals Min. 1st Qu. Median Mean 3rd Qu. Max. -0.030 -0.004 0.001 0.000 0.004 0.