simulate_viral_loads: Simulate viral loads

View source: R/simulation_functions.R

simulate_viral_loadsR Documentation

Simulate viral loads

Description

Takes infection times, the times over which to solve the model, and the viral kinetics parameters and returns a tibble containing true and observed viral loads.

Usage

simulate_viral_loads(
  infection_times,
  solve_times,
  kinetics_pars,
  vl_func_use = viral_load_func,
  convert_vl = FALSE,
  add_noise = NULL
)

Arguments

infection_times

Vector containing infection times.

solve_times

Vector of times at which individuals can be reported.

kinetics_pars

Vector of named parameters for the viral kinetics model.

vl_func_use

Determines which viral load function to use. The default is viral_load_func.

convert_vl

Convert to viral load value. FALSE by default.

add_noise

Add noise to Ct values? NULL by default.

Value

Returns a tibble containing true and observed viral loads.

Author(s)

James Hay, jameshay218@gmail.com

See Also

Other simulation functions: simulate_infection_times(), simulate_observations_wrapper(), simulate_reporting(), simulate_seir_process(), simulate_seir_wrapper(), simulate_viral_loads_wrapper()


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