Learn R Programming

baselinenowcast (version 0.2.0)

example_reporting_triangle: Simple example reporting triangle for demonstrations

Description

A basic reporting_triangle object demonstrating standard structure with complete early reference times and progressively incomplete recent times. Useful for simple examples and tests.

Usage

example_reporting_triangle

Arguments

Format

A reporting_triangle object with 5 reference dates and 4 delays:

reporting_triangle_matrix

5x4 matrix with counts

reference_dates

5 dates starting from 2024-01-01

delays_unit

"days"

Details

This is a simple, clean example without complications like negative values or unusual structures. Ideal for:

  • Package examples demonstrating basic functionality

  • Unit tests for standard cases

  • Vignettes introducing nowcasting concepts

Use example_downward_corr_rt for examples with data quality corrections.

See Also

  • example_downward_corr_rt for downward corrections example

  • as_reporting_triangle() to create reporting triangles

Example datasets example_downward_corr_rt, germany_covid19_hosp, syn_nssp_df, syn_nssp_line_list

Examples

Run this code
# View the example triangle
example_reporting_triangle

# Use in nowcasting - requires complete rows for delay estimation
estimate_delay(example_reporting_triangle, n = 6)

Run the code above in your browser using DataLab