Thanks for your prompt reply, I'm always confused with the rules of quotes replacing in EViews.
I still have a question : EViews is going to replace %_myTS by its current value, at assignment
So if I do
Code: Select all
%_eq=%_myTS+" "+%_myTS+"(-1)"
series myTS2=nrnd+1
%_myTS="myTS2"
Then %_eq would still be with myTS and not with myTS2 right ?
I was looking a way to make EViews replacing %_myTS by its current value when the equation is estimated (because I'm declaring a bunch of equations before a for loop on variables names in which each equation is estimated, but the endogenous variable can changed depending on a condition which is evaluated inside the for loop)
with something like :