Skip to content

Commit

Permalink
Update kaplan_meier_fitter.py
Browse files Browse the repository at this point in the history
Replaced the dead link with a working one. Added extra comments.
  • Loading branch information
javadnoorb committed Mar 8, 2018
1 parent 2accef9 commit 54fa651
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lifelines/fitters/kaplan_meier_fitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def fit(self, durations, event_observed=None, timeline=None, entry=None, label='
return self

def _bounds(self, cumulative_sq_, alpha, ci_labels):
# See http://courses.nus.edu.sg/course/stacar/internet/st3242/handouts/notes2.pdf
# This method calculates confidence intervals using the exponential Greenwood formula.
# See https://www.math.wustl.edu/%7Esawyer/handouts/greenwood.pdf

alpha2 = inv_normal_cdf((1. + alpha) / 2.)
df = pd.DataFrame(index=self.timeline)
v = np.log(self.__estimate.values)
Expand Down

0 comments on commit 54fa651

Please sign in to comment.