scores | R Documentation |
hhh4ZI
ModelsThe following scores are implemented:
logarithmic score (logs), ranked probability score (rps),
Dawid-Sebastiani score (dss), squared error score (ses).
These are extended versions of the corresponding frunctions in surveillance
to handle zero-inflated negative binomial predictions,
which use an additional zero inflation parameter gamma
.
## S3 method for class 'oneStepAhead_hhh4ZI'
scores(
x,
which = c("logs", "rps", "dss", "ses"),
units = NULL,
sign = FALSE,
individual = FALSE,
...
)
## S3 method for class 'hhh4ZI'
scores(
x,
which = c("logs", "rps", "dss", "ses"),
subset = x$control$subset,
units = seq_len(x$nUnit),
sign = FALSE,
...
)
x |
an object of class |
which |
character vector determining which scores to compute.
The package surveillance implements the following proper
scoring rules: logarithmic score ( |
units |
integer or character vector indexing the units for which to compute the scores. By default, all units are considered. |
sign |
logical indicating if the function should also return
|
individual |
logical indicating if the individual scores of the
|
... |
unused (argument of the generic). |
subset |
subset of time points for which to compute the scores. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.