Page 1 of 1
Problem with running a SVAR code
Posted: Sun Mar 15, 2020 9:54 am
by indrani_5
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
Re: Problem with running a SVAR code
Posted: Tue Mar 17, 2020 2:10 pm
by indrani_5
Can someone please reply to my posted question. This is a bit urgent.
Re: Problem with running a SVAR code
Posted: Tue Mar 17, 2020 4:40 pm
by PeterF
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
Re: Problem with running a SVAR code
Posted: Wed Mar 18, 2020 2:45 pm
by indrani_5
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
Posted: Wed Mar 18, 2020 5:36 pm
by TomDoan
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
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).
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