Is that possible to run a doloop with discrete values in RATS?
For example, I would like to show 1-5, 6, 7 and 11-21 instead of 1-21.
I cannot figure out how to do so by the "do" instructions~~~
*******
Maybe we can create a BIG matrix and let 1-5, 6, 7, 11-21 be the element in first row.
And then we use a(1,j) and doloop to run a doloop with discrete values.
But I think this approach is not so flexiable~~
(If we want to run doloop for "1-5, 7", "6-15, 11, 20", and "5-21",
then the matrix will have 6, 12, and 17 elements in first, second, and third row. )
*******
**************************************************************************************************************
Another question is that given the names of variables or series include numbers,
how to make the following codes recognizable for RATS?
Code: Select all
comp all1 = 9
comp all6 = 10
disp all1
disp all6
comp i = 1
disp alli
comp i = 6
disp alli## SX11. Identifier ALLI is Not Recognizable. Incorrect Option Field or Parameter Order?
>>>>disp alli<<<<
best regards,
Samson