We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26eb285 commit ffeb6adCopy full SHA for ffeb6ad
lifelines/tests/test_suite.py
@@ -429,14 +429,6 @@ def test_kmf_left_censorship_stats(self):
429
kmf = KaplanMeierFitter()
430
kmf.fit(T, C, left_censorship=True)
431
432
- def test_conditional_time_to(self):
433
- T = np.random.exponential(1, 5000)
434
- v = np.log(2)
435
- kmf = KaplanMeierFitter()
436
- kmf.fit(T)
437
- life_expectancy = kmf.conditional_time_to()
438
- assert (life_expectancy.ix[0] - v) < 0.01
439
-
440
def kaplan_meier(self, censor=False):
441
km = np.zeros((len(list(self.lifetimes.keys())), 1))
442
ordered_lifetimes = np.sort(list(self.lifetimes.keys()))
0 commit comments