Create a reporting_triangle
object
Arguments
- data
Data to be nowcasted.
- max_delay
Integer indicating the maximum delay.
- strata
Character string indicating the metadata on the strata of this reporting triangle. Default is
NULL
.- delays_unit
Character string specifying the temporal granularity of the delays. Options are
"days"
,"weeks"
,"months"
,"years"
. For the matrix method, this is simply passed as an item in thereporting_triangle
object which will later be used to create a nowcast data.frame. For the data.frame method, this is used to compute the delay in terms of the specified unit, and to expand the combinations of reference dates and delays to the complete set of combinations in the reporting triangle. Default is"days"
.- ...
Additional arguments passed to methods.
Value
A reporting_triangle
object
See also
Other reporting_triangle:
as_reporting_triangle.data.frame()
,
as_reporting_triangle.matrix()
,
reporting_triangle-class