Matrix of autocovariance of a var
Posted: Tue Jan 15, 2019 12:37 pm
Hi,
i want to know, how to do estimate the matrix of autocovariance 0 and 1 of a var.
I think, a loop could help me, but i don“t know how to use it.
this is my var
wfcreate u 1 600
smpl @first @first+1
series w= nrnd*@mean(9)*@sqrt(15)
series y= nrnd*@mean(12)*@sqrt(8)
smpl @first+2 @last
series u= nrnd*@sqrt(2)
series e= nrnd*@sqrt(6)
smpl @first+2 @last
series w= 0.2*w(-1) + 0.3*w(-2)+ u
series y= 0.4*y(-1) + 0.1*y(-2)+ e
var var2.ls(noconst) 1 2 w y
var2.results
var2.ls(noconst) 1 1 w y
Anyone knows how to do it??
thank u very much.
i want to know, how to do estimate the matrix of autocovariance 0 and 1 of a var.
I think, a loop could help me, but i don“t know how to use it.
this is my var
wfcreate u 1 600
smpl @first @first+1
series w= nrnd*@mean(9)*@sqrt(15)
series y= nrnd*@mean(12)*@sqrt(8)
smpl @first+2 @last
series u= nrnd*@sqrt(2)
series e= nrnd*@sqrt(6)
smpl @first+2 @last
series w= 0.2*w(-1) + 0.3*w(-2)+ u
series y= 0.4*y(-1) + 0.1*y(-2)+ e
var var2.ls(noconst) 1 2 w y
var2.results
var2.ls(noconst) 1 1 w y
Anyone knows how to do it??
thank u very much.