Hi there! I hope you can help me out with my problem. This is for my project in school. After conducting a survey, I performed Principal Component Analysis on the variables (survey questions) to reduce their count. I used PROC PRINCOMP to obtain the principal components. Before I can use the principal components I chose to retain in logistic regression, I need to predict their values first. I tried using PROC SCORE but somehow I could not make it work. It worked with STATA when I used the command "predict <principal components>, score". I wonder if there is a similar statement or function in SAS to produce the same output? Thank you very much! These are my code so far for your reference. 😄 /*----------for PCA---------*/ PROC PRINCOMP DATA=Data OUT=prin; VAR v1 v2 v3 v4 v5 v6 v7 v8 v9 v10; RUN; /*----this part does not work (for predicting)-----*/ PROC SCORE DATA=Data SCORE=print OUT=newdata PREDICT; VAR prin1 prin2; RUN;

... View more