How to solve an error of iteration limit on varimax rotation exceed?
Afficher commentaires plus anciens
Hello All,
I have a problem with my script to run Principal Component Analysis. The problem is when doing loadings rotation using varimax method. There was an error that iteration limit exceed. For some data it works but some did not. My script is below. Please let me know if there is anything wrong in my script.
================================================================================
%To perform principal components analysis with standardized variables, that is,
%based on correlations, use princomp(zscore(X)). It will generate
%coefficient (eigenvectors and eigenvalues)
[eVc,Sc,eVl] = princomp(zscore(FV));
%compute total variance
T_Var =(eVl./sum(eVl))*100;
%compute component loadings
%Loadings (CL) = eigenvectors.sqrt(eigenvalues)
for i = 1 : size (eVc,2);
CL(:,i) = eVc(:,i).*sqrt(eVl(i));
end
%rotate component loadings using Varimax rotation
%(:,1:2) only display the rotated loadings for all rows and the first two columns
RCL = rotatefactors(CL(:,1:2),'Method','varimax');
==================================================================================
Thank you.
Best,
Dini
Réponses (1)
Walter Roberson
le 17 Déc 2015
0 votes
Try passing a 'MaxIter', 1000 option and see if it helps.
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!