[Gretl-users] loop command
Allin Cottrell
cottrell at wfu.edu
Tue May 8 16:30:27 EDT 2007
On Tue, 8 May 2007, a b wrote:
> I don't understand what's wrong ! I work on an annual data file
> with 20 observations spanning from 1971 to1990 and create a
> dummy variable by using " loop for i=1971..1990 ". When looking
> at the printout, changes are reported for each iterations but
> finally, displaying the dummy variable I see no change . I
> replace the loop by "i=1..20" and it worked fine .
Yes, it's a bit tricky handling observations both by year and by
1-based index. However, the specific problem you saw is now fixed
in CVS and today's Windows snapshot.
> Moreover, the time series plot doesn't show the usual graph's
> left margin, the thin fine-looking space between Y-axis and the
> drawing (see attached).
I can't say that I see anything wrong with the graph. If you want
to push the start of the x-range to the left, you can do that
easily enough (click, Edit, X-axis).
Allin.
More information about the Gretl-users
mailing list