Dear Gretl’ users:

I am trying to use the batch mode in Gretl, but the redirection to a file, is not working. That is, the instruction:

 

                gretlcli  – b scriptfile

 

really works because for a moment the screen shows the results. But  when I type:

 

      >h:/tmp/name_of_file

 

the place where I intend to write the results, nothing is writing in it.

 

To be precise, here is my example.

 

                gretlcli  -b pisos.inp  >h:/tmp/pisos.txt

With pisos.inp:

open h:/curso11-12B/econometriaII/familyHouses.txt

ols price const sqft bedrms baths

series res = $uhat

corrgm res

 

The familyHouses.txt is the Ramanathan data:

price sqft bedrms baths

199.9 1065 3 1.75

228 1254 3 2

235 1300 3 2

285 1577 4 2.5

239 1600 3 2

293 1750 4 2

285 1800 4 2.75

365 1870 4 2

295 1935 4 2.5

290 1948 4 2

385 2254 4 3

505 2600 3 2.5

425 2800 4 3

415 3000 4 3

 

My working directory is: h:/curso11-12B/econometriaII

 

Gretl works because, I repeat, on the screen, for a second, the results show up. But nothing is written  in   h:/tmp/pisos.txt

 

I have repeated  the experiment many times, but without success. Is this a bug in Gretl?

 

Thanking you for your attention and help, I am sincerely yours

 

Agustin Alonso-Rodriguez

Prof. of Econometrics