do freeze not working

For questions regarding programming in the EViews programming language.

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

piotrw
Posts: 7
Joined: Fri Mar 27, 2015 2:22 am

do freeze not working

Postby piotrw » Tue Jun 30, 2015 2:33 am

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

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

Re: do freeze not working

Postby EViews Gareth » Tue Jun 30, 2015 8:02 am

Could you provide more details? What exact is the command you're using?
Follow us on Twitter @IHSEViews

piotrw
Posts: 7
Joined: Fri Mar 27, 2015 2:22 am

Re: do freeze not working

Postby piotrw » Tue Jun 30, 2015 9:14 am

Dear Gareth, thank you for interest. I figured it out. The problem was mode = overwrite. I used the same var names in a loop.

COM446
Posts: 12
Joined: Wed Jul 08, 2015 2:10 pm

Can't find output file

Postby COM446 » Wed Jul 08, 2015 4:13 pm

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

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

Re: do freeze not working

Postby EViews Gareth » Wed Jul 08, 2015 4:17 pm

stats(p) x{!i}
Follow us on Twitter @IHSEViews

COM446
Posts: 12
Joined: Wed Jul 08, 2015 2:10 pm

How to extract the mean

Postby COM446 » Thu Jul 09, 2015 7:18 am

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
Last edited by COM446 on Thu Jul 09, 2015 7:53 am, edited 1 time in total.

EViews Glenn
EViews Developer
Posts: 2642
Joined: Wed Oct 15, 2008 9:17 am

Re: do freeze not working

Postby EViews Glenn » Thu Jul 09, 2015 7:48 am

Not entirely sure that this is what you want, but

Code: Select all

series z = @meansby(x, @hour)

might do the trick.

COM446
Posts: 12
Joined: Wed Jul 08, 2015 2:10 pm

Re: do freeze not working

Postby COM446 » Thu Jul 09, 2015 8:32 am

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.
Last edited by COM446 on Thu Jul 09, 2015 4:50 pm, edited 1 time in total.

EViews Glenn
EViews Developer
Posts: 2642
Joined: Wed Oct 15, 2008 9:17 am

Re: do freeze not working

Postby EViews Glenn » Thu Jul 09, 2015 11:22 am

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.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 5 guests