simulate_viral_loads_example_symptoms: Simulate N Ct values under symptom-based surveillance and...

View source: R/simulation_functions.R

simulate_viral_loads_example_symptomsR Documentation

Simulate N Ct values under symptom-based surveillance and returns a dataframe of Ct values and times since infection.

Description

Simulate N Ct values under symptom-based surveillance and returns a dataframe of Ct values and times since infection.

Usage

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
)

Arguments

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.

Value

Dataframe of simulated Ct values and corresponding ages.

Author(s)

James Hay, jameshay218@gmail.com

See Also

Other viral load functions: pred_dist_wrapper(), simulate_detectable_wrapper(), simulate_viral_loads_example(), viral_load_func()


jameshay218/virosolver documentation built on April 17, 2025, 2:57 p.m.