please check
inla.doc("^nbinomial")
which spell out how overdispersion represented.
run the examples in the end to verify
On Wed, 2025-12-10 at 09:00 -0800, Charlotte Taelman wrote:
> Dear INLA community,
>
> A zero-inflated negative binomial model renders me the following output of
> hyperparameters:
> Screenshot 2025-11-27 111539.png
>
> I want to sample from a negative binomial distribution, using mu from another
> dataset and size from the INLA hyperparameters.
> I am however confused about the use of names between base-R and R-INLA:
>
> - package rnbinom: "An alternative parametrization (often used in ecology) is
> by the mean mu (=μ, see above), and size, the dispersion parameter,
> where prob = size/(size+mu)
> - in the inla.doc: "
output.name size for the nbinomial observations
> (1/overdispersion)"
>
> is size = overdispersion or 1/overdispersion?
>
> Kind regards and thank you in advance,
> Charlotte
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "R-
> inla discussion group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
r-inla-discussion...@googlegroups.com.
> To view this discussion, visit
>
https://groups.google.com/d/msgid/r-inla-discussion-group/feb3c148-f6f4-4bc5-afa7-253d513b43c7n%40googlegroups.com
> .
--
Håvard Rue
he...@r-inla.org