single_draw

params.single_draw(values)

Wrap one named set of parameter values as a one-row draw matrix.

The row’s iteration index is 0, so the result flows straight into heormodel.run.run_psa for a base-case (deterministic) run alongside the probabilistic analysis.

Parameters

Name Type Description Default
values Mapping[str, float] Parameter names mapped to point values, for example a ParameterSet.means result or a set of published base-case estimates. required

Returns

Name Type Description
pd.DataFrame DataFrame with one row, a RangeIndex named "iteration" (value
pd.DataFrame 0), and one column per parameter.

Example

from heormodel.params import single_draw single_draw({“p_die”: 0.1, “cost”: 1000.0}).shape (1, 2)