sim_epi_data {BayesChange} | R Documentation |
Simulate epidemiological data
Description
Simulate epidemiological data
Usage
sim_epi_data(S0, I0, max_time, beta_vec, gamma_0, user_seed = 1234L)
Arguments
S0 |
number of individuals in the population. |
I0 |
number of infected individuals at time 0. |
max_time |
maximum observed time. |
beta_vec |
vector with the infection rate for each discrete time. |
gamma_0 |
the recovery rate. for the population, must be in |
user_seed |
seed for random distribution generation. |
Value
Function sim_epi_data
returns a vector with the simulated infection times.
[Package BayesChange version 1.1.2 Index]