Skip to contents

Creates a new reporting_triangle object from a matrix.

Usage

new_reporting_triangle(reporting_triangle_matrix, reference_dates, delays_unit)

Arguments

reporting_triangle_matrix

Matrix of reporting triangle where rows are reference times, columns are delays, and entries are incident counts.

reference_dates

Vector of Date objects indicating the reference dates corresponding to each row of the matrix.

delays_unit

Character string specifying the temporal granularity of the delays. Options are "days", "weeks", "months", "years". Default is "days".

Value

An object of class reporting_triangle