Questions tagged [marginal-effect]

Marginal effects measure the change in the conditional mean of outcome $y$ when regressors change by one unit.

For a linear model, $E[y | x,z]=\alpha + \beta x + \gamma z$, the partial derivative with respect to $x$ is $$\frac{\partial E[y | x]}{\partial x} = \beta, $$ so that the coefficient has a direct interpretation as a marginal effect of $x$ on $y$.

For nonlinear regression models, this interpretation is no longer possible. For example, if $E[y | x]=\exp \left(\alpha + \beta x + \gamma z \right)$ like in the Poisson model for count data, the marginal effect is a function of both parameters and regressors: $$\frac{\partial E[y | x]}{\partial x} = \exp \left(\alpha + \beta x + \gamma z \right)\cdot \beta$$

It is customary to present such marginal effects

  1. evaluated at own values of $x$ and $z$ and averaged for all individuals in the sample (average marginal effect or AME)
  2. evaluated at the mean/median/modal values of $x$ and $z$ (marginal effect at representative values or MER)
  3. estimated at specific values that are interesting to the analyst

These three measures will generally differ in nonlinear models, whereas they will agree in a linear one. Moreover, the sign of the marginal effect may change at different values of regressors: it may be positive for some values of $x$ and negative for others. Similar complication arise for interactions between variables.

Finally, for binary ($0/1$) regressors in nonlinear models, many prefer the finite difference rather than the derivative:$$ \Delta E[y | x]=E[y | x=1]-E[y | x=0]$$ (where of course all other quantities that might be involved in evaluating the expectations are held constant).

157 questions
15
votes
1 answer

The difference between average and marginal treatment effect

I have been reading some papers, and I am unclear about the specific definitions of Average Treatment Effect (ATE), and Marginal Treatment Effect (MTE). Are they the same? According to Austin... A conditional effect is the average effect, at the…
8
votes
3 answers

Average Marginal Effects interpretation

I ran a regression where the dependent variable is winning (1=win) Given that my regression is probit I want to understand the coefficient. I've done margins, dydx() for my independent variable (average marginal effects). This yielded a result of…
Katie
  • 81
  • 1
  • 1
  • 2
7
votes
1 answer

How to calculate and interpret a marginal treatment effect (local instrumental variable)? (Intuition through simple example.)

I am working on the intuition behind local instrumental variables (LIV), also known as the marginal treatment effect (MTE), developed by Heckman & Vytlacil. I have worked some time on this and would benefit from solving a simple example. I hope I…
7
votes
0 answers

Marginal means vs. marginal effects. What is the difference?

In R, there are two packages: emmeans and margins. The first implements the LS-means known from SAS, here called estimated marginal means, the second implements the margins command from Stata. I understand the idea of the LS-means (prediction on a…
7
votes
0 answers

Average Marginal Effects from Chamberlain-Mundlak Device CRE Probit

I am trying to calculate the average marginal effects for the Chamberlain-Mundlak Correlated Random Effects probit model. The ultimate goal is to get something equivalent to the AME from the fixed effects panel logit. The problem with the latter is…
dimitriy
  • 31,081
  • 5
  • 63
  • 138
6
votes
2 answers

lm and glm function in R

I was running a logistic regression in r using glm() as glm(Y ~X1 + X2 +X3, data = mydata, family = binomial(link = "logit")) By accident I ran the model using lm instead: lm(Y ~X1 + X2 +X3, data = mydata, family = binomial(link = "logit")) I…
Cedroh
  • 61
  • 1
  • 2
6
votes
1 answer

Interpretation of marginal effects in Logit Model with log$\times$independent variable

I am totally confused by statistics and I would be glad if you could help me. I have a difficulties to interpret marginal effects in logit model, if my independent variable is log transformed. I will illustrate my question on the example from my…
Alina Lobova
  • 63
  • 1
  • 1
  • 3
6
votes
1 answer

Using predicted probabilities as regressors

I am working on a project where I investigate growth in wages due to migration. I correct for the endogeneity in the decision to migrate (only those that are most likely to gain from migration will migrate) by first using a probit model to predict…
4
votes
1 answer

Margins after mice?

I would like to apply the margins function to imputed data (I used mice), but it seems not possible. Do you know if a function exists that calculates marginal effects with imputed data? Thank you! Edit: I have modified my code as follows: is it…
4
votes
0 answers

Delta Method Average Marginal Effects Multinomial Logit

Following the incredible demonstration in Statalist by Jeff Pitblado on how to calculate - using the Delta Method - the Standard Errors for Average Marginal Effects of a Logit Model. Q: What would be the formula to calculate the SEs for the AMEs of…
4
votes
1 answer

Margins in "R" throws confidence intervals that do not contain cero, yet p-value > 0.05. Is this possible?

I am running a logit model on survey data using the svyglm function in the survey package in R. I am using the margins function to find the average marginal effects, but then something weird happens. The confidence intervals for the 's1_022'…
4
votes
1 answer

Is it meaningful to calculate predicted marginal effects of a count data model with an interaction effect?

In a little regression model of mine, I estimate the following formula a a negative binomial regression type (it would hold for a Poisson regression as well): $$ y = \beta * var1 + \gamma * var1 * binary + \delta * X + \epsilon $$ where $X$ is a…
4
votes
0 answers

Income and price elasticity for multinomial logit/probit and alternative-specific conditional logit/multinomial probit in Stata?

I have a question about estimating income/price elasticity of demand for multinomial logit/probit models in Stata. Lets say I fit a discrete choice model where the outcome is product chosen (4 alternatives) and I have variables at the individual…
Marquis de Carabas
  • 1,667
  • 19
  • 31
4
votes
1 answer

Marginal Effects of Discrete Variables in Quantile Regression

I find myself puzzled by a passage about marginal effects of discrete variables in quantile regression. On p. 217 of Cameron and Trivedi's MUS book, the authors write: For the $j$th (continuous) regressor, the ME is $$\frac{\partial Q_\tau(y\vert…
dimitriy
  • 31,081
  • 5
  • 63
  • 138
3
votes
1 answer

Understanding margins-package in R: Two different significance levels (marginal effects)

I posted this question already on Stack Overflow (here) but it was suggested to ask this question here on StackExchange. So, I have a question concerning different outputs when changing the type-argument in the margins-package in R. Here is a…
1
2 3
10 11