Search found 9 matches

by thaigrrr
Thu Mar 07, 2013 1:22 pm
Forum: Suggestions and Requests
Topic: Storing Variables of Unit Root Test Output
Replies: 3
Views: 7296

Re: Storing Variables of Unit Root Test Output

Just to quickly add to my previous comment.

It looks like the lag length used is recorded with save= option. So, I assume that all the NAs I'm seeing now (and couldn't match previous) are most likely associated with other options that weren't used here.
by thaigrrr
Thu Mar 07, 2013 11:55 am
Forum: Suggestions and Requests
Topic: Storing Variables of Unit Root Test Output
Replies: 3
Views: 7296

Re: Storing Variables of Unit Root Test Output

Hi Gareth, You're right about the save= option. Unfortunately the information saved is quite limited, and not the ones that I need. (I think it's only saving obs, max lag length (but not the actual no. lag used), ADF t-statistic, and ADF p-value. I couldn't match up the rest.) Perhaps save= option c...
by thaigrrr
Thu Mar 07, 2013 11:27 am
Forum: Suggestions and Requests
Topic: Storing Variables of Unit Root Test Output
Replies: 3
Views: 7296

Storing Variables of Unit Root Test Output

I'm writing a program to take a group of series through unit root test one-by-one. The program is testing all three uroot options--const, trend, and none--but the code is quite lengthy because the output table for each option is not in the same size. So, if I want to keep DW for instance, then I'd h...
by thaigrrr
Fri Mar 01, 2013 4:03 pm
Forum: Programming
Topic: Troubles with @datestr
Replies: 6
Views: 5307

Re: Troubles with @datestr

Ah... I see what you mean now, but I still don't see why it works in the second code but not in the first... Do you think the order of the variables within @datestr matters? I think when I moved them around to @dateval(%rec_end)-1+!q, I got it to loop through twice. Not exactly the final result I wa...
by thaigrrr
Fri Mar 01, 2013 3:43 pm
Forum: Programming
Topic: Troubles with @datestr
Replies: 6
Views: 5307

Re: Troubles with @datestr

The weird thing is if I include "show !q" right before the line, then I can see !q is being looped through. %ols_stop just doesn't update. What gets me is that if I remove the format in @datestr, then the line loops fine. It boggles me why it wouldn't move through the quarter when I only r...
by thaigrrr
Fri Mar 01, 2013 3:15 pm
Forum: Programming
Topic: Troubles with @datestr
Replies: 6
Views: 5307

Re: Troubles with @datestr

I removed the extra parenthesis, but that didn't seem to fix the issue and %ols_stop is still not being updated.
by thaigrrr
Fri Mar 01, 2013 2:37 pm
Forum: Programming
Topic: Troubles with @datestr
Replies: 6
Views: 5307

Troubles with @datestr

Good afternoon, I have, what seems to be a simple issue, but may be Friday brain-block is preventing me from seeing a solution. The code %rec_end = "2012:1" ' smpl %rec_end %ols_stop !nQtr = @obssmpl for !q = 1 to !nQtr %ols_stop = @datestr(@dateval(%rec_end)+!q-1, "yyyy:q")) sho...
by thaigrrr
Wed Feb 27, 2013 10:41 am
Forum: Programming
Topic: Calling a subroutine in a loop
Replies: 2
Views: 3059

Re: Calling a subroutine in a loop

That was it!!! Oh, THANK YOU, THANK YOU, THANK YOU!!!
by thaigrrr
Wed Feb 27, 2013 10:05 am
Forum: Programming
Topic: Calling a subroutine in a loop
Replies: 2
Views: 3059

Calling a subroutine in a loop

Good morning, I'm a newbie with EViews and having some problem calling a subroutine within a loop. My code: include progguts %rec_end = "2012:2" %rec_start = %ols_stop smpl %rec_end %rec_start !n_qtr = @obssmpl for !i = 1 to (!n_qtr-1) %rec_start = @datestr(@dateval(%ols_stop)-!i+1, "...

Go to advanced search