getSizeNB(x, maxCyc = 1000, eta = 0, rmax = Inf,
method = "bisection")
$$\sum_{k=1} ^N \psi (x_i+r) - N\psi(r)+N \log \left(\frac{r}{r+ 1/N \sum_{i=1}^N x_i} \right) - \eta =0$$
for $r$.
This can either be "bisection" or "regula falsi". (Default="bisection").
By setting the variable
The inverse of the size parameter is the overdispersion parameter.
x <- rnbinom(mu=50, size=5, n=10)
getSizeNB(x)
Run the code above in your browser using DataLab