[R-sig-ME] lmer bug

Joehanes, Roby (NIH/NHLBI) [F] roby.joehanes at nih.gov
Thu Aug 16 22:28:10 CEST 2012


Hi all:

This appears to be a bug affecting lmer that is in the Subversion up until the current version (1788).

The following works:
   ff1 <- Reaction ~ Days + (Days|Subject)
   fm1 <- lmer(ff1, sleepstudy)
   print (anova(fm1))

But the following does not:
fun <- function () {
   ff1 <- Reaction ~ Days + (Days|Subject)
   fm1 <- lmer(ff1, sleepstudy)
   return (anova(fm1))
}
print(fun())

Error message:
Error in print(fun()) :
  error in evaluating the argument 'x' in selecting a method for function 'print': Error in eval(expr, envir, enclos) : object 'ff1' not found

This error, however, does not affect the lme4 package released in CRAN.

Thanks,
Roby



More information about the R-sig-mixed-models mailing list