Page 1 of 1

do freeze not working

Posted: Tue Jun 30, 2015 2:33 am
by piotrw
Hi, user of EV 8.1. Please, advice me how to produce panel unit root test results under option 'sum'. I do not want tables to be shown in workfile while processing script. I tried 'do freeze' but it does not work.

Best regards

Re: do freeze not working

Posted: Tue Jun 30, 2015 8:02 am
by EViews Gareth
Could you provide more details? What exact is the command you're using?

Re: do freeze not working

Posted: Tue Jun 30, 2015 9:14 am
by piotrw
Dear Gareth, thank you for interest. I figured it out. The problem was mode = overwrite. I used the same var names in a loop.

Can't find output file

Posted: Wed Jul 08, 2015 4:13 pm
by COM446
Hi,

I am trying to write the output to a file using a batch program. My problems include:
1. I can't find the output file on my computer;
2. Each time the loop runs, the output will show up on the screen, but not to the file

I tried output(t) and got the same result. Could you please help? thanks a lot

load c:\users\documents\research\outrt.wf1
output(r) c:\users\documents\research\out.rtf
for !i=1 to 5
smpl @all if x{!i} > -99
stats x{!i}
next

Re: do freeze not working

Posted: Wed Jul 08, 2015 4:17 pm
by EViews Gareth
stats(p) x{!i}

How to extract the mean

Posted: Thu Jul 09, 2015 7:18 am
by COM446
Hi

I want to save the mean of x by hour and put it into a series for plot, the print statement works fine, but the value of @mean saved is incorrect. Could you please help? Thanks a lot.


for !i=1 to 5
smpl @all if x{!i} > -99
print x{!i}.statby(min,max,mean,med) hour
smpl 1 24
series y{!i}=@mean({!i})
graph(p) y{!I}.bar
next

Re: do freeze not working

Posted: Thu Jul 09, 2015 7:48 am
by EViews Glenn
Not entirely sure that this is what you want, but

Code: Select all

series z = @meansby(x, @hour)
might do the trick.

Re: do freeze not working

Posted: Thu Jul 09, 2015 8:32 am
by COM446
Thanks a lot for your reply. Attached is the output from x.statby. I want to save the 'mean' into a series for plot. However, @mean or @meansby(x, @hour) cannot retrieve the 'mean' below. I couldn't find x.statby from the manual. Any suggestions? Thank you.

Re: do freeze not working

Posted: Thu Jul 09, 2015 11:22 am
by EViews Glenn
If all you want is the plot, then you can do that directly

Code: Select all

y.bar(contract=mean) within(hour)
statby is a series view and is documented as part of the series object.