"t stats not defined" error in rolling regression

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

jm13
Posts: 3
Joined: Sun Nov 24, 2013 12:29 am

"t stats not defined" error in rolling regression

Postby jm13 » Sun Nov 24, 2013 12:51 am

Hi

I'm trying to run a rolling regression and I am stopped from running it when this error message appears: "TSTATS not defined". How do I define the tstats so that I can run the rolling regression. My code is as follows:

workfile thesisA4
!window = 1000
!step = 1
!length = @obsrange
system sys09
sys09.append rstr=c(1)
sys09.append ngnr=c(2)
!nrolls = @round((!length- !window)/!step)
matrix(9, !nrolls) coefmat
matrix(9, !nrolls) tstats
!j=0
for !i = 1 to !length- !window+1- !step step !step
!j=!j+1
smpl @first+!i-1 @first+!i+!window-2
sys09.arch(b,h) @diagbekk c(fullrank) arch(1) garch(1)
colplace(coefmat, sys09.@coefs, !j)
colplace(tstats, sys09.@tstats, !j)
next

show coefmat
show tstats

I am using Eviews Student Version 6. I also looked at previous posts and did a search on the forum but could not find anything on t stats that was relevant. How can I alter the code so that this error will go away? Please help.

JM13

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: "t stats not defined" error in rolling regression

Postby EViews Gareth » Sun Nov 24, 2013 5:18 pm

You appear to have written an EViews program. Given that the student version of EViews doesn't support programming, that's probably what is going wrong.

jm13
Posts: 3
Joined: Sun Nov 24, 2013 12:29 am

Re: "t stats not defined" error in rolling regression

Postby jm13 » Mon Nov 25, 2013 1:06 am

Hi

Thanks for your answer and I will try it on a normal EViews. But I remember I once got it to work on the Student Version. Do you have any suggestions? Does the code seem OK anyway?

JM13

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: "t stats not defined" error in rolling regression

Postby EViews Gareth » Mon Nov 25, 2013 5:13 am

Yes


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests