Is there a built in way to convert cards to regression lists
Posted: Thu Oct 29, 2015 1:04 pm
I wrote a simple procedure that takes a supplementary card and converts it to a regression list
so I can write code like this
and convert it to a regression list that I can pass into other procedures that take a regression list. This seems like something that would be built into RATS. ENTER is certainly related to this, but it didn't seem like the way forward.
I use -rlfromcards- because I have several custom procedures that take regression lists as input, and it's helpful to build the regression list once, using the -cards- format, and then reuse it throughout the program, instead of manually specifying the -cards- format every time.
Code: Select all
procedure rlfromcards
local equation regs
equation regs *
compute %rl = %rlfromeqn(regs)
end
Code: Select all
@rlfromcards
# gdp{1 to 4} ffed{1 to 2} pce{1 to 4}
I use -rlfromcards- because I have several custom procedures that take regression lists as input, and it's helpful to build the regression list once, using the -cards- format, and then reuse it throughout the program, instead of manually specifying the -cards- format every time.