[Gretl-devel] Small bug in seasonal dummies

Allin Cottrell cottrell at wfu.edu
Tue Oct 2 13:11:10 EDT 2007


On Tue, 2 Oct 2007, Riccardo (Jack) Lucchetti wrote:

> On Tue, 2 Oct 2007, Ignacio Diaz-Emparanza wrote:
> 
> > I have a monthly dataset with the sample starting in 2003.10
> > If I execute the command
> > 
> > genr dummy
> > 
> > (or add/periodic dummies in the GUI) the generated variables does not
> > contain
> > the "1" in the correct month. In concrete the variable "ddic" has the "1" in
> > september.
> 
> Confirmed. The trouble is that the string "10" ends with the character "0". If
> I'm not mistaken, the following patch should fix it. Basically, it avoids
> conversion to strings. Allin, I ran just a limited series of tests, so I'm not
> committing it myself. Could you take a look? ...

Ah, we worked on this simultaneously.  Do you think the fix I 
committed is OK?

Allin.


More information about the Gretl-devel mailing list