scores_nbinom {scoringRules} | R Documentation |
Calculating scores for the negative binomial distribution
Description
Calculating scores for the negative binomial distribution
Usage
crps_nbinom(y, size, prob, mu)
logs_nbinom(y, size, prob, mu)
dss_nbinom(y, size, prob, mu)
Arguments
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’. |
Details
The mean of the negative binomial distribution is given by mu
= size
*(1-prob
)/prob
.
Value
A vector of score values.
[Package scoringRules version 1.1.1 Index]