Rolling Estimation in VAR
Posted: Wed Oct 22, 2008 6:35 am
I am using the following program to estimate a SVAR with restriction and using a rolling window
I get the following error message "Invalid or duplicate specification in DO-VAR1.SVAR(RTYPE=TEXT)
If a use the entire sample the program runs ok
Pedro Valls
___________________________________________________________
'First series are defined
series c1
series c2
series c3
series c4
series c5
series c6
'define loop
for !i=4 to 2347-200
smpl @first+!i @first+200+!i
var var1.ls 1 2 deprec fin com @deltadifjur deltaibov deltaembi
var1.append(svar) @e1=-c(1)*@e2-c(1)*@e3+c(2)*@u1
var1.append(svar) @e2=-c(3)*@e1+c(4)*@u2
var1.append(svar) @e3=-c(5)*@e1+c(6)*@u3
var1.svar(rtype=text)
c1=c(1)
c2=c(2)
c3=c(3)
c4=c(4)
c5=c(5)
c6=c(6)
next
smpl @all
I get the following error message "Invalid or duplicate specification in DO-VAR1.SVAR(RTYPE=TEXT)
If a use the entire sample the program runs ok
Pedro Valls
___________________________________________________________
'First series are defined
series c1
series c2
series c3
series c4
series c5
series c6
'define loop
for !i=4 to 2347-200
smpl @first+!i @first+200+!i
var var1.ls 1 2 deprec fin com @deltadifjur deltaibov deltaembi
var1.append(svar) @e1=-c(1)*@e2-c(1)*@e3+c(2)*@u1
var1.append(svar) @e2=-c(3)*@e1+c(4)*@u2
var1.append(svar) @e3=-c(5)*@e1+c(6)*@u3
var1.svar(rtype=text)
c1=c(1)
c2=c(2)
c3=c(3)
c4=c(4)
c5=c(5)
c6=c(6)
next
smpl @all