View source: R/probability_recent_among_positive.R
probability_recent_among_positive | R Documentation |
calculates the probability of being recently infected given that you already HIV positive.
probability_recent_among_positive(
time_step,
type,
population_at_date,
probability_of_recent_infection,
keeping_infection_time = FALSE
)
time_step |
the time step between consecurtive dates or the length of the time between date of births of cohorts. |
type |
type of function to be utilised in the probability of infection function |
population_at_date |
Status of the popuation in the population. |
probability_of_recent_infection |
a function that takes in possible time since infection in years and calculates the probability of being infected for that amount of years |
keeping_infection_time |
if TRUE the function returns the probability of being recently infected among the positives for given ages and times since infection, else it returns the sum of the columns. Which is the probability of being recently infected among the positives at a specified age summing over time since infection. |
a function that returns an array of probabilities of surviving in the infected state for each age, time and time since infection.
a matrix with the probability of testing recently infected among the positive.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.