Skip to content
Back to formatted view

Raw Message

Message-ID: <002f01c3f58c$400805c0$b54a6cc8@gcendoya.balcarce.inta.gov.ar>
Date: 2004-02-17T19:28:39Z
From: Gabriela Cendoya
Subject: parse error in GLMM function

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 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 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.