Skip to content

How to solve allocation problem in lme() analysis?

2 messages · Spencer Graves, Hadley Wickham

#
1.  Since your example is incomplete, I can't easily replicate the 
phenomenon.  This limits me to general comments and brainstorming on 
things I might try.

	  2.  Have you tried "lmer" in library(lme4)?  The syntax will be 
different, but it's a different algorithm and can handle problems that 
crash "lme".  This may or may not apply to you.  For documentation on 
this, see Douglas Bates (2005) "Fitting linear mixed models in R. R 
News, 5(1):27-30, available from www.r-project.org -> newsletter.  See 
also "Implementation.pdf" in the "doc" subdirectory under "lme4" in the 
"library" folder of your R installation;  if you are not using Windows, 
I don't know if this is how you find this document.

	  3.  What is "L" in your model?  If it is a factor with many levels, 
this might explain the warning you got:  "Fewer observations than random 
effects ... ."

	  4.  Can you simplify the problem and still get the same error?  For 
example, do you get the same problem after deleting "F1+F2" from 
"fixed"?  If you can produce a simple example with a few lines of R code 
that generates a pseudo-random data set and send that to this list (as 
suggested in the posting guide! "www.R-project.org/posting-guide.html"), 
you might get a more useful reply.  Or you might just solve your problem 
in the course of trying to construct such an example.

	  5.  Have you consulted Pinheiro and Bates (2000) Mixed-Effects Models 
in S and S-Plus (Springer)?  I couldn't get started with "lme" until I 
got that book and started reading it.

	  hope this helps.
	  spencer graves
Petar Milin wrote:

            

  
    
#
vignette("Implementation") is one easy way to get to it.

Hadley