im()</a></code> function runs <strong>on-policy
simulation</strong> for contextual bandit algorithms using the Cram
method. It evaluates the statistical properties of policy value
estimates such as:</p>
<ul>
<li><strong>Empirical Bias on Policy Value</strong></li>
<li><strong>Average relative error on Policy Value</strong></li>
<li><strong>RMSE using relative errors on Policy Value</strong></li>
<li><strong>Empirical Coverage of Confidence Intervals</strong></li>
</ul>
<p>This is useful for benchmarking ban