span><span class="op">)</span> <span class="op">*</span> <span class="va">p</span></span></span>
<span class="r-in"><span><span class="op">}</span></span></span>
<span class="r-in"><span><span class="fu">pAUC</span><span class="op">(</span><span class="va">x</span>, <span class="va">y</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] 0.008148148</span>
<span class="r-in"><span><span class="fu">pAUC</span><span class="op">(</span><span class="va">x</span