Re: [R] Column names of model.matrix's output with contrast.arg

2024-06-14 Thread peter dalgaard
You're at the mercy of the various contr.XXX functions. They may or may not set the colnames on the matrices that they generate. The rationales for (not) setting them is not perfectly transparent, but you obviously cannot use level names on contr.poly, so it uses .L, .Q, etc. In MASS,

[R] [Rd] R 4.4.1 is released

2024-06-14 Thread peter dalgaard
The build system rolled up R-4.4.1.tar.gz (codename "Race for Your Life") this morning. === This release is dedicated to the memory of Friedrich (Fritz) Leisch, 1968-2024.

[R] Column names of model.matrix's output with contrast.arg

2024-06-14 Thread Christophe Dutang
Dear list, Changing the default contrasts used in glm() makes me aware how model.matrix() set column names. With default contrasts, model.matrix() use the level values to name the columns. However with other contrasts, model.matrix() use the level indexes. In the documentation, I don’t see