Skip to content
Prev 278036 / 398506 Next

Cox proportional hazards confidence intervals

On Nov 21, 2011, at 05:50 , David Winsemius wrote:

            
Well, it is an annoying inconsistency, but one that happens all over the place. 

Consider the single binomial sample: Most applied statistics textbooks teach the students to calculate the error margin for a CI as 1.96*sqrt(phat*(1-phat)/n), but the cutoff for testing p=p0 uses 1.96*sqrt(p0*(1-p0)/n). This will (and does) give rise to situations where the test and the CI disagrees. 

It is fixable by using the error margins at the upper and lower confidence limits, but it leads to nonlinear equations that you'd rather not inflict on students. (For the binomial sample it's a quadratic equation and prop.test actually uses it.)

I'd just leave it, and, if anyone complains, put in a note to the effect that "the slight inconsistency between p-value and CI is due to different large-sample approximations".