Estimating crosssectional incidencePoint and variance estimators for crosssectional incidence. 


Snapshot estimator and variance (Kaplan and Brookmeyer 1999) 

Adjusted estimator and variance (Kassanjee et al. 2012) 

Get enhanced estimate and variance (Bannick and Gao 2023+). This is an estimator similar to the adjusted estimator, but including optional prior HIV test results. 

Obtaining recent infection testing algorithmFunctions for obtaining recent infection data from a recent infection assay algorithm 

CEPHIA Public Use Dataset 

Download latest CEPHIA dataset 

See which recency assays are available by HIV subtype 

Create a dataset based on an algorithm and CEPHIA recency testing data. 

Estimating recency assay parametersFunctions for estimating test recent function characteristics 

Estimate a phi function, and output omega 

Integrate a phi function to calculate the MDRI or window period 

Simulating datasetsFunctions for simulating datasets 

Approximate testrecent function with given window and shadow period 

Generate a testrecent function that has a desired window and shadow period that satisfies the shape assumption of the adjusted estimator. 

Simulates crosssectional data based on epidemiological parameters. 

Generates prior testing data for positive subjects based on a prior testing distribution and prior testing probability 

Function to simulate studies that mimic the infection duration data from Duong et al. 2015 (or another external dataset) 