Skip to content

Commit

Permalink
adding citation link on docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jun 14, 2018
1 parent f3d69a6 commit a72d1f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/index.rst
Expand Up @@ -49,6 +49,13 @@ Source code and Issue Tracker
Available on Github, `CamDavidsonPilon/lifelines <https://github.com/CamDavidsonPilon/lifelines/>`_
Please report bugs, issues and feature extensions there. We also have `Gitter channel <https://gitter.im/python-lifelines/Lobby>`_ open to discuss lifelines:

Citing lifelines
------------------------------

The following link will bring you to a page where you can find the latest citation for lifelines:

`Citation for lifelines <http://doi.org/10.5281/zenodo.1252342>`_


Indices and tables
==================
Expand Down
2 changes: 1 addition & 1 deletion lifelines/fitters/coxph_fitter.py
Expand Up @@ -573,7 +573,7 @@ def predict_expectation(self, X):
return pd.DataFrame(trapz(v.values.T, v.index), index=subjects)

def _compute_baseline_hazard(self, data, durations, event_observed, name):
# http://courses.nus.edu.sg/course/stacar/internet/st3242/handouts/notes3.pdf
# https://stats.stackexchange.com/questions/46532/cox-baseline-hazard
ind_hazards = self.predict_partial_hazard(data)
ind_hazards['event_at'] = durations.values
ind_hazards_summed_over_durations = ind_hazards.groupby('event_at')[0].sum().sort_index(ascending=False).cumsum()
Expand Down

0 comments on commit a72d1f4

Please sign in to comment.