Hi R-Helpers: I?m trying to use the function GLMM from lme4 package, (R-1.8.1, Windows 98),and I get the following error:> pd5 = GLMM(nplant~sitio++ fert+ + remo+ + sitio:fert+ + remo:sitio+ + remo:fert+ + remo:fert:sitio + data=datos, + family=binomial, + random=~repe:sitio) Error in parse(file, n, text, prompt) : parse error>>From GLMM and parse?s help pages, I couldn?t figure out what I was doingwrong. Also in GLMM?s help page say that data is an "optional" data frame used as the first place to find variables in the formulae, but if I omit data=datos (previously I have done attach(datos)), the error change to:> pd5 = GLMM(nplant~sitio++ fert+ + remo+ + sitio:fert+ + remo:sitio+ + remo:fert+ + remo:fert:sitio, + family=binomial, + random=~repe:sitio) Error in model.frame.default(formula = formula, data = data, drop.unused.levels = TRUE) : Argument "data" is missing, with no default This is not what I was expecting for "an optional data frame", Thanks in advance for any help. Gabriela.
"CENDOYA, Gabriela" <gcendoya at balcarce.inta.gov.ar> writes:> I'm trying to use the function GLMM from lme4 package, (R-1.8.1, Windows > 98),and I get the following error: > > pd5 = GLMM(nplant~sitio+ > + fert+ > + remo+ > + sitio:fert+ > + remo:sitio+ > + remo:fert+ > + remo:fert:sitio > + data=datos, > + family=binomial, > + random=~repe:sitio) > Error in parse(file, n, text, prompt) : parse errorCould you tell us the version of the lme4 package please?> From GLMM and parse's help pages, I couldn't figure out what I was > doing wrong. Also in GLMM's help page say that data is an > "optional" data frame used as the first place to find variables in > the formulae, but if I omit data=datos (previously I have done > attach(datos)), the error changes to: > > > pd5 = GLMM(nplant~sitio+ > + fert+ > + remo+ > + sitio:fert+ > + remo:sitio+ > + remo:fert+ > + remo:fert:sitio, > + family=binomial, > + random=~repe:sitio) > Error in model.frame.default(formula = formula, data = data, > drop.unused.levels = TRUE) : > Argument "data" is missing, with no default> This is not what I was expecting for "an optional data frame",Well if you are going to be picky about it! :-) I guess the optional data frame is not quite as optional as we had intended. Time to add another check. Thanks for pointing this out.
"Douglas Bates" write:>"CENDOYA, Gabriela" <gcendoya at balcarce.inta.gov.ar> writes: >I'm trying to use the function GLMM from lme4 package, (R-1.8.1, Windows >> 98),and I get the following error: > > pd5 = GLMM(nplant~sitio+ >> + fert+ >> + remo+ >> + sitio:fert+ >> + remo:sitio+ >> + remo:fert+ >> + remo:fert:sitio >> + data=datos, >> + family=binomial, >> + random=~repe:sitio) >> Error in parse(file, n, text, prompt) : parse error>Could you tell us the version of the lme4 package please?lme4 version: 0.4-7 About the "optional data frame" I didn?t want to sound "picky", I just mention it because I thought it could be related to the other problem. In fact, I am really amazed about how good, complete and clear are the help pages in R. Thanks again Gabriela
"CENDOYA, Gabriela" <gcendoya at balcarce.inta.gov.ar> writes:> I'm trying to use the function GLMM from lme4 package, (R-1.8.1, Windows > 98),and I get the following error: > > pd5 = GLMM(nplant~sitio+ > + fert+ > + remo+ > + sitio:fert+ > + remo:sitio+ > + remo:fert+ > + remo:fert:sitio > + data=datos, > + family=binomial, > + random=~repe:sitio) > Error in parse(file, n, text, prompt) : parse errorIsn't the problem that you really do have a syntax error? Note there is no comma before the data=. Ray