pred_dist_wrapper: This function calculates predicted Ct value densities for...

View source: R/viral_load_functions.R

pred_dist_wrapperR 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.

Description

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.

Usage

pred_dist_wrapper(
  test_cts,
  obs_times,
  ages,
  pars,
  prob_infection,
  symptom_surveillance = FALSE,
  sampling_dist = "gamma"
)

Arguments

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

Value

Tibble containing Ct values, densities, and times

Author(s)

James Hay, jameshay218@gmail.com

See Also

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


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