cb23-1"></a>m &lt;-<span class="st"> </span><span class="kw">lm</span>(<span class="kw">log</span>(price) <span class="op">~</span><span class="st"> </span><span class="kw">log</span>(carat), <span class="dt">data =</span> diamonds)</span>
<span id="cb23-2"><a href="overview.html#cb23-2"></a>diamonds &lt;-<span class="st"> </span>modelr<span class="op">::</span><span class="kw">add_residuals</span>(diamonds, m)</span>
<span id="cb23-3"><a href="overview.html#cb23-3"></a>p &lt;-<span class="st"> </span><span