hidden="true" tabindex="-1"></a><span class="fu">library</span>(personalized)</span></code></pre></div>
<p>In this simulation, the treatment assignment depends on covariates
and hence we must model the propensity score <span class="math inline">\(\pi(x) = Pr(T = 1 | X = x)\)</span>. In this
simulation we will assume that larger values of the outcome are
better.</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabin