Search found 5 matches

by mboldin
Mon May 02, 2016 8:30 am
Forum: Data: Reading, Writing, Transforming
Topic: EXCEL write to named sheet
Replies: 1
Views: 5758

EXCEL write to named sheet

Can RATS write to named sheets in EXCEL format. I know we can read DATA(FORMAT=XLSX,ORG=COLUMNS,SHEET="Current") 2001 2016 year y x1 x2 and I would like to copy to the same file in separate 'Forecast' sheet COPY(FORMAT=XLSX,ORG=COLUMNS,SHEET="Forecast") 2017 2020 year fy If copy ...
by mboldin
Wed Aug 27, 2014 2:40 pm
Forum: Help With Programming
Topic: Puzzled by string comparisons
Replies: 1
Views: 5343

Puzzled by string comparisons

I am having trouble getting %strcmp to evaluate to 1 or TRUE The goal was to set up if statements that compare a string to a state code if st .eq. "NJ" did not work as I expected So I tried if %strcmp(_) but it always evaluates to 0 I am most puzzled that the following code produces 0's co...
by mboldin
Mon Aug 25, 2014 1:38 pm
Forum: Help With Programming
Topic: Compute in a procedure
Replies: 1
Views: 5265

Compute in a procedure

Why does the following program produce errors ? The problem is with the FX2 proc that produces an error at compute fend= fstart + steps - 1 ## SX15. Trying to Store into Constant or Expression. Called Parameter by Value? PROC fx1 option integer fstart option integer steps 1 local integer fend comput...
by mboldin
Mon Oct 07, 2013 4:07 pm
Forum: VARs (Vector Autoregression Models)
Topic: Replacement for SMODIFY to reformulate VAR
Replies: 2
Views: 5196

Re: Replacement for SMODIFY to reformulate VAR

Thanks Tom but Rats freezes and aborts when it gets to this line

compute sblocks=%blocksplit(wsigma,||block,neqn-block||)

I get a message box saying "A problem caused the program to stop working correctly. Please close the program"

same problem with using %smodify
by mboldin
Fri Oct 04, 2013 3:17 pm
Forum: VARs (Vector Autoregression Models)
Topic: Replacement for SMODIFY to reformulate VAR
Replies: 2
Views: 5196

Replacement for SMODIFY to reformulate VAR

I am updating old code (not written by me) that uses SMODIFY as a command on a VAR structure to create a small system out of a large equation system, where some series/equations will be treated as predetermined for a forecasting exercise. I found out that SMODIFY is not in RATs 8.2, and I wonder if ...