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.


Difference between revisions of "Tip of the Day:September 7"

From sasCommunity
Jump to: navigation, search
m (Scheduled Creating a SAS Data Set with Another Operating Systems Data Representation)
(Scheduled Getting Model Statistics into SAS data set from PROC LOGISTIC)
 
Line 5: Line 5:
 
sasCommunity Tip of the Day
 
sasCommunity Tip of the Day
 
</h1><div style="padding:10px;">
 
</h1><div style="padding:10px;">
{{Tips:Creating a SAS Data Set with Another Operating Systems Data Representation}}
+
{{Tips:Getting Model Statistics into SAS data set from PROC LOGISTIC}}
 
<div style="width:100%"><hr></div>
 
<div style="width:100%"><hr></div>
Feel free to [[Tips Talk:Creating a SAS Data Set with Another Operating Systems Data Representation|comment]] on this tip.
+
Feel free to [[Tips Talk:Getting Model Statistics into SAS data set from PROC LOGISTIC|comment]] on this tip.
 
</div>
 
</div>
 
</td></tr>
 
</td></tr>

Latest revision as of 20:53, 29 August 2010

sasCommunity Tip of the Day

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.



Feel free to comment on this tip.


Prior tip - Next tip - Random Tip

Submit a Tip