scores_nbinom | R Documentation |
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)
y |
vector of observations. |
size |
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. |
prob |
probability of success in each trial. |
mu |
alternative parametrization via mean: see ‘Details’. |
The mean of the negative binomial distribution is given by mu
= size
*(1-prob
)/prob
.
A vector of score values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.