scores_nbinom: Calculating scores for the negative binomial distribution

scores_nbinomR 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. 0 < prob <= 1.

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.


scoringRules documentation built on Sept. 18, 2024, 5:09 p.m.