Description Usage Arguments Value
View source: R/simTransmission.R
Generate the first infected individual in a transmission tree with consideration of asyptomatic/unsampled individuals
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | transCurrent(
inftime = 0,
inf_rate,
inf_rate_timeInt,
diag_rate,
rec_rate_asy,
rec_rate_sym,
death_prop,
death_rate,
inf_rate_diag,
asy_prop,
currentnode,
ancestor
)
|
inftime |
the start time of infection/outbreak |
inf_rate |
per day infective rate per infected capita; could be a constant or vector |
inf_rate_timeInt |
time intervals 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 |
currentnode |
current node number of infected individual |
ancestor |
node number of individual who infected the current person |
a list containing transmission information vector and input parameter vector 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.