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).

208 questions
8
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
  • 81
3
votes
0 answers

Computing the standard error of a marginal effect

I'm trying to grok how the standard errors for a marginal effect are computed. I know that if $\eta_i = x^T\beta$, then the square of the standard error of $\eta_i$ is $x^T \Sigma x$, where $\Sigma$ is the covariance matrix obtained from the…
1
vote
1 answer

Difference in scales for marginal effects

I am trying to run a fixed parameter model, a random parameter model and a latent class model with the same dataset. My dependent variable is whether or not an individual in wearing a seat belt. And my independent variables include driver's age,…
Meg
  • 63
0
votes
0 answers

Interpretation of sign switch of marginal effect

I have calculated marginal effects for my problem. How do I interpret aswitch of the sign of the marginal effect (see plot). For example, when I want to answer a question like the following. Does the effect of z on y decreases if x increases?…
Jensxy
  • 119