factoran() vs EM Algorithm FA = fa() : Understanding the difference on carbig.mat in ...toolbox\stats\statsdemos
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
Could someone explain me the difference between Matlab built-in
factoran(x,k)
vs user-defined
EM algorithm fa(x,k)
-------------------------------?? ( code )
load carbig;
X = [Acceleration Displacement Horsepower MPG Weight];
X = X(all(~isnan(X),2),:);
lambda= factoran(X, 2)
and
lambda2=fa(X,2) % from <http://www.mathworks.com/matlabcentral/fileexchange/28906-factor-analysis>
Specically I'd like to know why
factoran
outputs a (5*2) matrix of loadings with
size(X,1) = 120
whereas:
EM algorithm fa
outputs a (120*2) matrix of loadings matching my expectations, to the extent that for each data/variable i end up with a sensitivity of the factors.
Best,
0 Kommentare
Akzeptierte Antwort
Tom Lane
am 24 Jul. 2015
It sounds like you want the fifth output of factoran rather than the first.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dimensionality Reduction and Feature Extraction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!