View source: R/viral_load_functions.R
pred_dist_wrapper | R Documentation |
This function calculates predicted Ct value densities for each observed time and returns a tibble of Ct values, predicted Ct value densities, and observed times.
pred_dist_wrapper(
test_cts,
obs_times,
ages,
pars,
prob_infection,
symptom_surveillance = FALSE,
sampling_dist = "gamma"
)
test_cts |
Vector of Ct values. |
obs_times |
Vector of times at which samples were collected (cross sections). |
ages |
Vector of ages (time since infection). |
pars |
Model parameters. |
prob_infection |
Vector of the probability of infection. |
symptom_surveillance |
Boolean if TRUE, then takes arguments from pars and generates the Ct distribution assuming symptom-based surveillance |
sampling_dist |
character, either "gamma" or "uniform" giving the distribution used for the sampling delay distribution |
Tibble containing Ct values, densities, and times
James Hay, jameshay218@gmail.com
Other viral load functions:
simulate_detectable_wrapper()
,
simulate_viral_loads_example_symptoms()
,
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.