, <span class="st">"wt"</span>, <span class="dt">what =</span> <span class="st">"effect"</span>, <span class="dt">main =</span> <span class="st">"Average Marginal Effect of Weight"</span>)</code></pre></div>
<p><img src="Introduction_files/figure-html/unnamed-chunk-11-2.png" width="700"></p>
<p>A really nice feature of Stata’s margins command is that it handles factor variables gracefully. This functionality is difficult to emulate in R, but the <code><a href="../reference/margins.html">margins()</a></cod