Closed JockLawrie closed 2 years ago
If v
the same as McCullagh and Nelder's ν
then it's the scale parameter of the Gamma and it's reciprocal to the dispersion parameter, i.e.
julia> v = inv(GLM.dispersion(model))
2.349964824015671
and therefore
julia> (shape = mu/v, scale = v)
(shape = 4.331704011939433, scale = 2.349964824015671)
Thanks Andreas, most helpful.
Hi there,
I am using a Gamma GLM with LogLink. I am interested in estimating the coefficients as well as the scale parameter so that, for a given input vector
x
, I can reconstruct the whole Gamma distribution and not just the mean.The example below illustrates my current attempt. I get reasonable estimates, but the shape and scale parameters seem to be swapped (see the last line). I've been banging my head on this for a while - any ideas where I'm going wrong?
Cheers