Re: [R] Error message: attempt to set rownames on object with no dimensions

2010-07-21 Thread David Winsemius
On Jul 21, 2010, at 9:39 AM, Igor Blanco wrote: Hi there, I am trying to analyze some data using the lme package. In my case there is a variable called Newmarker that can only take 2 values (number 1 or number 2). I have used the as.factor to remark this fact but an error message appears

Re: [R] Error message: attempt to set rownames on object with no dimensions

2010-07-21 Thread Prof Brian Ripley
?lme (at least the one in package nlme) seems not to mention that the response in 'fixed' must be a numeric variable, but it must (and a factor is not numeric). If you want to use a binary response, you need to use other methods, and it would be better to ask on R-sig-mixed-models making clear

[R] Error message: attempt to set rownames on object with no dimensions

2010-07-21 Thread Igor Blanco
Hi there, I am trying to analyze some data using the lme package. In my case there is a variable called Newmarker that can only take 2 values (number 1 or number 2). I have used the as.factor to remark this fact but an error message appears stating: attempt to set rownames on object with no dimens