From: Henrique Andrade <henrique.coelho@gmail.com>
To: Gretl Discussion List (users) <gretl-users@lists.wfu.edu>
Sent: Wednesday, April 18, 2012 7:37 PM
Subject: [Gretl-users] Add observations inside a function
Dear Gretl Community,
Is there a way to circumvent the fact
that we can not use the command "dataset" inside a function? Please take a look in the following code:
<hansl>
function series TESTE (series Y, int tamanho)
dataset addobs tamanho
string nome = argname(Y)
print nome
gnuplot @nome Y_hat_$P_1_$Q --time-series --with-lines --output=display
end function
dataset clear
open fedstl.bin
data exbzus usphci
TESTE(exbzus,48)
</hansl>
Best regards,
Henrique Andrade
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.eduhttp://lists.wfu.edu/mailman/listinfo/gretl-users