I take it back. It works in the simple version above, so I assume the problem with my program is elsewhere. Anyway I realized I need a marker for when I cannot run a VAR so I have solved this problem by making it an if/else condition.
Thanks for the help.
Search found 15 matches
- Tue Aug 05, 2014 8:25 am
- Forum: Programming
- Topic: Can you put a Next inside a If condition?
- Replies: 7
- Views: 7812
- Tue Aug 05, 2014 7:19 am
- Forum: Programming
- Topic: Can you put a Next inside a If condition?
- Replies: 7
- Views: 7812
Re: Can you put a Next inside a If condition?
I get the same error message as above.
- Mon Aug 04, 2014 8:40 pm
- Forum: Programming
- Topic: Can you put a Next inside a If condition?
- Replies: 7
- Views: 7812
Re: Can you put a Next inside a If condition?
This does not seem to work.
Try something like
if not(new_error>old_error) then
var_base.svar(amatrix=something, bmatrix=something_else}
endif
next
- Wed Jul 30, 2014 8:39 am
- Forum: Programming
- Topic: Can you put a Next inside a If condition?
- Replies: 7
- Views: 7812
Can you put a Next inside a If condition?
I am getting a "next found outside of loop or IF statement" error. Not sure if I am just missing something or if I cant do this. i want to do something like this: for %v x y z scalar old_error=@errorcount var var_base.ls 1 4 gdp {%v} scalar new_error=@errorcount if new_error>old_error then...
- Sat Jul 26, 2014 1:31 pm
- Forum: Programming
- Topic: Trouble with Alpha series to Svector
- Replies: 2
- Views: 3712
Re: Trouble with Alpha series to Svector
Ah, never mind. I found another thread that answers my question. @elem doesn't work because it returns a numeric value (?) but I did not realize that you can just access the alpha series directly so now my code is
name(!i)=x(!i)
name(!i)=x(!i)
- Sat Jul 26, 2014 1:21 pm
- Forum: Programming
- Topic: Trouble with Alpha series to Svector
- Replies: 2
- Views: 3712
Re: Trouble with Alpha series to Svector
I sloved the problem with my second question in a kind of clumsy way, but it works for me. However, I still get the "unname object error" workfile .\xxx.wf1 q 1947q1 2030q4 read(b2, s=NIPA) organizeddata.xls 40 read(b2, s=business) organizeddata.xls 40 smpl 1947q1 2011q3 pagecreate strings...
- Sat Jul 26, 2014 12:54 pm
- Forum: Programming
- Topic: Trouble with Alpha series to Svector
- Replies: 2
- Views: 3712
Trouble with Alpha series to Svector
I am trying to automate how my program processes a bunch of different variables. What I have done is I have set up an excel spreadsheet of my series names and labels. I want eviews to read these series names and labels for use later. I just want the name and labels in an svector, but there does not ...
- Sat Dec 07, 2013 3:24 pm
- Forum: Programming
- Topic: Extracting strucutral shocks from SVAR
- Replies: 3
- Views: 7321
Re: Extracting strucutral shocks from SVAR
I figured it out. I checked this against the results for HDecomp. This is probably an insanely crude way to go about it, but it functions. Feel free to double check this or tell me how I could do it more efficiently. For instance, I know my C matrix is weird because the notation Eviews uses is the o...
- Sat Dec 07, 2013 2:03 pm
- Forum: Programming
- Topic: Extracting strucutral shocks from SVAR
- Replies: 3
- Views: 7321
Re: Extracting strucutral shocks from SVAR
I am bumping this becuase I have a similar question. Is this the right way to calculate the structural shocks using the A and B matrix?
I was using the HDecomp add-in, but for some reason when I try to run it in a loop more than twice I get an error message.
I was using the HDecomp add-in, but for some reason when I try to run it in a loop more than twice I get an error message.
- Wed Sep 11, 2013 10:21 am
- Forum: Programming
- Topic: How do I get the obs date/number for a specific obs
- Replies: 3
- Views: 4431
Re: How do I get the obs date/number for a specific obs
Oh I'm using Eviews 7.2.
- Wed Sep 11, 2013 10:20 am
- Forum: Programming
- Topic: How do I get the obs date/number for a specific obs
- Replies: 3
- Views: 4431
How do I get the obs date/number for a specific obs
I want to get the observation date for the median of one series and then extract the value of a second series on that date. Not sure how to do that.
Thanks.
Thanks.
- Sun Jul 21, 2013 6:19 am
- Forum: Programming
- Topic: Is there a simple way to extract the X matrix from a reg?
- Replies: 1
- Views: 2926
Is there a simple way to extract the X matrix from a reg?
Basically, I need to calculate E(xx') so that I can get confidence intervals for a structural break. I know I can group the variables then convert that to a matrix but this involves several steps and suspect it will give me trouble if I try to change the number of variables. Anyway I was wondering (...
- Sun Jul 01, 2012 1:16 pm
- Forum: Programming
- Topic: Passing (control) variables from program to program
- Replies: 1
- Views: 2936
Passing (control) variables from program to program
They way I have my programs currently set up I have a "master" program that then runs several smaller programs using the exec command. These smaller programs all open and close several workfiles. I would like to be able to declare variables in the master program and have them be the same a...
- Tue Jan 31, 2012 1:37 pm
- Forum: Estimation
- Topic: Impulse Responses. Unit Shocks with Structural Decomp.
- Replies: 6
- Views: 12000
Re: Impulse Responses. Unit Shocks with Structural Decomp.
I guess my question was: How do I combine my structural decomposition with a user specified shock to the residual?
*edit* or I guess, is such a thing possible with the graphical interface?
*edit* or I guess, is such a thing possible with the graphical interface?
- Tue Jan 31, 2012 11:06 am
- Forum: Estimation
- Topic: Impulse Responses. Unit Shocks with Structural Decomp.
- Replies: 6
- Views: 12000
Impulse Responses. Unit Shocks with Structural Decomp.
I feel like I must be missing something obvious. But is it possible to specify impulse response shocks other than 1 S.D. shocks when using a SVAR (structural decomposition) in Eviews 7.0? That is, I want to specify a 1% shock to government spending and trace its effect on several variables (GDP, Inf...
