simulate_infection_times: Simulate infection times

View source: R/simulate_epidemics.R

simulate_infection_timesR Documentation

Simulate infection times

Description

Infection times are simulated using the probability of infection and sample size n.

Usage

simulate_infection_times(n, prob_infection, overall_prob = NULL)

Arguments

n

Sample size. Must be an integer.

prob_infection

A vector containing probabilities of infection.

overall_prob

The overall probability of infection. NULL by default.

Value

Returns a vector of infection times.

Author(s)

James Hay, jhay@hsph.harvard.edu

See Also

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


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