an class="op">)</span></span>
<span class="r-in"></span>
<span class="r-in"><span class="co"># IPTW KM using WeightIt on imputed data</span></span>
<span class="r-in"><span class="va">adj</span> <span class="op">&lt;-</span> <span class="fu">adjustedsurv</span><span class="op">(</span>data<span class="op">=</span><span class="va">mids</span>,</span>
<span class="r-in">                    variable<span class="op">=</span><span class="st">"group"</span>,</span>
<span class="r-in">                    ev_time<s