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

2019-02-23 Thread Martin Maechler
> Fox, John > on Fri, 22 Feb 2019 17:40:15 + writes: > Dear Martin and Ben, I agree that a warning is a good idea > (and perhaps that wasn't clear in my response to Ben's > post). > Also, it would be nice to correct the omission in the help > file, which as fa

Re: [Rd] Return/print standard error in t.test()

2019-02-23 Thread Martin Maechler
> peter dalgaard > on Fri, 22 Feb 2019 12:38:14 +0100 writes: > It's not a problem per se to put additional information > into class htest objects (hey, it's S3 after all...) and > there is a precedent in chisq.test which returns $observed > and $expected. It seems th

Re: [Rd] Return/print standard error in t.test()

2019-02-23 Thread Thomas J. Leeper
That seems great to me. Thank you very much! -Thomas On Sat, Feb 23, 2019 at 11:14 AM Martin Maechler wrote: > > > peter dalgaard > > on Fri, 22 Feb 2019 12:38:14 +0100 writes: > > > It's not a problem per se to put additional information > > into class htest objects (hey, it

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

2019-02-23 Thread Ben Bolker
thanks! On 2019-02-23 5:42 a.m., Martin Maechler wrote: >> Fox, John >> on Fri, 22 Feb 2019 17:40:15 + writes: > > > Dear Martin and Ben, I agree that a warning is a good idea > > (and perhaps that wasn't clear in my response to Ben's > > post). > > > Also, it

Re: [Rd] Bug: time complexity of substring is quadratic

2019-02-23 Thread Radford Neal
> From: Tomas Kalibera > > Thanks for the report, I am working on a patch that will address this. > > I confirm there is a lot of potential for speedup. On my system, > > 'N=20; x <- substring(paste(rep("A", N), collapse=""), 1:N, 1:N)' > > spends 96% time in checking if the string is asci