Calculating scores for the negative binomial distribution
crps_nbinom(y, size, prob, mu)logs_nbinom(y, size, prob, mu)
dss_nbinom(y, size, prob, mu)
A vector of score values.
vector of observations.
target for number of successful trials, or dispersion parameter (the shape parameter of the gamma mixing distribution). Must be strictly positive, need not be integer.
probability of success in each trial. 0 < prob <= 1
.
alternative parametrization via mean: see ‘Details’.
The mean of the negative binomial distribution is given by mu
= size
*(1-prob
)/prob
.