cohortcounts: cohortcounts

View source: R/cohortcounts.R

cohortcountsR Documentation

cohortcounts

Description

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

Usage

cohortcounts(cohort, date_of_birth, time_slice)

Arguments

cohort

cohort history at survey timeslices.

date_of_birth

date of birth of the cohort

time_slice

times the cross sectional surveys are conducted

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 long data frame with ages and population counts at a specified time.


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