When I run "system(model=varhousepr) 1 to 6", the message comes out."## OP9. Options MODEL and parameter list of equations May Not Be Used Together".
And after ignoring the message, when I run "@VARIRF(model=varhousepr,steps=40,DECOMP=f,byshock,errors)" , the following message comes out:
## OP3. This Instruction Does Not Have An Option BYS
>>>>0,DECOMP=f,byshock,<<<<
Please let me know how to fix it. Thank you very much!
Code: Select all
*********
** Replication file for:
**
** Bj?nland, Hilde C. and Dag Henning Jacobsen (2010): "The role of house prices in the monetary policy transmission mechanism in small open economies".
** Journal of Financial Stability, 6, 2010, 218-229.
**
** Please cite the above reference if used.
**
clear all
*
source "C:\Users\hyun\Documents\WinRATS Standard 8.1\shortandlong.src"
source "C:\Users\hyun\Documents\WinRATS Standard 8.1\varirf.src"
*
CALENDAR 1980 1 4
ALLOCATE 20 2006:4
open data JFS_Bjornland&Jacobsen_Data_Sweden
data(format=xls,org=obs) / RER GDP CPI intr HPR RN3MF anninfl PCON DU92Q3 DU93Q1 DU95Q4
set lgdp / = log(gdp(t))
set lpcon / = log(pcon(t))
set infl / = anninfl(t)
set rdom / = intr(t)
set rtrade / = rn3mf(t)
set lhopr / = log(hpr(t))
set lrhopr / = log(hpr(t)/cpi(t))
set lcpi / = LOG(cpi(t))
set rexc / = LOG(1/rer(t))
*
set dmy92q1 = t == 1992:1
set dmy88q3 = t == 1988:3
*
diff rexc / drexc
diff lhopr / dlhopr
diff lrhopr / dlrhopr
diff lgdp / dlgdp
diff lpcon / dlpcon
diff lcpi / dlcpi
*
*
smpl 1983:1 2006:4
set trend = T
*open plot C:\Documents and Settings\hilde\My Documents\NB\graph.gsp
*graph 2
*# dlhopr
*# dlrhopr
*
*open plot C:\Documents and Settings\hilde\My Documents\NB\graph.gsp
*graph 1
*# rexc
*
system(model=varhousepr) 1 to 6
VAR rtrade dlgdp infl dlrhopr drexc rdom
*VAR rtrade dlpcon infl dlrhopr drexc rdom
lags 1 to 4
det constant DU92Q3 DU93Q1 DU95Q4
end(system)
scratch 6 / resids
estimate(sigma,outsigma=V,noftests) 1983:1 2006:4
*print 1993:1 1999:4 resids+1 resids+2 resids+3
*
*
dec rect lr(6,6) sr(6,6)
input lr
.. . . . . .
.. . . . . 0
.. . . . . .
.. . . . . .
.. . . . . 0
.. . . . . .
input sr
.. 0 0 0 0 0
.. . 0 0 0 0
.. . . 0 0 0
.. . . . 0 .
.. . . . . .
.. . . . . .
*
@ShortAndLong(lr=lr,sr=sr,masum=inv(%varlagsums)) %sigma f
*
@VARIRF(model=varhousepr,steps=40,DECOMP=f,byshock,errors)
*
*
impulse(model=varhousepr,decomp=f,steps=40)
*
errors(model=varhousepr,decomp=f,steps=40,impulses)