def test_power_under_cph():
    assert abs(stats.power_under_cph(12,12, 0.8, 0.2, 0.139) - 0.744937) < 10e-6
    assert abs(stats.power_under_cph(12,20, 0.8, 0.2, 1.2) - 0.05178317) < 10e-6
dataset/ETHPy150Open CamDavidsonPilon/lifelines/tests/test_statistics.py/test_power_under_cph/original