|
""" |
|
GLM.dispersion_parameter(D) |
|
|
|
Does distribution `D` have a separate dispersion parameter, ϕ? |
|
|
|
Returns `false` for the `Bernoulli`, `Binomial` and `Poisson` distributions, `true` otherwise. |
|
|
|
# Examples |
|
```jldoctest; setup = :(using GLM) |
|
julia> show(GLM.dispersion_parameter(Normal())) |
|
true |
|
julia> show(GLM.dispersion_parameter(Bernoulli())) |
|
false |
|
``` |
|
""" |
|
dispersion_parameter(D) = true |
|
dispersion_parameter(::Union{Bernoulli, Binomial, Poisson}) = false |
The only parameter of the geometric distribution is the success probability.
GLM.jl/src/glmtools.jl
Lines 484 to 500 in 0e145bd
The only parameter of the geometric distribution is the success probability.