Skip to content

Commit

Permalink
error in code block
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jul 22, 2017
1 parent afa3aac commit e3afb6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ Suppose you wish to measure the hazard ratio between two populations under the C
H0: relative hazard ratio = 1 vs H1: relative hazard ratio != 1, where the relative hazard ratio is :math:`\exp{\left(\beta\right)}` for the experiment group vs the control group. Apriori, we are interested in the sample sizes of the two groups necessary to achieve a certain statistical power. To do this in lifelines, there is the ``lifelines.statistics.sample_size_necessary_under_cph`` function. For example:

.. code-block:: python
from lifelines.statistics import sample_size_necessary_under_cph
desired_power = 0.8
Expand All @@ -405,6 +406,7 @@ Suppose you wish to measure the hazard ratio between two populations under the C


.. code-block:: python
from lifelines.statistics import power_under_cph
n_exp = 50
Expand Down

0 comments on commit e3afb6f

Please sign in to comment.