Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

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


From   "Weichle, Thomas" <Thomas.Weichle@va.gov>
To   <statalist@hsphsun2.harvard.edu>
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
Thomas.Weichle@va.gov 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index