On Tue, 24 May 2011, amaryl wrote:
Dear all,
I would like to create lists of about 100 time series included in my
dataset. I therefore want to specify the range of variable IDs to be
included in the list.
However, when I try
list xlist=140:240
I get an error, because ":" is invalid in this context.
I would like to avoid typing all the variable IDs every time I
create a new list. Is there some elegant way to do this?
Yes, there is: you can turn vectors into lists (and back if necessary).
Example:
<script>
open AWM -q
matrix foo = seq(86,92)
list bar = foo
summary bar
</script>
HTH
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti