Extending Sample Size
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
Extending Sample Size
How does one extend sample size (i.e. past the last observation originally defined) using a command?
thanks,
thanks,
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13318
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Extending Sample Size
Greetings!
In my programming, I want to increase the size of arrays in my work file to 10000 from the original 2715 observations. But Eviews 7 does not support "expand" meanwhile the examples of pagestruct in the user's manual does not explain explicitly enough to me.
I just want to know how to use pagestruct to do so explictly.
Thanks a lot
In my programming, I want to increase the size of arrays in my work file to 10000 from the original 2715 observations. But Eviews 7 does not support "expand" meanwhile the examples of pagestruct in the user's manual does not explain explicitly enough to me.
I just want to know how to use pagestruct to do so explictly.
Thanks a lot
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Extending Sample Size
Code: Select all
pagestruct(start=1,end=10000)
Re: Extending Sample Size
the code I find is as follows:
It warns that "Incomplete WFSTRUCT" specification in "PAGESTRUCT (start=1, end=10000)"
I am total lost in it.
Thanks a lot for your advice.
Code: Select all
load "c:\users\yang\documents\shanghai composite index.wf1"
rndseed 12345
!nreps=10000
series rt
series u
series h
series min
series max
series l1
series s1
scalar mcrrl
scalar mcrrs
rt=log(sh/sh(-1))
equation eq1.arch(m=100,) rt c
eq1.makegarch h
pagestruct(start=1,end=10000)
series hsq=h^0.5
series resi=rt-@coefs(1)
series sres=resi/hsq
eq1.forecast rtf yse hf
'bootstrap loop
for !z=1 to !nreps
smpl 3 2715
group g1 sres
g1.resample
smpl 2716 2725
rt=@coefs(1)+@sqrt(hf(-2715))*sres_b(-10)
sh=sh(-1)*exp(rt)
min(!z)=@min(sh)
max(!z)=@max(sh)
next
smpl 1 10000
l1=log(min/1138.73)
mcrrl=1-(exp(-1.645*@stdev(l1))+@mean(l1)))
s1=log(max/1138.73)
mcrrs=(exp((1.645*@stdev(s1))+@mean(s1)))-1
It warns that "Incomplete WFSTRUCT" specification in "PAGESTRUCT (start=1, end=10000)"
I am total lost in it.
Thanks a lot for your advice.
Re: Extending Sample Size
I did not leave space in the syntax mentioned above: pagestruct (start=1, end=10000)
but after I leave space between pagestruct and the bracket, it warns that start=1 is not defined in "pagestruct (start=1, end=10000)
I feel hopeless now
but after I leave space between pagestruct and the bracket, it warns that start=1 is not defined in "pagestruct (start=1, end=10000)
I feel hopeless now
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Extending Sample Size
What version of EViews are you using? And is it uptodate?
Re: Extending Sample Size
I attached the data and programming code here. Thank you very much, Eviews expert.
- Attachments
-
- bootstrap.prg
- bootstrap program
- (760 Bytes) Downloaded 294 times
-
- shanghai composite index.wf1
- data
- (74.23 KiB) Downloaded 265 times
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Extending Sample Size
I suspect the problem is that your pagestruct isn't compatible with your workfile structure. But I'm not sure.
Try this. Take out the load statement and the pagestruct. Load the workfile in manually and use Proc/Structure Resize to extend it manually. Then run the rest of the program.
Try this. Take out the load statement and the pagestruct. Load the workfile in manually and use Proc/Structure Resize to extend it manually. Then run the rest of the program.
Re: Extending Sample Size
Yes, it works.
But after 5 minutes, it says that:
syntax error:
where is the mistake?
Thanks a lot.
But after 5 minutes, it says that:
syntax error:
Code: Select all
mcrrl=1-(exp(-1.645*@stdev(l1))+@mean(l1)))
where is the mistake?
Thanks a lot.
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Extending Sample Size
Your parentheses are unbalanced.
Re: Extending Sample Size
How foolish I am!
Thank you very very much,Startz. You are so wonderful!Pay Homage to you!
Thank you very very much,Startz. You are so wonderful!Pay Homage to you!
Who is online
Users browsing this forum: No registered users and 63 guests