Search found 70 matches

by macro
Tue Jul 05, 2016 8:19 am
Forum: Help With Programming
Topic: Why does RATS overwrite the eqs in models in 9.00, not 8.30?
Replies: 7
Views: 12160

Re: Why does RATS overwrite the eqs in models in 9.00, not 8

Hi Tom. Do you have any updates on possible fixes for this? The workaround using %eqnlag that you suggested earlier does not work, per the previous post, and unfortunately this is a major part of our project.
by macro
Wed Jun 01, 2016 10:01 am
Forum: Help With Programming
Topic: Why does RATS overwrite the eqs in models in 9.00, not 8.30?
Replies: 7
Views: 12160

Re: Why does RATS overwrite the eqs in models in 9.00, not 8

I'm having trouble getting the workaround to work. Here's a simple example: calendar(q) 1950 1 compute begin_samp = 1969:1 compute end_fcast = 2005:4 compute max_lags = 4 open data "data.xls" data(format = xls, org = columns) begin_samp end_fcast close data inquire(regressorlist) begin_est...
by macro
Tue May 31, 2016 12:58 pm
Forum: Help With Programming
Topic: Why does RATS overwrite the eqs in models in 9.00, not 8.30?
Replies: 7
Views: 12160

Re: Why does RATS overwrite the eqs in models in 9.00, not 8

I'll refactor my code and give that a shot. Thank you. Also, can you post (or send me) a link to the update announcement that mentions this change? It would be useful for documentation purposes, but I wasn't able to find anything on the RATS 9.00 page or in the announcements on the forum. Since this...
by macro
Tue May 31, 2016 11:26 am
Forum: Help With Programming
Topic: Why does RATS overwrite the eqs in models in 9.00, not 8.30?
Replies: 7
Views: 12160

Re: Why does RATS overwrite the eqs in models in 9.00, not 8

Is there any chance you could post a version (or email me a link) of RATS 9.00 that doesn't fix this bug? Per your recommendations on other posts, I've been using the "model = model + eq" syntax extensively, and whatever version of RATS 9.00 includes the change to "model = model + eq&...
by macro
Thu May 19, 2016 3:01 pm
Forum: Help With Programming
Topic: Why does RATS overwrite the eqs in models in 9.00, not 8.30?
Replies: 7
Views: 12160

Why does RATS overwrite the eqs in models in 9.00, not 8.30?

This code sample inquire(regressorlist) begin_est end_est # dlgdpk{0 to max_lags} dlcnsk{0 to max_lags} declare vector[model] models(2) *** first process linreg(print, define = eq) dlgdpk begin_est end_est # dlgdpk{1 to max_lags} constant compute models(1) = models(1) + eq *** second process linreg(...
by macro
Thu May 19, 2016 2:51 pm
Forum: Other RATS Usage Questions
Topic: Possible bug in Function Lookup syntax check in interface?
Replies: 1
Views: 51992

Re: Possible bug in Function Lookup syntax check in interfac

FYI, as of RATS 9.00g, this bug appears to be fixed in the sense that it no longer crashes RATS. For %ACOS (and maybe other functions), clicking OK on the first dialog box, which is where the bug appeared in the past, now displays a dialog that says "SX22. Expected type REAL, Got VECTOR[REAL] i...
by macro
Thu Mar 03, 2016 7:20 pm
Forum: Help With Programming
Topic: INQUIRE incorrectly calculates ending date
Replies: 2
Views: 8274

Re: INQUIRE incorrectly calculates ending date

Right, thank you. You've mentioned that to me before and I have avoided it scrupulously since then, except in this one instance, and it came back to bite me.
by macro
Thu Mar 03, 2016 6:14 pm
Forum: Help With Programming
Topic: INQUIRE incorrectly calculates ending date
Replies: 2
Views: 8274

INQUIRE incorrectly calculates ending date

I have code that, for performance reasons, inserts data into a nested hash and passes that hash into a procedure. I've run into strange behaviour, though, when using the INQUIRE instruction in that INQUIRE calculates the ending date of the series incorrectly. Here is a contrived example: calendar(q)...
by macro
Tue Mar 01, 2016 8:33 am
Forum: Help With Programming
Topic: Using a series that's assigned inside a procedure
Replies: 7
Views: 11629

Re: Using a series that's assigned inside a procedure

Thanks; our IT department confirmed that the latest licensed version we have is 9.00 non-beta. Is there a newer version that we should be using that isn't a beta or fixed-term version?
by macro
Wed Feb 24, 2016 12:54 pm
Forum: Help With Programming
Topic: Using a series that's assigned inside a procedure
Replies: 7
Views: 11629

Re: Using a series that's assigned inside a procedure

I have a fixed term build of v9 but that expired months ago. I haven't received any newer, licensed versions of RATS from IT, apart from the original v9.00, but I'll verify that with the IT staff. Was this the same bug that was fixed after this thread? https://estima.com/forum/viewtopic.php?f=13&...
by macro
Wed Feb 24, 2016 11:51 am
Forum: Help With Programming
Topic: Using a series that's assigned inside a procedure
Replies: 7
Views: 11629

Using a series that's assigned inside a procedure

I have a procedure that builds a dataset and returns it as a hash[series]. Outside the procedure, I can access the dataset by referring to the hash directly, but if I try to set a series using those data, the set statement returns a series with no data. For example calendar(q) 1950 1 allocate 2010:4...
by macro
Tue Feb 09, 2016 8:39 am
Forum: Graphics, Reports, and Other Output
Topic: Is there a way to redirect all output to a UNIT=COPY?
Replies: 3
Views: 7213

Re: Is there a way to redirect all output to a UNIT=COPY?

Thank you; I think this is mostly what I was looking for. Once I've changed the output to a separate file, how do I change the output back to the default .out file? I'm running scripts in batch mode. For example, after this code open outfile "results.txt" change output outfile linreg lgdpk...
by macro
Mon Feb 08, 2016 3:25 pm
Forum: Graphics, Reports, and Other Output
Topic: Is there a way to redirect all output to a UNIT=COPY?
Replies: 3
Views: 7213

Is there a way to redirect all output to a UNIT=COPY?

I have a lengthy script that runs in batch mode, and I'm trying to get RATS to save the text output (output only , not the output and the compiled code) in a separate text file. Some instructions, like DISPLAY or REPORT, support a UNIT=COPY option that lets me flexibly redirect output to this file. ...
by macro
Tue Feb 02, 2016 4:51 pm
Forum: Help With Programming
Topic: LINREG with create option zeros out all coefficients
Replies: 1
Views: 6082

LINREG with create option zeros out all coefficients

This code calendar(q) 1969 1 compute begin_samp = 1969:1 compute end_samp = 2006:4 compute max_lags = 4 open data "sandbox_data.xls" data(format = xls, org = columns) close data system(model = mdl) variables lgdpk dlp lags 1 to max_lags deterministic constant end(system) estimate(model = m...
by macro
Thu Jan 21, 2016 1:19 pm
Forum: Help With Programming
Topic: The STEPS instruction crashes in RATS 9, but not RATS 8.3
Replies: 1
Views: 6127

Re: The STEPS instruction crashes in RATS 9, but not RATS 8.

I should add that the error in STEPS isn't a significant problem, because I believe I can use declare vector[series] residuals forecast(model = mdl, print, static, from = begin_est, to = end_est, errors = residuals) instead of declare rectangular[series] residuals steps(model = mdl, print, from = be...