Re: [Rd] Random Count Generation with rnbinom

2014-02-22 Thread Achim Zeileis
On Sun, 23 Feb 2014, Dario Strbenac wrote: The documentation states : An alternative parametrization (often used in ecology) is by the mean ?mu?, and ?size?, the dispersion parameter. However, this fails : rnbinom(10, mu = 100, size = 0) [1] NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN Warning

[Rd] Random Count Generation with rnbinom

2014-02-22 Thread Dario Strbenac
The documentation states : An alternative parametrization (often used in ecology) is by the mean ‘mu’, and ‘size’, the dispersion parameter. However, this fails : > rnbinom(10, mu = 100, size = 0) [1] NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN Warning message: In rnbinom(10, mu = 100, size = 0) :