Replace Variables Problem
Posted: Wed Nov 12, 2008 8:21 pm
Hello, everyone:
I'm wondering if a replace variable can refer to another replace variable in Eviews?
for example
create u 50
series x = nrnd
%var1 = "x" 'here I use a replace variable to refer series x
!k = 1 'here I use a control variable as index
My question is how can I create a replace variable %xvar to refer series x THROUGH %var and !k ???
I tried a couple of ways to work it out but they don't work such as
%xvar = "%var" + @str({!k}) 'here I create a string to represent replace variable %var1
series y = {%xvar} 'it doesn't work
or series y = {{%xvar}} 'it doesn't work either
we can do this kind of "double reference" easily in SAS, but I don't know whether Eviews can really do that or not.
regards
Ralph
I'm wondering if a replace variable can refer to another replace variable in Eviews?
for example
create u 50
series x = nrnd
%var1 = "x" 'here I use a replace variable to refer series x
!k = 1 'here I use a control variable as index
My question is how can I create a replace variable %xvar to refer series x THROUGH %var and !k ???
I tried a couple of ways to work it out but they don't work such as
%xvar = "%var" + @str({!k}) 'here I create a string to represent replace variable %var1
series y = {%xvar} 'it doesn't work
or series y = {{%xvar}} 'it doesn't work either
we can do this kind of "double reference" easily in SAS, but I don't know whether Eviews can really do that or not.
regards
Ralph