="va">x</span>, <span class="va">trt</span><span class="op">)</span></span>
<span class="r-in"><span class="op">{</span></span>
<span class="r-in">    <span class="co"># fit propensity score model</span></span>
<span class="r-in">    <span class="va">propens.model</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://glmnet.stanford.edu/reference/cv.glmnet.html" class="external-link">cv.glmnet</a></span><span class="op">(</span>y <span class="op">=</span> <span class="va">trt</span>,</span>