lifelines
lifelines copied to clipboard
Survival analysis in Python
Hello! The [`KaplanMeierFitter.fit_interval_censoring`](https://github.com/CamDavidsonPilon/lifelines/blob/master/lifelines/fitters/kaplan_meier_fitter.py#L229) function has a few lines commented-out regarding setting `self.confidence_interval_survival_function_`, and correspondingly its output is incomplete. I am noting a requirement that would make this function's interface compatible...
### Discussed in https://github.com/CamDavidsonPilon/lifelines/discussions/1492 Originally posted by **sebastiaanvaneijk** February 7, 2023 Hi all, Can someone enlighten me why e.g. the WeibullAFTFitter().predict_expectation() function does not have the parameter conditional_after? When using...
There is error regarding to input dimensions of GeneralizedGammaRegressionFitter. See this example; ``` from lifelines import GeneralizedGammaRegressionFitter from lifelines.datasets import load_regression_dataset regression_dataset = load_regression_dataset() ggr = GeneralizedGammaRegressionFitter() ggr.fit_intercept = True...
An error occurred when I calculated a concordance index of prediction of a Weibullfitter model. How should I calculate concordance index correctly? Here is the code. ``` data = data.reset_index()[["event",...
https://github.com/CamDavidsonPilon/lifelines/blob/d2804409571ee9011fb560401633e7dc430d3f19/lifelines/fitters/breslow_fleming_harrington_fitter.py#L75
Bugs were found in the previous coxph_fitter.py file that resulted in incorrect calculation of baseline hazard and cumulative baseline hazard. The current commit has corrected the bugs and should generate...
Following the conversation on https://github.com/CamDavidsonPilon/lifelines/issues/188 Thought I'd create this issue so it can be tracked and a solution can be found. It would be awesome if we can figure out...
Update lambda in agg() to return a scalar, so that agg() returns a pd.Series instead of a pd.DataFrame, as is expected by downstream logic.
I was fitting the Generalized Gamma in my survival data, however, one hour later, the code was still running and it didn't converge. So, I gave up and stopped the...
Getting this message using Windows 11 Python 3.12.1 lifelines: 0.28.0 ``` \Lib\site-packages\lifelines\utils\__init__.py:682: FutureWarning: The behavior of 'isin' with dtype=datetime64[ns, UTC] and castable values (e.g. strings) is deprecated. In a future...