# Estimation of marginal effects using margeff

*Tamás Bartus*

*Stata Journal*, 2005, vol. 5, issue 3, 309-329

**Abstract:**
This article describes the user-written program margeff, which enables the fast estimation of (average) marginal effects. Besides describing the program, this article offers a new discussion of some problems that are related to computation of marginal effects. I will argue that (1) marginal effects computed at means are not good approximations of average marginal effects, computed as means of marginal effects evaluated at each observations, if some of the parameter estimates are large; (2) both average marginal effects and marginal effects computed at means might produce wrong estimates for dummies that are part of a set of indicator variables indicating different categories of a single underlying variable; and (3) the use of marginal effects computed at means is preferred if some of the regressors are mathematical transformations of other regressors. Copyright 2005 by StataCorp LP.

**Keywords:** margeff; mfx; average marginal effects; marginal effects at the mean; dummy variables; squared variables (search for similar items in EconPapers)

**Date:** 2005

**References:** View complete reference list from CitEc

**Citations:** View citations in EconPapers (156) Track citations by RSS feed

**Downloads:** (external link)

http://www.stata-journal.com/article.html?article=st0086

http://www.stata-journal.com/software/sj5-3/st0086/ (text/html)

**Related works:**

This item may be available elsewhere in EconPapers: Search for items with the same title.

**Export reference:** BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text

**Persistent link:** https://EconPapers.repec.org/RePEc:tsj:stataj:v:5:y:2005:i:3:p:309-329

**Ordering information:** This journal article can be ordered from

http://www.stata-journal.com/subscription.html

Access Statistics for this article

Stata Journal is currently edited by *Nicholas J. Cox* and *Stephen P. Jenkins*

More articles in Stata Journal from StataCorp LP

Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().