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,
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.
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
3 matches
Mail list logo