The function logs_nbmix computes the logarithmic score of forecasts
based on mixtures of negative binomial (or Poisson) distributions via
dnbmix(). This is different from the kernel density estimation
approach available via scores_sample().
Arguments
- observed
a vector of observed counts during the simulation period.
- means
a
n.aheadxn.simmatrix of means.- size
the dispersion parameter of the
dnbinom()distribution orNULL(Poisson forecasts). Can also be time-varying (of lengthn.ahead).
See also
scores_sample() for an alternative approach of calculating
the logarithmic score from simulation-based forecasts