How to solve an error of iteration limit on varimax rotation exceed?

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)

Try passing a 'MaxIter', 1000 option and see if it helps.

2 commentaires

'MaxIter' or ' maxit? I have tried 'maxit',1000 it did not work
Hello Walter, thanks! Just now it works with maxit 1500 or more.

Connectez-vous pour commenter.

Catégories

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by