[R] Need expert help with model.matrix

2011-05-18 Thread Axel Urbiz
Dear experts: Is it possible to create a new function based on stats:::model.matrix.default so that an alternative factor coding is used when the function is called instead of the default factor coding? Basically, I'd like to reproduce the results in 'mat' below, without having to explicitly

Re: [R] Need expert help with model.matrix

2011-05-18 Thread Gabor Grothendieck
On Wed, May 18, 2011 at 7:15 AM, Axel Urbiz axel.ur...@gmail.com wrote: Dear experts: Is it possible to create a new function based on stats:::model.matrix.default so that an alternative factor coding is used when the function is called instead of the default factor coding? Basically, I'd