Margins plot
Posted: 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
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