 <span class="dt">data =</span> mtcars)
<span class="co"># automatic vehicles</span>
<span class="kw"><a href="../reference/margins.html">margins</a></span>(x, <span class="dt">data =</span> mtcars[mtcars<span class="op">$</span>am <span class="op">==</span><span class="st"> </span><span class="dv">0</span>, ])</code></pre></div>
<pre><code>## Average marginal effects</code></pre>
<pre><code>## lm(formula = mpg ~ factor(cyl) * am + hp + wt, data = mtcars)</code></pre>
<pre><code>##     am       hp     wt   