Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: Command "margin" after Cox Regression


From   "Weichle, Thomas" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Command "margin" after Cox Regression
Date   Wed, 26 Oct 2011 10:36:11 -0500

Hi Yuval,
The predict() option for -margins- specifies the response and the
response will be the default prediction that would be produced by 
-predict- after the underlying estimation command.  For -stcox-, the
default prediction is the hazard ratio.  

Based on your first margins command (margins, at(max_red=10) atmeans
predict(nohr)), it appears as though you are predicting the hazard since
you specified 'nohr' in the predict() option.

For your second margins command (margins, at(max_red=20) atmeans
predict(basesurv)), it appears as though you are receiving the error
message because you specified 'basesurv' in the predict() option.
Baseline survival is a function of time and not the beta coefficients. 

Tom Weichle
Math Statistician
Center for Management of Complex Chronic Care (CMC3)
Hines VA Hospital, Bldg 1, C202
708-202-8387 ext. 24261
[email protected] 

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index