Re: [Rd] Using response variable in interaction as explanatory variable in glm crashes R

2017-10-10 Thread Scott Kostyshak
On Mon, Oct 09, 2017 at 03:52:43PM +, Martin Maechler wrote: > > Jan van der Laan > > on Fri, 6 Oct 2017 12:13:39 +0200 writes: > > > It is actually model.matrix that crashes, not glm. Same > > crash occurs with e.g. lm. > > > model.matrix(dob_mon ~ dob_day*dob_mon, d

Re: [Rd] Using response variable in interaction as explanatory variable in glm crashes R

2017-10-09 Thread Martin Maechler
> Jan van der Laan > on Fri, 6 Oct 2017 12:13:39 +0200 writes: > It is actually model.matrix that crashes, not glm. Same > crash occurs with e.g. lm. > model.matrix(dob_mon ~ dob_day*dob_mon, data = tab) > also crashes R. Yes, segmentation fault. It only happens wh

Re: [Rd] Using response variable in interaction as explanatory variable in glm crashes R

2017-10-06 Thread Jan van der Laan
It is actually model.matrix that crashes, not glm. Same crash occurs with e.g. lm. model.matrix(dob_mon ~ dob_day*dob_mon, data = tab) also crashes R. Jan On 06-10-17 12:08, Jan van der Laan wrote: The following code crashes R (I know I shouldn't try to estimate such a model; this was a

[Rd] Using response variable in interaction as explanatory variable in glm crashes R

2017-10-06 Thread Jan van der Laan
The following code crashes R (I know I shouldn't try to estimate such a model; this was a bug in some code of mine). I also tried with R-devel; same result. tab <- structure(list(dob_day = c(FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, TRUE, TRUE), dob_mon = c(FALSE, FALSE, TRUE, TRUE, FALSE, FAL