Skip to content
Prev 86221 / 398503 Next

lme4: Error in getResponseFormula(form) : "Form" must be a two sided formula

Hi, Doug and Chris:

	  I just got the same error message with the "lmList" example in lme4:

 >      (fm1 <- lmList(breaks ~ wool | tension, warpbreaks))
Call:
Error in getResponseFormula(form) : "Form" must be a two sided formula
 > sessionInfo()
R version 2.2.1, 2005-12-20, i386-pc-mingw32

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
[7] "base"

other attached packages:
      lme4   lattice    Matrix
"0.995-2" "0.12-11" "0.995-5"

	  I quit then restarted R and tried the same example in nlme:  It 
seemed to work fine.

	  Chris, have you tried this in nlme?  If you absolutely need some 
feature of lme4, at least you could do this kind of preliminary work in 
nlme, then switch to lme4 (after quitting and restarting R to avoid 
potential conflicts between nlme and lme4).

	  hope this helps.
	  spencer graves
Douglas Bates wrote: