Page 1 of 1

Marginal effect plot

Posted: Sun Jul 03, 2022 7:29 am
by Sebastian
Hello,

I am a user of EViews 12 and I want to analyze a panel dataset by running an OLS with an interaction term.

y = c(1) + c(2)*x + c(3)*z + c(4)*xz + c(4)*control variables + e

For this equation, I would like to display a marginal effects plot with a 95 percent confidence interval. This plot should show the influence of x on y, given the second independent variable in the interaction term z:

dy/dx = c(2) + c(4)*z.

Is there an easy way to do this in EViews? I could not find a solution in manual and therefore would be very grateful for help.

Best,
Sebastian

Re: Marginal effect plot

Posted: Sun Jul 03, 2022 2:47 pm
by startz

Code: Select all

series dydz = c(3) + c(4)*z scat z dydz

Re: Marginal effect plot

Posted: Sat Jul 09, 2022 3:56 am
by Sebastian
Thank you! That works very well and helps a lot. What I do not understand, however, is how to get the cofidence intervals (95 % in my case) into the plot. How does that work?

Re: Marginal effect plot

Posted: Sat Jul 09, 2022 6:43 am
by startz
You'll need to retrieve the variance-covariance matrix of the coefficients from the regression. Then get the variance of the point estimate using the standard formula for linear combinations of random variables. Take the square root, and then take the point estimates plus and minus twice that square root.