Learn R Programming

surveillance (version 1.24.0)

stsNC-class: Class "stsNC" -- a class inheriting from class sts which allows the user to store the results of back-projecting surveillance time series

Description

A class inheriting from class sts, but with additional slots to store the results of nowcasting.

Arguments

Slots

The slots are as for "sts". However, a number of additional slots exists.

reportingTriangle:

An array containing the upper and lower limit of the confidence interval.

predPMF:

Predictive distribution for each nowcasted time point.

pi:

A prediction interval for each nowcasted time point. This is calculated based on predPMF.

truth:

An object of type sts containing the true number of cases.

delayCDF:

List with the CDF of the estimated delay distribution for each method.

SR:

Possible output of proper scoring rules

Methods

The methods are the same as for "sts".

coerce

signature(from = "sts", to = "stsNC"): convert an object of class sts to class stsNC.

reportingTriangle

signature(x = "stsNC"): extract the reportingTriangle slot of an stsNC object.

delayCDF

signature(x = "stsNC"): extract the delayCDF slot of an stsNC object.

score

signature(x = "stsNC"): extract the scoring rules result slot of an stsNC object.

predint

signature(x = "stsNC"): extract the prediction interval slot of an stsNC object.

Author

M. Höhle