plot_ceac
report.plot_ceac(ceac_df, *, ceaf_df=None, ax=None)Cost-effectiveness acceptability curves, optionally with the frontier.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ceac_df | pd.DataFrame | Output of heormodel.cea.ceac. |
required |
| ceaf_df | pd.DataFrame | None | Optional output of heormodel.cea.ceaf; drawn as a bold trace over the optimal intervention’s curve. |
None |
| ax | Axes | None |
Existing axes to draw on. | None |
Example
import pandas as pd from heormodel.cea import ceac from heormodel.models import Outcomes from heormodel.report import plot_ceac c = pd.DataFrame({“A”: [0.0, 0.0], “B”: [5.0, 5.0]}) e = pd.DataFrame({“A”: [0.0, 0.0], “B”: [1.0, -1.0]}) curve = ceac(Outcomes.from_wide(c, e), wtp=[0.0, 10.0, 20.0]) ax = plot_ceac(curve) ax.get_ylabel() ‘Probability cost-effective’