Analyzing regression based on different levels of a variable

For econometric discussions not necessarily related to EViews.

Moderators: EViews Gareth, EViews Moderator

rbbtchnnl
Posts: 5
Joined: Thu May 09, 2013 12:00 pm

Analyzing regression based on different levels of a variable

Postby rbbtchnnl » Fri Aug 09, 2013 4:18 am

Hello all,

I need to compare effects on a dependent variable based on different levels of an independent one, x2 in the attached equation. I want to look at the effect on predicted y when x2 changes from 4 to 7

Image

I'm using eviews 7 and what I did was I sampled x2 based on the if condition x2=4 and ran the regression without the x2 term (as eviews told me there was a near singular matrix error and I assume that it is set to 4 anyway). So I get coefficients BUT what does the equation look like now? I assume that x2 is still part of the model, only constant, but what is its coefficient of x2? Or do I just omit x2 and say y = B1*x1 + B3*x3 when x2=4?

Now I do the same thing for x2=7. Do I interpret the change in the coefficients of x1 and x3 as the effect of x2 (as it moves from 4 to 7) on y?

Thanks!

eyas
Posts: 3
Joined: Tue Aug 13, 2013 1:56 am

Re: Analyzing regression based on different levels of a vari

Postby eyas » Tue Aug 13, 2013 3:29 am

You can substitute x=2 and find y and subst x=4 and find also y and find the diff bet the first y and the second on as apercent or number , i think this will solve the change in y after the change in x
Thanx

jason_ll
Posts: 43
Joined: Thu Sep 01, 2011 11:38 am

Re: Analyzing regression based on different levels of a vari

Postby jason_ll » Tue Aug 13, 2013 10:18 am

Hello all,

I need to compare effects on a dependent variable based on different levels of an independent one, x2 in the attached equation. I want to look at the effect on predicted y when x2 changes from 4 to 7

Image

I'm using eviews 7 and what I did was I sampled x2 based on the if condition x2=4 and ran the regression without the x2 term (as eviews told me there was a near singular matrix error and I assume that it is set to 4 anyway). So I get coefficients BUT what does the equation look like now? I assume that x2 is still part of the model, only constant, but what is its coefficient of x2? Or do I just omit x2 and say y = B1*x1 + B3*x3 when x2=4?

Now I do the same thing for x2=7. Do I interpret the change in the coefficients of x1 and x3 as the effect of x2 (as it moves from 4 to 7) on y?

Thanks!
The difference is simply 7*B2 - 4*B2.

In other words, 3*B2.


Return to “Econometric Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests