The preceding section shows how you can use macro variables to facilitate performing postselection analysis by using other SAS procedures. An alternative approach is to use the STORE statement to save the results of the PROC GLMSELECT step in an item store. You can then use the PLM procedure to obtain a rich set of postselection analyses. The following statements show how you can use this approach to obtain the same LSMeans analyses as shown in section Macro Variables Containing Selected Models:
proc glmselect data=one; by byVar; class classVar; model y = classVar x1|x2|x3|x4|x5 @2 / selection=stepwise(stop=aicc); store out=glmselectStore; run; proc plm source=glmselectStore; lsmeans classVar; run;
The LSMeans analysis output for the first BY group is shown in Figure 49.17.
Figure 49.17: LS-Means Analysis Produced by PROC PLM