Code: Select all
ls miles c income age kids
As there is Heteroskedasticity, I want to run GLS given that var(u_i)=sigma^2*income
Now I want to replicate GLS Both with codes and menu provided by Eviews 9.0. But I got problem!
so I tried these codes:
Code: Select all
scalar sigma = eq1.@se
genr income2=income/(sigma*((income)^(0.5)))
genr kids2=kids/(sigma*((income)^(0.5)))
genr miles2=miles/(sigma*((income)^(0.5)))
genr age2=age/(sigma*((income)^(0.5)))
ls miles2 c income2 age2 kids2 then I tried this from menu:
in Equation Estimation window > miles c income age kids
then Options:
type: inverse std. dev.
weight sires: 1/(sigma*income^0.5)
scaling: eviews default
(eviewswls in attached file)
but as you can see the results for constant value and income coefficient are different in both ways. I might made a mistake in both codes and proper selection of menu.
My only concern is running GLS with scaling var(u_i)=sigma^2*income.
Thanks in advance
