nmb

cea.nmb(outcomes, wtp, *, effect=None)

Net monetary benefit per iteration and intervention: wtp * effect - cost.

Parameters

Name Type Description Default
outcomes Outcomes Outcomes from a probabilistic sensitivity analysis. required
wtp float Willingness to pay per unit of effect. required
effect str | None Effect column (default: the primary effect). None

Returns

Name Type Description
pd.DataFrame DataFrame (iterations x interventions) of NMB values.

Example

import pandas as pd from heormodel.models import Outcomes from heormodel.cea import nmb c = pd.DataFrame({“A”: [100.0]}) e = pd.DataFrame({“A”: [0.01]}) float(nmb(Outcomes.from_wide(c, e), wtp=50_000)[“A”][0]) 400.0