hi
I'm generating predicted probabilities of death from different multivariable models, as inputs to average attributable fraction calculation described here (http://www.biomedcentral.com/1471-2288/9/7/).
I'm choosing between logistic, Cox (stcox), and Poisson regression models, and I'm leaning towards Cox because it's faster and I use it to estimate relative risk rather than odds ratios.
However the models produce slightly different predicted probabilities, with the logistic model predicting higher probabilities than the Cox model, as shown in the graph below. Also the sum of Cox predicted probabilities slightly exceed the total observed number of deaths (e.g. 265 observed deaths versus 265.14 as sum of Cox predicted p).
Which model prediction is more accurate?
Thanks
Dannie
*** Logistic
logistic death $factors, or
predict p_logistic
*** Modified Poisson with robust error variance
glm death $factors, fam(poisson) link(log) nolog vce(robust) eform
predict p_poisson
*** Cox, ref. Cummings 2009. Stata Journal 9(2): 175
gen time = 1
stset time, failure(death)
cap drop basesurv
stcox $factors, hr breslow vce(robust) nolog basesurv(basesurv)
cap drop xb
cap drop p_cox
qui predict xb, xb
qui gen p_cox = 1 - (basesurv^exp(xb))
I'm generating predicted probabilities of death from different multivariable models, as inputs to average attributable fraction calculation described here (http://www.biomedcentral.com/1471-2288/9/7/).
I'm choosing between logistic, Cox (stcox), and Poisson regression models, and I'm leaning towards Cox because it's faster and I use it to estimate relative risk rather than odds ratios.
However the models produce slightly different predicted probabilities, with the logistic model predicting higher probabilities than the Cox model, as shown in the graph below. Also the sum of Cox predicted probabilities slightly exceed the total observed number of deaths (e.g. 265 observed deaths versus 265.14 as sum of Cox predicted p).
Which model prediction is more accurate?
Thanks
Dannie
*** Logistic
logistic death $factors, or
predict p_logistic
*** Modified Poisson with robust error variance
glm death $factors, fam(poisson) link(log) nolog vce(robust) eform
predict p_poisson
*** Cox, ref. Cummings 2009. Stata Journal 9(2): 175
gen time = 1
stset time, failure(death)
cap drop basesurv
stcox $factors, hr breslow vce(robust) nolog basesurv(basesurv)
cap drop xb
cap drop p_cox
qui predict xb, xb
qui gen p_cox = 1 - (basesurv^exp(xb))
Comment