CamDavidsonPilon / lifelines

Survival analysis in Python
lifelines.readthedocs.org
MIT License
2.38k stars 560 forks source link

stratification in CoxTimeVaryingFitter #1614

Open andreatrivellahappymoney opened 6 months ago

andreatrivellahappymoney commented 6 months ago

when fitting a CoxTimeVaryingFitter with stratification, the attribute baselinesurvival of the fitted model does not distinguish between different strata. It would be very helpful to be able to access the underlying baselinesurvival for each strata (the same problem happens for baseline_cumulativehazard and baselinehazard)