Hi, I'm all new to Stata and PCA.
Today I have done the PCA with 29 variables, where I got out with 9 components.
I have tried with the following commands, but I don't think it worked and I did not understand the outcome I got...
pca (29 variables)
predict score1
xtile score1_cat = score1, nq(3)
From this I got a table where the values was quintile 1 = 4, quintile 2 = 3, quintile 3 = 3.
I'm very grateful if someone can offer help with the commands.
Thank you.
Today I have done the PCA with 29 variables, where I got out with 9 components.
I have tried with the following commands, but I don't think it worked and I did not understand the outcome I got...
pca (29 variables)
predict score1
xtile score1_cat = score1, nq(3)
From this I got a table where the values was quintile 1 = 4, quintile 2 = 3, quintile 3 = 3.
What do I type as commands from here to 1) get a scatterplot, and 2) get the results divided into tertiles?
I'm very grateful if someone can offer help with the commands.
Thank you.
Comment