Am 02.06.2019 um 12:29 schrieb Allin Cottrell:
On Sun, 2 Jun 2019, Fred Engst wrote:
> "ols lwage 0 log(wage) —simple”
>
> Here you’ve invoked a function on the command line, i.e. log(wage),
> not a existing series’ name. Other transformation is also possible,
> such as ols y 0 y(-1 to 4) that I’ve noticed. This raises a question
> about the nature of the indepvars in the ols documentation. What other
> command line transformation that is possible without creating a new
> variable first?
Thanks, Fred, for these questions that provide a fresh perspective on
the basics of gretl. I have tried to ask many such questions over the
years, but obviously I have missed a few!
ID numbers). So you can employ any function that returns a list, or
that
creates a named series. This includes
log, lags, diff, ldiff, sdiff, square, dummify, cdummify, dropcoll
This isn't documented as such; it probably should be.
Yes, absolutely. I also note that for example in the doc for 'ols' it
says "Variables may be specified by name or number" - but this isn't
100% correct because of these functions mentioned above, which provide a
name only indirectly.
thanks
sven