code>mtcars</code> to understand this type of interaction. We can start by looking at the AMEs:</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">x2 &lt;-<span class="st"> </span><span class="kw">lm</span>(mpg <span class="op">~</span><span class="st"> </span>hp <span class="op">*</span><span class="st"> </span>wt, <span class="dt">data =</span> mtcars)
<span class="kw"><a href="../reference/margins.html">margins</a></span>(x2)</code></pre></div>
<pre><code>## Average marginal