Skip to content

Commit

Permalink
fix-math-rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Feb 4, 2019
1 parent d84384f commit 606bcd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Survival analysis with lifelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,11 @@ Fitting to a Weibull model
Another very popular model for survival data is the Weibull model. In contrast the the Nelson-Aalen estimator, this model is a *parametric model*, meaning it has a functional form with parameters that we are fitting the data to. (The Nelson-Aalen estimator has no parameters to fit to). Mathematically, the survival function looks like:


..math:: S(t) = \exp\left(-(\lambda t)^\rho\right), \lambda >0, \rho > 0,
.. math:: S(t) = \exp\left(-(\lambda t)^\rho\right), \lambda >0, \rho > 0,

* A priori*, we do not know what :math:`\lambda` and :math:`\rho` are, but we use the data on hand to estimate these parameters. In fact, we actually model and estimate the cumulative hazard rate instead of the survival function (this is different than the Kaplan-Meier estimator):

..math:: H(t) = (\lambda t)^\rho, \lambda >0, \rho > 0,
.. math:: H(t) = (\lambda t)^\rho, \lambda >0, \rho > 0,

In lifelines, estimation is available using the ``WeibullFitter`` class. The ``plot`` method will plot the cumulative hazard.

Expand Down

0 comments on commit 606bcd6

Please sign in to comment.