ric
  vector; this allows the results of <code><a href="https://rdrr.io/r/stats/simulate.html" class="external-link">simulate</a>(object)</code> to
  be used even if the original response vector contained NA values.
  Otherwise, the length of <code>newresp</code> must be the same as the
  <em>original</em> length of the response.</p>
    </div>

    <div class="section level2">
    <h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
    <div class="sourceCode">