OLS Function group
Posted: Wed Apr 16, 2025 11:12 am
Hi,
I'm trying to use the function DLOG at a group of explanatory variables (xvars) so that I don't need to write all of them one by one. Here what I came up wtih:
%lista = ""
for !i = 1 to xvars.@count
%v = xvars.@seriesname(!i)
%lista = %lista + " dlog(" + %v + ")"
next
equation eq1.ls dlog(pib) c {%lista} @seas(1) @seas(2) @seas(3)
But it's not working. I get the answer "{%LISTA} is not defined".
I'm trying to use the function DLOG at a group of explanatory variables (xvars) so that I don't need to write all of them one by one. Here what I came up wtih:
%lista = ""
for !i = 1 to xvars.@count
%v = xvars.@seriesname(!i)
%lista = %lista + " dlog(" + %v + ")"
next
equation eq1.ls dlog(pib) c {%lista} @seas(1) @seas(2) @seas(3)
But it's not working. I get the answer "{%LISTA} is not defined".