As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tips:Getting Model Statistics into SAS data set from PROC LOGISTIC

From sasCommunity
Jump to: navigation, search

PROC LOGISTIC does not have an inbuilt option to output the model statistics into a SAS dataset. To achieve this, one can use ODS OUTPUT destination. Below is an example of this destination using the stepwise logistic model example from SAS help to write the contents of the ASSOCIATION output object to the data set WORK.DATA1.

   ods output  Association = data1;
   title 'Stepwise Regression on Cancer Remission Data';
   proc logistic data=Remission outest=betas covout;
      model remiss(event='1')=cell smear infil li blast temp
                   / selection=stepwise
                     slentry=0.3
                     slstay=0.35
                     details
                     lackfit;
      output out=pred p=phat lower=lcl upper=ucl
             predprob=(individual crossvalidate);
   run;
   ods output close;

Submitted by Murphy Choy. Contact me at my Discussion Page.