Hi,
I have the used the package and it nearly worked.
The only thing that seems not to work was the handling of missing codes at
the beginning and end of the files.
First time the script added correctly lines per missing code, but I think
the adding of the same lines after TRAMO is mistaken.
I had to take the
type ...
lines out of the routine for it to work.
Thanks anyway,
It helped me a lot.
Ofer
if WIN32
set shelldir @tramodir\graph\series
! del /Q *.t && cd @tramodir && "@tramo" -i sername -k
sername.ser && cd
@tramodir\graph\series && echo "ser_adj" > sername.txt
! type "@tramodir\ausentesp" >> sername.txt
! if exist xlin.t. (more +6 xlin.t >> sername.txt) else (more +6
xorigt.t >> sername.txt)
! type "@tramodir\ausentesf" >> sername.txt
append "(a)tramodir\graph\series\sername.txt"
-----Original Message-----
From: gretl-users-bounces(a)lists.wfu.edu
[mailto:gretl-users-bounces@lists.wfu.edu] On Behalf Of Ignacio
Diaz-Emparanza
Sent: Monday, April 27, 2009 11:10 AM
To: Gretl list
Subject: Re: [Gretl-users] TRAMO in Gretl: two qustions
El Saturday 25 April 2009 21:07:06 Allin Cottrell escribió:
On Sat, 25 Apr 2009, Allin Cottrell wrote:
> On Sat, 25 Apr 2009, Ofer Cornfeld wrote:
> > I have series in Gretl that need to be corrected according to TRAMO
> > with the following rules...
> >
> > How can I activate it via a script? (As the above, needs to be done on
> > a regular basis).
>
> Sorry, can't be done via gretl at present, though that could be
> added...
I had forgotten that Ignacio Diaz-Emparanza worked on this sort of
issue, and came up with a clever script. I'm attaching a copy;
you should be able to modify it for your purposes.
Allin Cottrell
I finally wrote it as a function package. You may find it opening with the
gretl menu: file/function files/on server/ tramolin
this has the more updated and corrected script.
Please, Yi-Nung, try it with this package and report any error. I will try
to
help.
--
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.et.bs.ehu.es
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users