El 07/12/10 14:16, Henrique Andrade escribió:
Dear Sven and Allin, I'd found a solution for my problem. Please take a
look at the
following script:
*<script>*
*scalar *mynumber = 9999
*list *variables = 1
*loop *i=2..144
variables += $i
*endloop*
*loop foreach *i variables
*series *$i = misszero($i) + missing($i)*mynumber
*endloop*
*matrix *A = { *dataset *}
*</script>*
Thanks for your help!
Best regards,
--
Henrique C. de Andrade
Dear Henrique,
another alternative for your script:
<script>
open Dados.gdt
scalar mynumber = 9999
list variables = dataset
loop foreach i variables
series $i = ok($i)*$i + !ok($i)*mynumber
endloop
matrix A = { variables }
</script>
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.ea3.ehu.es