I'm very new to RATS so I apologise for the "newbie" question - hopefully these will become less frequent (or more interesting) as I become more acquainted with the software.
I'm trying to do something rather simple, loop over a variables and detrend them
Code: Select all
dofor y = lgdpus lgdp ltot rus lxgs lgne lrtwi rcash cinfl lausq lusq
FILTER(REMOVE=TREND) y / y_DT
end dofor y
I understand the logic, so my guess is that I am not declaring y properly. But I am not sure how to fix this, I tried
Code: Select all
dofor [string] y = "lgdpus" "lgdp" "ltot" "rus" "lxgs" "lgne" "lrtwi" "rcash" "cinfl" "lausq" "lusq"
FILTER(REMOVE=TREND) y / y_DT
end dofor y
Code: Select all
## SX22. Expected Type INTEGER, Got STRING Instead
>>>>ring] y = "lgdpus" <<<<
Thanks
Adam