38</code></pre>
<p>The result is a data frame with special class <code>"margins"</code>. <code>"margins"</code> objects are printed in a tidy summary format, by default, as you can see above. The only difference between a <code>"margins"</code> object and a regular data frame are some additional data frame-level attributes that dictate how the object is printed.</p>
<p>The default method calculates marginal effects for all variables included in the model (ala Stata’s <code>, dydx(*)</code> option). To lim