On Sat, 2 Aug 2008, Gordon Hughes wrote:
I acknowledge that your syntax is more general and has advantages.
My proposal reflected a desire to use the dummify
inside functions when it is a little tedious, though not difficult, to work out the
maximum value that can be
dropped. However, this can be got round by
matrix xvals=values(x)
scalar mxval=maxc(xvals)
list dlist=dummify(x, mxval)
so I would be happy with your suggestion.
Surely, you mean
list dlist = dummify(x, max(c))
;-)
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti