prevalences_calculation: prevalences_calculation

View source: R/prevalences_calculation.R

prevalences_calculationR Documentation

prevalences_calculation

Description

calculates the probability of being recently infected given that you already HIV positive.

Usage

prevalences_calculation(time_step, recency_function, tau_cutoff, BigT, cohort)

Arguments

time_step

the time step between consecurtive dates or the length of the time between date of births of cohorts.

recency_function

the recent function that describes the recency aspect

tau_cutoff

switch parameter that enables cutting off/not the rececny prevelances calculated beyond big T

BigT

the point to cut off for all points that are beyond recency classification mark in days

cohort

Status of the popuation in the cohort.

Details

a function that returns an array of probabilities of surviving in the infected state for each age, time and time since infection.

Value

a list of prevalences i.e. prevalence of HIV status, prevalence of recency,and prevelance of HIV age and tau .


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