df2ReportingTriangle: Extract reporting triangle from 'data.frame'

Description Usage Arguments Value

Description

R function for reading in and performing the aggregation necessary to get the reporting triangle.

Usage

1
df2ReportingTriangle(momo, groupindicator, back, dWeeks, dLastFullWeek)

Arguments

momo

is a data.frame with the complete data back is the number of weeks for delay-adjustment age group specific groupindicator is the indicator of the age group for data aggregation

groupindicator

A vector of Booleans of the same length as momo

back

Number of weeks to go back in the delay distribution, i.e. we look at delays 0:back .

dWeeks

Vector of Dates containing all Mondays of the ISO weeks to triangulate.

dLastFullWeek

Data object containing the Monday of the last full week before day of aggregation. Note: dLastFullWeek = max(dWeeks)

Value

A list containing the reporting triangle for each age group, the cumulated reporting triangle, the time points and the delays.


thl-mjv/euromomo documentation built on May 31, 2019, 10:43 a.m.