On Wed, 21 Aug 2013, Sven Schreiber wrote:
Am 19.08.2013 21:14, schrieb Allin Cottrell:
> On Mon, 19 Aug 2013, Sven Schreiber wrote:
>
>> well, not Alfred himself, but "his" data -- I'm talking about the
real-time
>> database in St. Louis, of course.
>>
...
>
> (But, agreed, it's not nice to have to pre-process the input.)
>
Status update: For now it still seems necessary to pre-process the
input. I did that with Python in a 'foreign' block within the gretl
script, and after some trial-and-error passing around the correctly
formatted path strings it works for me as a temporary solution. I will
send the code when I have wrapped the stuff in functions as far as possible.
Here's how I transformed the Alfred input file (of course I may have
overlooked some nicer solutions):
[...]
Alternative approach: in the attached tarball you'll find
1) an unmodified file from Alfred (if you choose the "Observations by
Real-Time Period" format, like Sven did)
2) a hansl script (alfred_test.inp), which works on the file above, and
performs all the required preprocessing without having to resort to
Python. This file will give an error at the "join" command, which is
the same error that Sven got originally; note that, by using the
--tkey and --time options, the outer key field is ok "as-it-comes".
3) a diff file which, if applied to CVS, will make the source of the error
evident: in practice, the string->codes transformation of the string
variable used for filtering is not done properly.
I'd like to point out that (3) is a bug we'll have to fix anyway, whatever
solution we agree upon in order to code missing values in the outer file.
Unfortunately, I won't be able to work on this today or tomorrow.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------