simulate_data: Simulate Daily Virus Incidence Data
Description
Generates simulated daily incidence data for specified respiratory viruses
over a defined number of days. Each virus is modeled using a Gaussian-like
curve, parameterized by peak day, amplitude, and scale.
A data frame with daily simulated incidence counts for each virus,
including a date column.
Arguments
days
Integer. Number of days to simulate (default is 365).
peaks
Named numeric vector. Peak day for each virus
(e.g., c("flua"=90,"rsv"=110,"sars_cov2"=160)).
amplitudes
Named numeric vector. Amplitude for each virus's peak
(e.g., c("flua"=50,"rsv"=40,"sars_cov2"=20)).
scales
Named numeric vector. Scale controlling spread of the peak
for each virus (e.g., c("flua"=-0.004,"rsv"=-0.005,"sars_cov2"=-0.001)).
time_offset
Integer. Number of days to offset start of the simulation.
useful if want to test data with larger values in the middle of a respiratory
season.
noise_sd
numeric or named numeric.
Gaussian noise applied to each virus signal. can either be a single value
or named for each virus e.g., c("flu_a"=2,"rsv"=5,"sars_cov2"=7)