Re: [R] [FORGED] Error from lme4: "Error: (p <- ncol(X)) == ncol(Y) is not TRUE"

2015-09-23 Thread Rory Wilson
In reply to Rolf Turner and Jean Adams who have been helping me: This does appear to be an issue with NA values in the non-factor variables. In the (non-reproducible) example below, we can see that removing the NAs solves the problem. However, from what I can see to this point, there does not

Re: [R] [FORGED] Error from lme4: "Error: (p <- ncol(X)) == ncol(Y) is not TRUE"

2015-09-23 Thread Rory Wilson
becomes apparent.Thanks for your help!Rory From: Rolf Turner <r.tur...@auckland.ac.nz> To: Rory Wilson <roryrwil...@yahoo.ca>; "r-help@r-project.org" <r-help@r-project.org> Sent: Tuesday, September 22, 2015 11:26 PM Subject: Re: [FORGED] [R] Error from lme4: &quo

Re: [R] [FORGED] Error from lme4: "Error: (p <- ncol(X)) == ncol(Y) is not TRUE"

2015-09-23 Thread Rolf Turner
On 24/09/15 01:57, Rory Wilson wrote: In reply to Rolf Turner and Jean Adams who have been helping me: This does appear to be an issue with NA values in the non-factor variables. In the (non-reproducible) example below, we can see that removing the NAs solves the problem. However, from what I

Re: [R] [FORGED] Error from lme4: "Error: (p <- ncol(X)) == ncol(Y) is not TRUE"

2015-09-22 Thread Rolf Turner
On 23/09/15 01:18, Rory Wilson wrote: Hello all, I am trying to run a random intercept model using lme4. The random effect is a factor of 29 possibilities, making a model with one random effect (one level). It is just a linear model. There are 713 observations. However, when trying to run the