Skip to content
Prev 68457 / 398506 Next

random interactions in lme

On Apr 24, 2005, at 8:52 AM, Douglas Bates wrote:

            
Thanks for the prompt reply.  I tried what you suggested, here's what I 
got:

 > turf.lme=lmer(dry_matter~compacting*variety+(1|rep)+(1|rc)+(1|rv), 
turf.data)
Error in lmer(dry_matter ~ compacting * variety + (1 | rep) + (1 | rc) 
+  :
	entry 3 in matrix[9,2] has row 3 and column 2

Just to see what the problem was, I deleted the third random term, and 
it didn't complain:

 > turf.lme=lmer(dry_matter~compacting*variety+(1|rep)+(1|rv), turf.data)
 > anova(turf.lme)
Analysis of Variance Table
                    Df Sum Sq Mean Sq  Denom F value    Pr(>F)
compacting          5 10.925   2.185 36.000  18.166  5.68e-09 ***
variety             2  2.518   1.259 36.000  10.468 0.0002610 ***
compacting:variety 10  6.042   0.604 36.000   5.023 0.0001461 ***

Now obviously this isn't a valid result since I need that third term; 
but interestingly, it didn't matter which term I deleted, so long as 
there were only two random terms.  Any ideas as to what the error 
message is referring to?

Thanks for the help,

Jake Michaelson