I calculated a Generalized Linear Mixed Model for speech times (DV) with fixed effects congruency (2 levels) and stability (3 levels). I include random effects of type subject and length of word. The equation would be:
gmod<-glmer(time~congruency+stability+(1|SbjID)+1|lengthWord),timedata,family=Gamma())
So the output is:
Generalized linear mixed model fit by maximum likelihood (Laplace Approximation) ['glmerMod']
Family: Gamma ( inverse )
Formula: time ~ congruency + stability + (1 | SbjID) + (1 | lengthWord)
Data: timedata
AIC BIC logLik deviance df.resid
1443.4 1482.9 -714.7 1429.4 2093
Scaled residuals:
Min 1Q Median 3Q Max
-1.3096 -0.6161 -0.2716 0.2094 6.8077
Random effects:
Groups Name Variance Std.Dev.
SbjID (Intercept) 0.13282 0.3644
lengthWord (Intercept) 0.05684 0.2384
Residual 0.58248 0.7632
Number of obs: 2100, groups: SbjID, 24; lengthWord, 18
Fixed effects:
Estimate Std. Error t value Pr(>|z|)
(Intercept) 1.05964 0.20255 5.232 1.68e-07 ***
congruency1 1.28503 0.04971 25.852 < 2e-16 ***
stability1 -0.03965 0.15899 -0.249 0.803
stability2 -0.06091 0.15531 -0.392 0.695
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Correlation of Fixed Effects:
(Intr) cngrn1 stblt1
congruency1 -0.072
stability1 -0.736 0.028
stability2 -0.763 0.034 0.954
Now my question is how to backtransform the coefficients of my fixed effects to say something about my data; such as 'the speechtime increases by 0.5 seconds depending on congruency' similar to findings of an LMM.
I am completely new to GLMMs and would be grateful for a simplified explanation of how to do this. There is not much out there to explain the intrinsics of such a model (Gamma inverse). So an explanation of how to approach this in general would also be much appreciated.
Best Answer
This is a little tricky. For what it's worth, this isn't specific to mixed models; it would apply to any GLM fitted with an inverse link.
family=Gamma(link="log")
), it might make your life easier. The inverse link is the default for the Gamma because it's mathematically convenient, but unless you have historical/cultural/theoretical reasons to prefer the inverse, I would suggest the log link. Lo and Andrews 2015 Frontiers in Psychology recommend an identity link (which is computationally inconvenient but gives easy-to-understand results), although they mention the possibility ofFor comparison, there are fairly established ways to back-transform or understand the effects of parameters on: