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
Margins plot
Moderators: EViews Gareth, EViews Moderator
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Margins plot
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
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
Can you post your workfile? Or at least give the representations string with the substituted coefficients?
Re: Margins plot
Many thanks for your reply. I've managed to solve the problem on my own.
Best,
Pawel
Best,
Pawel
Re: Margins plot
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.
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
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.
I'd really appreciate your response.
Can you post your workfile? Or at least give the representations string with the substituted coefficients?
Who is online
Users browsing this forum: No registered users and 2 guests
