View source: R/simulation_functions.R
simulate_viral_loads_example_symptoms | R Documentation |
Simulate N Ct values under symptom-based surveillance and returns a dataframe of Ct values and times since infection.
simulate_viral_loads_example_symptoms(
ages,
kinetics_pars,
incu_par1 = 1.621,
incu_par2 = 0.418,
sampling_par1 = 5,
sampling_par2 = 1,
N = 100,
sampling_dist_use = extraDistr::rdgamma
)
ages |
Vector of ages (days since infection). |
kinetics_pars |
Vector of named parameters for the viral kinetics model. |
incu_par1 |
logMean of the log-normal incubation period distribution |
incu_par2 |
logSD of the log-normal incubation period distribution |
sampling_par1 |
shape of the discretized gamma sampling delay distribution |
sampling_par2 |
rate of the discretized gamma sampling delay distribution |
N |
Number of observations to randomly generate overall; Set to 100 by default. |
Dataframe of simulated Ct values and corresponding ages.
James Hay, jameshay218@gmail.com
Other viral load functions:
pred_dist_wrapper()
,
simulate_detectable_wrapper()
,
simulate_viral_loads_example()
,
viral_load_func()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.