How to solve an error of iteration limit on varimax rotation exceed?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (1)
Walter Roberson
el 17 de Dic. de 2015
Try passing a 'MaxIter', 1000 option and see if it helps.
2 comentarios
Ver también
Categorías
Más información sobre Dimensionality Reduction and Feature Extraction en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!