kkholst / EventHistory.jl

Event History Analysis in Julia. Cox regression (right censoring+left truncation), ...
Other
11 stars 3 forks source link

Doubt on Standard Error #2

Closed piever closed 7 years ago

piever commented 7 years ago

Hi! Following this discussion I've decided to try and build a comprehensive package for survival analysis. I've started implementing Cox regression using a method which seems to be very similar to yours (computing negative log-likelihood, gradient and hessian and applying Newton-Raphson algorithm with backtracking) with Efron method for ties. I have a doubt on the computation of S.E. of the parameters: what I'd do is to use the Hessian of the parameter vector beta in the point of maximum likelihood to build a multivariate gaussian approximation and then use that gaussian approximation to get the S.E. In your code however this seems to be "Naive S.E" and you compute the actual "S.E." in a different way that I'm not sure I understand. Could you elucidate me on that?

Thanks in advance!

kkholst commented 7 years ago

The S.E. I report are the sandwich estimates. Both agrees if the model is correctly specified. Nice with some additional effort being put in to implementing survival analysis methods - perhaps some form of collaboration would make sense?

piever commented 7 years ago

Sure! Also somebody on the julialang forum expressed interest so I guess we can start a small collaboration. For the time being I think what's going on is the following:

One reasonable way to proceed would be for me to carry on with my plan (possibly using the same types as you do, for compatibility and better visualization) while you could continue with your roadmap (which except Efron method that I've implemented is non-overlapping with what I have). In the not so far future I think we can merge the two packages.

kkholst commented 7 years ago

Sounds great. Looking forward to discuss this further (please find my contact information from the link to my homepage on my github front page).