04-30-2014 01:50 PM
I have a data set (final) that I am trying to predict values from. I would like to predict writing score (write) from each permutation of math=70,90 and social studies (socst)=70,90.
My thoughts were to create a new data set with the desired math and social studies combos, concatenate the two, and then run proc reg with 95% CI (clb) to get the predicted values. However, while my combined data set has these values on my proc print, it has blanks for predicted values. Any idea what I'm doing wrong? Thank you!
*create new data set;
*join data sets'
set new final;
*use proc reg to get predicted writing scores;
proc reg data=final_pred1;
model write = math socst/clb;
proc print data=final_pred1;
04-30-2014 01:55 PM
You haven't requested that proc reg provide any output.
Use the outest option on proc reg to generate a data set with predicted values.