Margins plot

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Pawel_S
Posts: 22
Joined: Sun Jan 05, 2014 5:18 am

Margins plot

Postby Pawel_S » Thu Jan 16, 2014 6:51 am

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

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Margins plot

Postby EViews Glenn » Thu Jan 16, 2014 12:12 pm

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?

Pawel_S
Posts: 22
Joined: Sun Jan 05, 2014 5:18 am

Re: Margins plot

Postby Pawel_S » Fri Jan 17, 2014 5:11 am

The evaluation for co2 shall be for 1,6,11,16,21.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Margins plot

Postby EViews Glenn » Fri Jan 17, 2014 12:15 pm

Can you post your workfile? Or at least give the representations string with the substituted coefficients?

Pawel_S
Posts: 22
Joined: Sun Jan 05, 2014 5:18 am

Re: Margins plot

Postby Pawel_S » Fri Jan 17, 2014 1:46 pm

Many thanks for your reply. I've managed to solve the problem on my own.

Best,
Pawel

kemp40
Posts: 3
Joined: Fri Aug 07, 2015 8:05 am

Re: Margins plot

Postby kemp40 » Tue Jan 03, 2017 2:12 pm

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.

kemp40
Posts: 3
Joined: Fri Aug 07, 2015 8:05 am

Re: Margins plot

Postby kemp40 » Tue Jan 03, 2017 2:14 pm

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?


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests