Description Usage Arguments Value
View source: R/simTransmission.R
Generate transmission information of next generation with consideration of asyptomatic/unsampled individuals
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | transNext(
currentmatrix,
inf_rate,
inf_rate_timeInt,
diag_rate,
rec_rate_asy,
rec_rate_sym,
death_prop,
death_rate,
inf_rate_diag,
asy_prop,
unif_input,
ntrans
)
|
currentmatrix |
information matrix of current generation |
inf_rate |
per day infective rate per infected capita; could be a constant or vector |
inf_rate_timeInt |
time interval correspond to the start and end time of each infectious rate; matrix |
diag_rate |
per day diagnosis rate per capita for symptomatic/sampled individuals; constant |
rec_rate_asy |
per day recovery rate per capita for asymptomatic/unsampled individulas; constant |
rec_rate_sym |
per day recovery rate per capita for symptomatic/unsampled individulas after diagnosis; constant |
death_prop |
proportion of dead cases among diagnosed people; constant |
death_rate |
death rate per day per capita (inverse of the average time/days to death); constant |
inf_rate_diag |
infection rate per day per capita for symptomatic individuals after diagnosis; constant |
asy_prop |
aysmptomatic propotion among infected individuals; constant |
unif_input |
a n*3 matrix containing input parameters to generate random numbers/times from uniform distribution |
ntrans |
number of infected individuals from the begining of outbreak (first generation) to the current generation |
a list containing transmission information matrix and input parameter matrix to generate random numbers/times of next generation from uniform distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.