R/varfreq_cdf_logistic.R
varfreq_cdf_logistic.Rd
This function calculates the cumulative observed variant prevalence after t time steps (e.g., days) given a logistic growth rate and initial variant prevalence.
varfreq_cdf_logistic(t, p0_v1, r_v1, c_ratio = 1)
time step number (e.g., days) at which to calculate prevalence
initial variant prevalence (# introductions / infected population size)
logistic growth rate
coefficient of detection ratio, calculated as the ratio of the coefficients of variant 1 to variant 2. Default = 1 (no bias)
scalar giving the cdf of variant prevalence at time t
Other logistic growth functions:
varfreq_freq_logistic()
Other variant frequency functions:
varfreq_expected_mbias()
,
varfreq_freq_logistic()
,
varfreq_obs_freq()
varfreq_cdf_logistic(t = 30, p0_v1 = 1/10000, r_v1 = 0.1, c_ratio = 1)
#> [1] 92.12247