On Tue, 1 Oct 2013, Ignacio Diaz-Emparanza wrote:
I was preparing an introduction to hansl for my students and I was
thinking
of a simple way to introduce a few data.
Cut and paste from a spreadsheet is, in my opinion, the easiest way to go;
students find it very intuitive, too (unsurprsingly).
I remembered that putting the variables in columns in a text file
(with
extension .dat or .txt), gretl open them quite easily. And I have
experimented a little with it, but I found something weird (on ubuntu 12.04
with unity, and gretl from current CVS):
1) right-cliking on the file and selecting "open with" and then
"gretl", the
file is directly open. No problem.
2) from a terminal, if I use the command "gretlcli file.dat" or in
interactive way "gretlcli" and "open file.dat" the file is also
directly
opened without problem
3) opening first the gretl GUI, if you have done 1) first and gretl remembers
the file in the recently open files list you will have no problem,
4) but from the GUI, opening the file through '/File/Open data/User file' I
obtain the error
xmlParseFile failed on /home/ignacio/gretl/file.dat
If I call the gui from a terminal, gretl is reporting this error on the
terminal screen:
/home/ignacio/gretl/file.dat:1: parser error : Start tag expected, '<' not
found
I think that, since it's a text file, you should use the "Import"
GUI sub-menu instead.
-------------------------------------------------------
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
-------------------------------------------------------