CamDavidsonPilon / lifelines

Survival analysis in Python
lifelines.readthedocs.org
MIT License
2.34k stars 554 forks source link

Adjusted (weighted) Logrank test #662

Open prbndr opened 5 years ago

prbndr commented 5 years ago

Hi - great package, I really enjoy using it for survival analysis in Python!

Is there a possibility to implement an adjusted (weighted) logrank test to pair with the weighted KM curves?

Thanks!

CamDavidsonPilon commented 5 years ago

I think so - maybe shouldn't be too hard I think.

prbndr commented 5 years ago

That would be amazing! Thanks so much!

jonathan-taylor commented 2 years ago

Related perhaps. Is it possible to output the info used in computing the chi-squared in e.g. multivariate_logrank_test? Although covariance is rank deficient, looking at the (accumulated) values of observed and expected and their variance under H_0 can be informative for people who want to eyeball perhaps which level/levels have a big difference...