Error massage in Factor analysis using FACTORAN

Hi, I am doing factor analysis in Matlab using factoran. I have 5 variables and considering initial eigen value criterion (eig>1) to extract significant factors. My data shows, I need to extract 3 factors. I am using following matlab code:
[Lambda,Psi] = factoran(data,3,'normalize',0) % data is already normalized
However, its giving following error massage,
"The number of factors requested, M, is too large for the number of the observed variables."
i went to the factoran code in matlab and says, to analyze data with factoran code, following conditions need to be satisfied:
(m < d) and (df > 0)
where m= number of factors= 3 (my case) d = number of variables = 5 df= .5*((d-m)^2 - (d+m));
putting our values give df = -2 (violation of the condition 2)
My understanding of factor analysis says that, I can extract up to 5 factors sicne I have 5 variables (number of factors = number of variables). I am just wondering whether there is a bug in the code or I am doing anything wrong. Please help>
Thanks

回答(1 个)

I understand that degrees of freedom should be positive number but I did not get why is df = ((d - m)^2 - (d + m)) / 2 ?

类别

帮助中心File Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by