s="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">ef_fun</span><span class="op">(</span></span>
<span>  <span class="va">ef</span>,</span>
<span>  type <span class="op">=</span> <span class="st">"logistic"</span>,</span>
<span>  x <span class="op">=</span> <span class="fl">1</span><span class="op">:</span><span class="fu"><a href="https://rdrr.io/r/base/length.html" class="external-link">length</a></span><span class="op">(</span><span class="va">ef</span><span class="op">)</span>,</span>