Hi,
Can someone provide me with some guidance on how I should estimate a simple linear regression with an indicator variable?
Specifically, I am trying to estimate a linear regression that regresses selling price (SPRICE) on living area (LIVAREA)^2 but separating small houses from large houses using an indicator variable (LGELOT) which has the value of 1 for large lots and 0 for small lots. So essentially I should end up with an expression for that estimates the mean selling price for large lots and mean selling price for small lots and their associated coefficients for (LIVAREA)^2
I am using EViews 8 and just can't seem to obtain the answer. I've attached the EViews workfile.
Linear estimation with indicator variable
Moderators: EViews Gareth, EViews Moderator
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Linear estimation with indicator variable
Something likeHi,
Can someone provide me with some guidance on how I should estimate a simple linear regression with an indicator variable?
Specifically, I am trying to estimate a linear regression that regresses selling price (SPRICE) on living area (LIVAREA)^2 but separating small houses from large houses using an indicator variable (LGELOT) which has the value of 1 for large lots and 0 for small lots. So essentially I should end up with an expression for that estimates the mean selling price for large lots and mean selling price for small lots and their associated coefficients for (LIVAREA)^2
I am using EViews 8 and just can't seem to obtain the answer. I've attached the EViews workfile.
Code: Select all
ls sprice c livarea^2 lgelot lgelot*livearea^2-
igtrader02
- Posts: 3
- Joined: Tue Jun 16, 2015 10:55 am
Re: Linear estimation with indicator variable
.
Last edited by igtrader02 on Tue Jun 16, 2015 10:01 pm, edited 1 time in total.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Linear estimation with indicator variable
So what do you get?Hi,Something likeHi,
Can someone provide me with some guidance on how I should estimate a simple linear regression with an indicator variable?
Specifically, I am trying to estimate a linear regression that regresses selling price (SPRICE) on living area (LIVAREA)^2 but separating small houses from large houses using an indicator variable (LGELOT) which has the value of 1 for large lots and 0 for small lots. So essentially I should end up with an expression for that estimates the mean selling price for large lots and mean selling price for small lots and their associated coefficients for (LIVAREA)^2
I am using EViews 8 and just can't seem to obtain the answer. I've attached the EViews workfile.
Code: Select all
ls sprice c livarea^2 lgelot lgelot*livearea^2
I've tried the command above already in my numerous attempts, but it does not yield the correct answer.
The answer according to the book is,
Large lots : SPRICE = 113279 + 193.83 * LIVAREA^2
Small lots : SPRICE = 62172 + 186.86 * LIVAREA^2
Can't seem to replicate the results.
-
igtrader02
- Posts: 3
- Joined: Tue Jun 16, 2015 10:55 am
Re: Linear estimation with indicator variable
Just figured out how to do it.
Thanks y'all.
Thanks y'all.
Who is online
Users browsing this forum: No registered users and 2 guests
