In a logistic regression using SAS PROC QLIM, I have an independent variable, the natural log of annual earnings.
The average marginal effect on the dependent variable of this independent variable = -0.0204.
EXP(-.0204) = 0.9798 AND (1-0.9798) = 0.0202.
Does this mean that a 1.0 percent increase in log earnings reduces the probability of the event by 2.02 percent?
Or is the marginal effect interpreted differently?
Thanks.
Hello,
For a logit model, the marginal effect of change in a regressor, say jth regressor for observation i, on the conditional probability that y_i=1 is
G(x_i'b)[1 - G(x_i'b)]b_j
where, G(x’b) = exp(x’b)/[1+exp(x’b)].
You can request these marginal effects for each regressor from PROC QLIM by specifying the OUTPUT statement and its MARGINAL option. For example,
OUTPUT OUT=myoutputdata MARGINAL;
The average marginal effect is the sample average of these marginal effects. For a logit model, this is
(1/N)*SUMOVER_i{ G(x_i'b)[1 - G(x_i'b)] }b_j
You can obtain this by averaging the column for the marginal effect of the log of annual earnings over the observations in the data set you specify with the OUT option (myoutputdata in the example above).
If you calculated the average marginal effect of the log of annual earnings as described above and obtained the value -0.0204, then the interpretation of this is that on average a 1 percent increase in log earnings reduces the probability of the event occurring by 2.04 percent.
I hope this helps,
Gunce
Hello,
For a logit model, the marginal effect of change in a regressor, say jth regressor for observation i, on the conditional probability that y_i=1 is
G(x_i'b)[1 - G(x_i'b)]b_j
where, G(x’b) = exp(x’b)/[1+exp(x’b)].
You can request these marginal effects for each regressor from PROC QLIM by specifying the OUTPUT statement and its MARGINAL option. For example,
OUTPUT OUT=myoutputdata MARGINAL;
The average marginal effect is the sample average of these marginal effects. For a logit model, this is
(1/N)*SUMOVER_i{ G(x_i'b)[1 - G(x_i'b)] }b_j
You can obtain this by averaging the column for the marginal effect of the log of annual earnings over the observations in the data set you specify with the OUT option (myoutputdata in the example above).
If you calculated the average marginal effect of the log of annual earnings as described above and obtained the value -0.0204, then the interpretation of this is that on average a 1 percent increase in log earnings reduces the probability of the event occurring by 2.04 percent.
I hope this helps,
Gunce
Very clear answer. Thank you.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.