*
* Greene, Econometric Analysis, 7th Edition
* Example cut out of final draft.
*
open data tablef22-1.txt
calendar(m) 1990
data(format=prn,org=columns) 1990:1 1994:12 date y
*
* Center the series over the entire span of data
diff(center) y / yc
*
boxjenk(constant,ar=1,ma=1,derives=dd) yc
mcov / %resids
# dd
compute xxrobust=%xx*%cmom*%xx
*
disp ""
disp "CONSTANT Coeff " #.######### %beta(1)
disp "CONSTANT Std Error " #.######### %stderrs(1)
comp tstat = %beta(1) / %STDERRS(1)
disp "CONSTANT T-stat " #.######### tstat
comp pvalue = 2.0 * %TCDF(-abs(tstat),%nobs-3.0)
disp "CONSTANT Signif " #.######### pvalue
*
disp ""
disp "CONSTANT Coeff " #.######### %beta(1)
disp "CONSTANT SCC Std Error " #.######### xxrobust(1,1)
comp scctstat = %beta(1)/xxrobust(1,1)
disp "CONSTANT SCC T-stat " #.######### scctstat
comp sccpvalue = 2.0 * %TCDF(-abs(scctstat),%nobs-3.0)
disp "CONSTANT SCC Signif " #.######### sccpvalue
*
*
disp ""
disp "CONSTANT Coeff " #.######### %beta(1)
disp "CONSTANT SCC Std Error " #.######### (xxrobust(1,1))**0.5
comp scctstat = %beta(1)/(xxrobust(1,1))**0.5
disp "CONSTANT SCC T-stat " #.######### scctstat
comp sccpvalue = 2.0 * %TCDF(-abs(scctstat),%nobs-3.0)
disp "CONSTANT SCC Signif " #.######### sccpvalue
*
*
* Greene, Econometric Analysis, 7th Edition
* Example cut out of final draft.
*
open data tablef22-1.txt
calendar(m) 1990
data(format=prn,org=columns) 1990:1 1994:12 date y
*
* Center the series over the entire span of data
diff(center) y / yc
*
*
boxjenk(constant,ar=6,derives=dd) yc
*
* Eicker-White SE's
*
mcov / %resids
# dd
compute xxrobust=%xx*%cmom*%xx
do i = 1, %nreg
comp tStat = %beta(i)/xxrobust(i,i)**0.5
comp pValue = %ttest(-abs(tStat),%ndf)
disp "tStat " # i #.######### tStat "pValue" # i #.######### pValue
end do i
linreg(robusterrors) y
# constant y{1 to 6}
ac_1 wrote:I have had a read and I remain unclear. BOXJENK is estimating by LS Gauss-Newton. LINREG is estimating by Least Squares. The Eicker-White SE's are similar, the main difference being in the constant Coeff. Can I get the same results using BOXJENK and LINREG, and if so how?
Return to General Econometrics
Users browsing this forum: No registered users and 4 guests