I am trying to run panel dol and panelfm according to the pedroni purchasing power parity model
I proceeded as following:
Code: Select all
OPEN DATA "C:\Users\Copie de pandolfm.xls"
CALENDAR(PANELOBS=39,A) 1970:1
DATA(FORMAT=XLS,ORG=COLUMNS) 1//1970:01 15//2008:01 YR Country GDP ENER ELEC PX
OPEN DATA "C:\Users\Documents\WinRATS 8\Copie de pandolfm.xls"
CALENDAR(PANELOBS=39,A) 1970:1
DATA(FORMAT=XLS,ORG=COLUMNS) 1//1970:01 15//2008:01 YR Country GDP ENER ELEC PX
SET LGDP = LOG(GDP)
SET LENER = LOG(ENER)
SET LELEC = LOG(ELEC)
SET LPX = LOG(PX)
SET DLGDP = LGDP-LGDP{1}
SET DLENER = LENER-LENER{1}
SET DLELEC = LELEC-LELEC{1}
SET DLPX = LPX-LPX{1}
@paneldols(dlags=6,lags=6,bvec=||1.0||,print=full,average=simple
ibetas=dolsbeta,itstats=dolststat)
# LGDP LENER LELEC LPX
compute pdolsbetad=%beta,pdolststatd=%tstats
*
@panelfm(bvec=||1.0||,lags=6,print=full,average=simple,ibetas=fmbeta,itstats=fmtstat)
# LGDP LENER LELEC LPX
compute pfmbeta=%beta,pfmtstat=%tstats
*
dec vect[labels] country(15)
input country
"BENIN" "BURKINA FASO" "CAP VERT" "COTE D'IVOIRE" "GAMBIE" "GHANA" "GUINEE" "GUINEE BISAU" "LIBERIA" "MALI"
"NIGER" "NIGERIA" "SENEGAL" "SIERRA LEONE" "TOGO"
*
compute crit10=%invnormal(.95)
compute crit01=%invnormal(.995)
*
report(action=define)
report(atrow=1,atcol=1,align=center) "Country" "FMOLS" "t-stat" "DOLS" "t-stat"
do i=1,15
report(atrow=i+1,atcol=1) country(i) fmbeta(i,1) fmtstat(i,1) dolsbeta(i,1) dolststat(i,1)
if abs(fmtstat(i,1))>crit01
report(atrow=i+1,atcol=3,special=twostars)
else
if abs(fmtstat(i,1))>crit10
report(atrow=i+1,atcol=3,special=onestar)
if abs(dolststat(i,1))>crit01
report(atrow=i+1,atcol=5,special=twostars)
else
if abs(dolststat(i,1))>crit10
report(atrow=i+1,atcol=5,special=onestar)
end do i
report(atrow=23,atcol=1,span) "Panel Results"
report(atrow=24,atcol=1,span) "Without Time Dummies"
report(atrow=25,atcol=1) "Between" pfmbeta(1) pfmtstat(1) pdolsbeta(1) pdolststat(1)
report(action=format,atcol=2,atrow=2,align=decimal,picture="*.##")
report(action=show, window="table 1")Did i do something wrong?
someone can help me?
thanks
N.