Learn R Programming

MixStable (version 0.1.0)

plot_effective_reproduction_number: Plot effective reproduction number (Re) over time

Description

Computes and visualizes the effective reproduction number (Rt) over time using incidence data and generation time distribution. Optionally overlays a smoothed spline curve.

Usage

plot_effective_reproduction_number(
  GT,
  S,
  inc,
  dates,
  est_r0_ml,
  RT,
  output_file = "RN_avec_dates_EM-ML.pdf"
)

Value

NULL (plot is saved as PDF)

Arguments

GT

Numeric vector. Generation time distribution.

S

Numeric vector. Secondary cases.

inc

Numeric vector. Incidence time series.

dates

Date vector corresponding to observations.

est_r0_ml

Function to estimate R0.

RT

Function to compute Rt.

output_file

Output PDF filename.