On Sat, 2 Aug 2008, Riccardo (Jack) Lucchetti wrote:
On Sat, 2 Aug 2008, Gordon Hughes wrote:
> Would it be possible to extend the specification of the function? The
> syntax that I have in mind is:
>
> dummify(x,n) where (a) n=0 means no categories are dropped, (b) n=1 means
> that the first category is dropped (default), and (c) n=2 means that the
> last category is dropped.
Better still: dummify(x,n) drops the n-th category. When n=NA, no categories
are dropped.
Do you like it?
I had started coding this, then I thought "Hold on a second, this is
going to be another backward-incompatible change". Another one (arma) is
in the planning stage, and obviously it'd be best to put them together
(plus more that may arise). The question is when.
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti