I am using Stata 12. My dataset contains around 50 categorical (ordinal) variables. I am trying to develop a scale. Since my variables are categorical, instead of Person Correlation I was trying to do polychoric correlation based principle components analysis. I typed .polychoric [varnames] and received output of correlation matrix and PCA output with Eigenvalues, proportion explained, etc- which are all fine. But, next I was trying to get screeplot and then do parallel analysis (by using .fapara command; I already downloaded the app). But when I gave the command .screeplot I received the following response:
screeplot only valid after manova, canon, ca, and estimation commands with
e(property) eigen
r(321);
Then I tried .polychoricpca command, but it also came up with the same response while trying screeplot.
Then I tried .pcamat r(R), n(sample size) command; which came up with the following response:
r(R) not positive (semi)definite
r(506)
Can anybody help me with the following queries:
1) What would be correct way of doing PCA with polychoric correlation matrix, i.e. the command?
2) Is it possible to obtain screeplot after doing the PCA? How?
3) Is it possible to do parallel analysis? How?
4) Please also educate me on the factor analysis as I will be doing that next.
Thanks.
screeplot only valid after manova, canon, ca, and estimation commands with
e(property) eigen
r(321);
Then I tried .polychoricpca command, but it also came up with the same response while trying screeplot.
Then I tried .pcamat r(R), n(sample size) command; which came up with the following response:
r(R) not positive (semi)definite
r(506)
Can anybody help me with the following queries:
1) What would be correct way of doing PCA with polychoric correlation matrix, i.e. the command?
2) Is it possible to obtain screeplot after doing the PCA? How?
3) Is it possible to do parallel analysis? How?
4) Please also educate me on the factor analysis as I will be doing that next.
Thanks.
Comment