cleverly.MonteCarloWarning#

exception cleverly.MonteCarloWarning[source]#

The simulation error is a large share of a parametric g-formula interval.

The parametric g-formula evaluates its estimand by simulating n_draws histories per unit. The interval already includes that error. A share above the warning threshold says that more draws narrow the interval at no cost in bias. result.simulation.monte_carlo_share holds the share of each parameter.