Computes and visualizes the effective reproduction number (Rt) over time using incidence data and generation time distribution. Optionally overlays a smoothed spline curve.
plot_effective_reproduction_number(
GT,
S,
inc,
dates,
est_r0_ml,
RT,
output_file = "RN_avec_dates_EM-ML.pdf"
)NULL (plot is saved as PDF)
Numeric vector. Generation time distribution.
Numeric vector. Secondary cases.
Numeric vector. Incidence time series.
Date vector corresponding to observations.
Function to estimate R0.
Function to compute Rt.
Output PDF filename.