rbetabinom_mu_rho: Draw from beta-binomial distribution parameterized by mean...

Description Usage Arguments Author(s)

View source: R/diagnostics.R

Description

Draw from beta-binomial distribution parameterized by mean and overdispersion parameter.

Usage

1
rbetabinom_mu_rho(mu, rho, size)

Arguments

mu

The mean of the underlying beta distribution. This is equal to a / (a + b) where a and b are the two shape parameters of the usual parameterization of the beta. This can be a vector of values.

rho

The over-dispersion parameter of the underlying beta distribution. This is equal to 1 / (a + b + 1) where a and b are the two shape parameters of the usual parameterization of the beta. This can be a vector of values.

size

The sample size. This can equal a vector of observations.

Author(s)

David Gerard


dcgerard/updogAlpha documentation built on May 14, 2019, 3:10 a.m.