Hi,
I am having some problem in trying to understand the difference between two parameterizations of the cox regression
Please could you show me how I can obtain the results presented in
from the model presented in
I understand that using # and ## is the same model but reparameterise differently. However, I cannot understand how I can obtain the estimates that are presented in the model # using the model estimates ##
Basically, I would like to know how I can obtain the effect of years of education amongst drinks and non drinks. I think this is what the model
. However, I don't understand how I can derive those results from the model
Thank you in advance for your help
Andrew
I am having some problem in trying to understand the difference between two parameterizations of the cox regression
Code:
use https://www.stata.com/data/jwooldridge/eacsap/recid, clear gen fail = 1 - cens stset durat, failure(fail) stcox i.alcohol##c.educ, base margins i.alcohol, at(educ=(0)) margins i.alcohol, at(educ=(1)) stcox i.alcohol#c.educ, base
Please could you show me how I can obtain the results presented in
Code:
stcox i.alcohol#c.educ, base
--------------------------------------------------------------------------------
_t | Haz. ratio Std. err. z P>|z| [95% conf. interval]
---------------+----------------------------------------------------------------
alcohol#c.educ |
0 | .9840041 .0166281 -0.95 0.340 .9519475 1.01714
1 | 1.011573 .0186091 0.63 0.532 .9757497 1.048712
--------------------------------------------------------------------------------
Code:
stcox i.alcohol##c.educ, base
--------------------------------------------------------------------------------
_t | Haz. ratio Std. err. z P>|z| [95% conf. interval]
---------------+----------------------------------------------------------------
alcohol |
0 | 1 (base)
1 | .7489855 .2760267 -0.78 0.433 .3637279 1.542305
|
educ | .9757365 .0194557 -1.23 0.218 .9383395 1.014624
|
alcohol#c.educ |
1 | 1.057145 .0389876 1.51 0.132 .9834275 1.136389
--------------------------------------------------------------------------------
Basically, I would like to know how I can obtain the effect of years of education amongst drinks and non drinks. I think this is what the model
Code:
stcox i.alcohol#c.educ, base
Code:
stcox i.alcohol##c.educ, base
Andrew

Comment