Problem with running a SVAR code
Problem with running a SVAR code
Attached is a simple SVAR program/code. I dont understand why it keeps popping up
## SX7. ( Must Follow Immediately After Function Name
>>>>UMNS) 1960 2015 tr <<<<
when i run the code. Where am I going wrong?
Thanks
I
## SX7. ( Must Follow Immediately After Function Name
>>>>UMNS) 1960 2015 tr <<<<
when i run the code. Where am I going wrong?
Thanks
I
- Attachments
-
- andhra_final.xls
- (30 KiB) Downloaded 689 times
-
- andhra_fiscmult.RPF
- (2.29 KiB) Downloaded 648 times
Re: Problem with running a SVAR code
Can someone please reply to my posted question. This is a bit urgent.
Re: Problem with running a SVAR code
Hello,
downloading the program file and the Excel sheet with the data, I got the same error as you. After trying some other file formats and formatting also the date column, I finally got tested other variable names, and it worked. You have used reserved function names as series names. If you change them, for example from tr to a_tr, then it should work well.
Best regards
PeterF
downloading the program file and the Excel sheet with the data, I got the same error as you. After trying some other file formats and formatting also the date column, I finally got tested other variable names, and it worked. You have used reserved function names as series names. If you change them, for example from tr to a_tr, then it should work well.
Best regards
PeterF
Re: Problem with running a SVAR code
Thank you PeterF! It worked when I changed the names of the variables. Just a suggestion, I find that RATS is very sensitive to very trivial things when the objective of every researcher is to work on economic reasoning of the results. I think it might be possible for the programmers to reduce the sensitivity of RATS so that it becomes easy to use.
Re: Problem with running a SVAR code
TR is an reserved name (for TRanspose). Since you have version 9, you have to rename it on the file. (RATS 10 allows you to rename variables as part of the DATA instruction so you could use something like XTR<<"TR" to rename the TR on the file to XTR in the workspace).indrani_5 wrote:Attached is a simple SVAR program/code. I dont understand why it keeps popping up
## SX7. ( Must Follow Immediately After Function Name
>>>>UMNS) 1960 2015 tr <<<<
when i run the code. Where am I going wrong?
Thanks
I
You also almost certainly are doing the dates wrong. 1960 means entry 1960, not year 1960. The latter is 1960:1. With TR renamed, you want:
OPEN DATA "E:\phd\research\RATS\andhra_final.xls"
CALENDER(A) 1960:1
DATA(FORMAT=XLS,ORG=COLUMNS) 1960:1 2015:1 xtr te gdp