I am working through the SAS Programming for R users e-Course and have reached the Linear Models section. The following is the code copied from the solution to the second exercise in this section, which is showing you how to use the STORE statement in various modelling procedures to store a model, followed by PROC PLM to make predictions based on your model: proc reg data=sp4r.bodyfat;
model weight = height neck chest;
store mymod;
run;quit;
proc plm restore=mymod;
score data=sp4r.newdata_bodyfat_reg out=sp4r.pred_newdata_bodyfat predicted;
run;
proc print data=sp4r.pred_newdata_bodyfat;
var weight height neck chest predicted;
run; Although I don't get any errors, the STORE statement does not appear to be working (I also don't get any notes in my log about the STORE statement). The end result is a table with the correct data from newdata_bodyfat_reg, but a column of missing predicted values. I have looked in my work library, and there is no mymod file, which I believe I should be able to see. I also tried saving it to a different library, with the same results. I also tried running the demo example which has similar code, but uses a different dataset. Although it works in the demo video, again I ended up with a column of missing predicted values and no visible binary model file. I am using SAS Studio 3.1 and SAS 9.4. This free course can be found here and the data can be found in Section 1.4. Thanks for your help, Amy
... View more