Rolling window regression
Posted: Mon Dec 03, 2012 8:30 am
Hi all,
When I run the following rolling window regression:
!window = 20
!step = 1
!length = @obsrange
equation eq1
!nrolls = @round ((!length-!window)/!step)
matrix(3, !nrolls) coefmat
!j=0
for !i = 1 to !length -!window+1-!step step !step
!j=!j+1
smpl @first+!i-1 @first+!i + !window - 2
eq1. ls y c x1 x2
colplace(coefmat,eq1. @coefs,!j)
next
show coefmat
I receive the following error message:
"is not a member or procedure of EQ1 IN "EQ1" IN "DO_EQ1. LS Y C X1 X2".
Any suggestion how to solve the problem?
Regards,
P.
When I run the following rolling window regression:
!window = 20
!step = 1
!length = @obsrange
equation eq1
!nrolls = @round ((!length-!window)/!step)
matrix(3, !nrolls) coefmat
!j=0
for !i = 1 to !length -!window+1-!step step !step
!j=!j+1
smpl @first+!i-1 @first+!i + !window - 2
eq1. ls y c x1 x2
colplace(coefmat,eq1. @coefs,!j)
next
show coefmat
I receive the following error message:
"is not a member or procedure of EQ1 IN "EQ1" IN "DO_EQ1. LS Y C X1 X2".
Any suggestion how to solve the problem?
Regards,
P.