On Wed, 21 Aug 2013, Sven Schreiber wrote:
Am 21.08.2013 09:40, schrieb Sven Schreiber:
> 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.
>
I'm attaching a hansl file with a couple of relevant functions which should
cover many real-world cases. These functions assume an Alfred csv file
preprocessed like I described before, which resides in the location specified
in the string argument 'fname'. (This path is taken as-is, so the caller is
responsible for getting it right.)
Very nice. I've been working on a similar thing myself: I've been trying
to re-implement some of the stuff Yi-Nung has been working on
(downloading financial data from Yahoo) in hansl, without having to go
through R to download the data and pre-process it.
Could you share the details of the pre-processing of the Alfred data you
need? It's very possible that this could be done in hansl directly,
thereby removing the python dependency.
-------------------------------------------------------
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
-------------------------------------------------------