Description Usage Arguments Value
R function for reading in and performing the aggregation necessary to get the reporting triangle.
1 | df2ReportingTriangle(momo, groupindicator, back, dWeeks, dLastFullWeek)
|
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 |
back |
Number of weeks to go back in the delay distribution, i.e. we look at delays |
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) |
A list containing the reporting triangle for each age group, the cumulated reporting triangle, the time points and the delays.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.