Page 1 of 1

Margins plot

Posted: Thu Jan 16, 2014 6:51 am
by Pawel_S
Hi,

I'm EViews 8 user. Is there a simple way of plotting marginal effects in EViews? I'm thinking about a command similar to STATA's command margins and marginplot.

In particular, I've got a model of life expectancy on gdp, co2 and other factors,

life = c(1) + c(2)*gdp + c(3)*co2 + c(4)*x + e

After estimating the equation with least squares, I would like to draw a graph showing how life expectancy changes with respect to co2 at gdp=1, 11,21,31, 41 and 51 and other factors being equal to their average values. This should basically result in six parallel lines, one for each value of gdp, co2 on x-axis, and life on y-axis.

Any ideas?

Best,
Pawel

Re: Margins plot

Posted: Thu Jan 16, 2014 12:12 pm
by EViews Glenn
We don't have good built-in automatic tools for this, but it's not too difficult with a bit of programming. What values do you want to use for the evaulation of C02?

Re: Margins plot

Posted: Fri Jan 17, 2014 5:11 am
by Pawel_S
The evaluation for co2 shall be for 1,6,11,16,21.

Re: Margins plot

Posted: Fri Jan 17, 2014 12:15 pm
by EViews Glenn
Can you post your workfile? Or at least give the representations string with the substituted coefficients?

Re: Margins plot

Posted: Fri Jan 17, 2014 1:46 pm
by Pawel_S
Many thanks for your reply. I've managed to solve the problem on my own.

Best,
Pawel

Re: Margins plot

Posted: Tue Jan 03, 2017 2:12 pm
by kemp40
Hi, Eviews Glenn and Pawel, did you manage to plot the average marginal effects in E-views?
I think everybody would like to know that. It's incredible that E-views (even version 9) still does not have a command or a made-in menu option for such a basic feature.

I'd really appreciate if you can give us a hint on how to do it manually.

Re: Margins plot

Posted: Tue Jan 03, 2017 2:14 pm
by kemp40
Any hint? For the mortals? I've read all e-views manuals and nothing yet. How do you plot the average margins manually (if there is not automatic command).
I'd really appreciate your response.
Can you post your workfile? Or at least give the representations string with the substituted coefficients?