test statistics and iterations

For questions regarding programming in the EViews programming language.

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

justin_m
Posts: 13
Joined: Sun Feb 01, 2015 8:37 pm

test statistics and iterations

Postby justin_m » Sun Feb 01, 2015 8:51 pm

Hi there!

I just started using eviews and I have a query.
I want to perfom a chow breakpoint and a chow forecast test for each one of a series of iterations using the last 100 observations as a prediction set.

wfcreate (wf=chow) u 350

!constant=0
!beta=13
series x=@rnorm
series eps=@rnorm
series y=!constant+!beta*x + eps
!iterations=1000
for !i=1 to !iterations
series eps = @rnorm ´generate new residuals and series y for a constant x
series y = !alpha + !beta*x + eps
equation eq1.ls y c x ´regression
eq1.chow(f) 251 ´ chow forecast test
eq1.chow 251 ´ chow breakpoint test
next

I wish to know how often one rejects the null for each test. I thought of storing the f-statsitics for both tests in two vectors and count from there. But there is probably a better way.... I also tried to use freeze eq1.chow(f) 251 and count but then "infinitely" many windows open and doing this one by one would consumo way too much time.

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

Re: test statistics and iterations

Postby EViews Gareth » Sun Feb 01, 2015 11:17 pm

You'll have to freeze the tests into a table, then extract the fstats into a vector.

http://forums.eviews.com/viewtopic.php?f=5&t=18

http://forums.eviews.com/viewtopic.php?f=5&t=1638

justin_m
Posts: 13
Joined: Sun Feb 01, 2015 8:37 pm

Re: test statistics and iterations

Postby justin_m » Mon Feb 02, 2015 1:18 pm

Thank you so much Gareth!

One more question: how can one generate power curves for both types of tests? I've been googling and reading the manuals under Help but I am not getting far!

Thanks in advance,

JM


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest