Overdispersion parameter: size vs theta

29 views
Skip to first unread message

Charlotte Taelman

unread,
Dec 10, 2025, 12:00:49 PM (6 days ago) Dec 10
to R-inla discussion group
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




Message has been deleted
Message has been deleted

Helpdesk (Haavard Rue)

unread,
Dec 11, 2025, 2:06:34 AM (5 days ago) Dec 11
to Charlotte Taelman, R-inla discussion group

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

Charlotte Taelman

unread,
Dec 11, 2025, 10:51:47 AM (5 days ago) Dec 11
to Helpdesk, R-inla discussion group
Thank you, I have figured it out!

Op do 11 dec 2025 om 08:06 schreef Helpdesk (Haavard Rue) <he...@r-inla.org>:
Reply all
Reply to author
Forward
0 new messages