Skip to content
Prev 12779 / 20628 Next

How do I interpret linear mixed model contrast estimates from multcomp::glht()?

Thanks Ken and Thierry,

The rows in summary.glht() correspond to the row names of the contrast
matrix given in the linfct argument as Thierry stated in my post on
r-sig-ecology
<http://r-sig-ecology.471788.n2.nabble.com/How-do-I-interpret-linear-mixed-model-contrast-estimates-from-multcomp-glht-td7579236.html#a7579237>
(thanks
again Thierry). I'm using the contrast function in the contrast package to
help compute the contrast matrix. The contrast function from the contrast
package produces this...
= levels(egsingle$female)),
+                       b = list(year = c(.5, 1.5, 2.5), size = 800, female
= levels(egsingle$female)))
lm model parameter contrast

  Contrast       S.E.                  Lower            Upper
 t        df      Pr(>|t|)
 0.1671791    0.01739038    0.1330889   0.2012694    9.61  7225        0
 0.2148280   0.02235506   0.1710055    0.2586504    9.61  7225        0
 0.2624768   0.03167964    0.2003754   0.3245781    8.29  7225        0
 0.1671791    0.01739038    0.1330889   0.2012694    9.61  7225        0
 0.2148280   0.02235506   0.1710055    0.2586504    9.61  7225        0
 0.2624768   0.03167964    0.2003754   0.3245781    8.29  7225        0

So, how do the rows of the contrast object relate to the coefficients of
the mixed or linear model? The summary of *math.lm* produces 5 rows of
coefficients...
Call:
lm(formula = math ~ year * size + female, data = egsingle)

Residuals:
    Min      1Q  Median      3Q     Max
-3.5631 -0.7775 -0.0523  0.7183  5.0195

Coefficients:
                            Estimate      Std. Error    t value
 Pr(>|t|)
(Intercept)       -5.590e-01  3.687e-02   -15.163    < 2e-16 ***
year                    8.521e-01   2.391e-02    35.644    < 2e-16 ***
size                   -3.413e-04   4.251e-05    -8.030    1.13e-15 ***
femaleFemale -2.232e-02  2.576e-02    -0.867     0.38624
year:size           -1.135e-04  2.948e-05    -3.849     0.00012 ***

I keep looking at cc$X (what I'm passing to glht() as the contrast matrix
in the linfct argument), but my brain starts to melt at this point...
(Intercept) year size femaleFemale year:size
1           0           0  -420            0                -210
2           0           0  -420            0               -630
3           0           0  -420            0               -1050
4           0           0  -420            0               -210
5           0           0  -420            0               -630
6           0           0  -420            0               -1050
attr(,"assign")
[1] 0 1 2 3 4
attr(,"contrasts")
attr(,"contrasts")$female
[1] "contr.SAS"

This is my first try at mixed models, and it's been several years since my
linear regression course that was taught in SAS, so any help is appreciated.

Cheers,


MVS
=====
Matthew Van Scoyoc

<mvanscoyoc at aggiemail.usu.edu>https://sites.google.com/site/scoyoc/
=====
Think SNOW!
On Tue, Dec 16, 2014 at 2:24 PM, Ken Beath <ken.beath at mq.edu.au> wrote: