Re: [Rd] model.matrix.default() silently ignores bad contrasts.arg

2019-02-23 Thread Ben Bolker
rtin Maechler > >> [mailto:maech...@stat.math.ethz.ch] Sent: Friday, > >> February 22, 2019 11:50 AM To: Ben Bolker > >> Cc: Fox, John ; > >> r-devel@r-project.org Subject: Re: [Rd] > >> model.matrix.default() silently ignores bad

Re: [Rd] model.matrix.default() silently ignores bad contrasts.arg

2019-02-23 Thread Martin Maechler
r about filling the omission there! Prepared to go (into the sources) now. Martin >> -Original Message- From: Martin Maechler >> [mailto:maech...@stat.math.ethz.ch] Sent: Friday, >> February 22, 2019 11:50 AM To: Ben Bolker >> Cc: Fox, John ;

Re: [Rd] model.matrix.default() silently ignores bad contrasts.arg

2019-02-22 Thread Fox, John
ct: Re: [Rd] model.matrix.default() silently ignores bad contrasts.arg > > >>>>> Ben Bolker > >>>>> on Thu, 21 Feb 2019 08:18:51 -0500 writes: > > > On Thu, Feb 21, 2019 at 7:49 AM Fox, John wrote: > >> > >> Dear Ben, &g

Re: [Rd] model.matrix.default() silently ignores bad contrasts.arg

2019-02-22 Thread Martin Maechler
> Ben Bolker > on Thu, 21 Feb 2019 08:18:51 -0500 writes: > On Thu, Feb 21, 2019 at 7:49 AM Fox, John wrote: >> >> Dear Ben, >> >> Perhaps I'm missing the point, but contrasts.arg is documented to be a list. From ?model.matrix: "contrasts.arg: A list, whose ent

Re: [Rd] model.matrix.default() silently ignores bad contrasts.arg

2019-02-21 Thread Ben Bolker
On Thu, Feb 21, 2019 at 7:49 AM Fox, John wrote: > > Dear Ben, > > Perhaps I'm missing the point, but contrasts.arg is documented to be a list. > From ?model.matrix: "contrasts.arg: A list, whose entries are values (numeric > matrices or character strings naming functions) to be used as replacem

Re: [Rd] model.matrix.default() silently ignores bad contrasts.arg

2019-02-21 Thread Fox, John
Dear Ben, Perhaps I'm missing the point, but contrasts.arg is documented to be a list. From ?model.matrix: "contrasts.arg: A list, whose entries are values (numeric matrices or character strings naming functions) to be used as replacement values for the contrasts replacement function and whose

[Rd] model.matrix.default() silently ignores bad contrasts.arg

2019-02-20 Thread Ben Bolker
An lme4 user pointed out that passing contrasts as a string or symbol to [g]lmer (which would work if we were using `contrasts<-` to set contrasts on a factor variable) is *silently ignored*. This goes back to model.matrix(), and seems bad (this is a very e