cyl6   cyl8
##  1.706 -0.03115 -2.441 -1.715 -1.586</code></pre>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="co"># manual 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">1</span>, ])</code></pre></div>
<pre><code>## Average marginal effects
## lm(formula = mpg ~ factor(cyl) * am + h