probability_of_recently_infected: probability_of_recently_infected

View source: R/probability_of_recently_infected.R

probability_of_recently_infectedR Documentation

probability_of_recently_infected

Description

a function that calculates the probability of testing recently infected at a time since infection tau.

Usage

probability_of_recently_infected(
  time_in_years,
  recency_type = "weibull",
  q = 0.0167,
  shape = 5,
  gradient = -0.5,
  intercept = 0.5,
  scale = 0.545,
  big_tyears = 2,
  value = 1
)

Arguments

time_in_years

a vector of times since infection.

recency_type

a vector of times since infection.

q

a vector of times since infection.

shape

as defined by the weibull shape parameter, determines/affects the shape of a distribution

gradient

default value which is zero and is interpretated as .

intercept

as defined by the weibull scale parameter, determines the scale and determines how spread out the distribution is

scale

as defined by the weibull scale parameter, determines the scale and determines how spread out the distribution is

big_tyears

a vector of times since infection.

value

as defined by the weibull shape parameter, determines/affects the shape of a distribution

Value

a vector which denotes being the probability of testing recently infected being recently infected fo


laurettemhlanga/PopulationSimulation documentation built on Sept. 9, 2023, 12:39 p.m.