JuliaStats / GLM.jl

Generalized linear models in Julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`canonicallink(NegativeBinomial())` doesn't give `LogLink`?

Indigo2233 opened this issue · comments

canonicallink(d::NegativeBinomial) = NegativeBinomialLink(d.r)

defines NegativeBinomialLink(d.r). However, in the documentation,
https://juliastats.org/GLM.jl/dev/manual/#Fitting-GLM-models-1, it mentioned that

Typical distributions for use with glm and their canonical link functions are

       Bernoulli (LogitLink)
        Binomial (LogitLink)
           Gamma (InverseLink)
 InverseGaussian (InverseSquareLink)
NegativeBinomial (LogLink)
         Normal (IdentityLink)
         Poisson (LogLink)

, which is quite confusing.