07-19-2017 10:56 AM
Please describe what you mean by 'out of sample'?
Do you mean to apply the model from Proc Phreg to a different data set? This is scoring. You can use the STORE option to save the Phreg information and then Proc PLM to score the data pointing to that saved information.
An example using Proc Mixed from the online help, replace the Proc Mixed code with your proc (though I suggest saving the store information into a different permanent library than SASUSER ) and then point to your store and other data set in the proc Proc Plm Score statement. The Show and LSMEANS are just from the example an you likely don't need them.
proc mixed data=MyBigDataSet; class Env A B sub; model y = A B x / ddfm=KenwardRoger; random int A*B / sub=Env; repeated / subject=Env*A*B type=AR(1); store sasuser.mixed; run; proc plm restore=sasuser.mixed; show cov Parms; lsmeans A B / diff; score data=NewData out=ScoreResults; run;
07-20-2017 07:34 AM