Skip to content

How to correctly specify link function? #641

Answered by palday
Dunen asked this question in Q&A
Discussion options

You must be logged in to vote

glmm is from an older version of MixedModels. You can try

fit(MixedModel, @formula(y ~ 1 + x + (1|group)), web_area, Gamma(), IdentityLink())

However, there are unfortunately known problems with gamma and inverse Gaussian models as well as Gaussian models with non-identity link (#609).

Beyond the technical issues -- are you using gamma with identity link to model reaction times (viz. Lo and Andrews, 2015)? I am generally skeptical of that advice and would tend to use a linear model, potentially with the response log or reciprocal transformed, depending on the particular data. (The reciprocal transformation is particularly nice because then you're modeling reaction speed, which is often th…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Dunen
Comment options

@palday
Comment options

@Dunen
Comment options

@palday
Comment options

@Dunen
Comment options

Answer selected by Dunen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants