On Fri, 15 Feb 2013, Sven Schreiber wrote:
Am 15.02.2013 13:01, schrieb Henrique Andrade:
> Dear Sven,
>
> I think "genr dummy" can do what you need.
Yes indeed! And it even shows up in the command log which I should have
checked before.
I'm only noting that in this case 'series dummy' is not equivalent to
'genr dummy' (the former produces an empty series named "dummy"), and
secondly that this doesn't seem to appear in the user guide. (It's in
the built-in help under genr, however.)
The doc could do with an update on this sort of thing. In
general "genr x" and "series x" are not equivalent: the former
provokes the error "No formula supplied in genr" while the
latter creates an NA series. As you know, "genr" is (sort of)
deprecated for general use; it's considered better style to
use a specific type-name instead. But... there are a few
specials that are still accomplished via "genr", namely
genr time # linear trend
genr dummy # seasonals
genr unitdum # panel unit dummies
genr timedum # panel period dummies
Allin Cottrell