Skip to content
Prev 8665 / 20628 Next

comparing 3 levels of fixed factor in lme4

Well, you can use the t-statistics for comparison-wise tests!
the issue is whether one ought to do this, or whether one
should do some kind of overall test.  As I see it, all depends 
on the purpose that is in mind.

As Professor Dalgaard says, the issue is much the same as 
for lm models.  

You can for example do:
numDF denDF F-value p-value
(Intercept)     1    67   72.39  <.0001
fert            2    67    3.94  0.0241
variety         1    67   25.48  <.0001

As the design is balanced, the order of terms does not affect the anova F-test.
But as the design is balanced, you be better to do:
Error: Block
          Df Sum Sq Mean Sq F value Pr(>F)
Residuals  1   3528    3528               

Error: Within
          Df Sum Sq Mean Sq F value  Pr(>F)
fert       2   7019    3509    3.94   0.024
variety    1  22685   22685   25.48 3.7e-06
Residuals 67  59657     890                

John Maindonald             email: john.maindonald at anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Mathematics & Its Applications, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.
http://www.maths.anu.edu.au/~johnm
On 30/07/2012, at 9:38 PM, Obermeier Andrew wrote: