-
I am new to Julia and MixedModels.jl. I am trying to fit a generalized mixed model where the link function is different to the typical for the error distribution family (to account for heteroscedasticity of variances), such as:
However, I get an Error: I had a look in the MixedModels.jl code, and there it seems there needs to be another imput, as there is a comma infront of the link: ...But I have no idea what that could be. How should I specify the link term so it is recognized? Any help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
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 the way we conceptually think of reaction time anyway.) |
Beta Was this translation helpful? Give feedback.
glmm
is from an older version of MixedModels. You can tryfit(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…