Estimating cross-sectional incidence

Point and variance estimators for cross-sectional incidence.

estSnapshot()

Snapshot estimator and variance (Kaplan and Brookmeyer 1999)

estAdjusted()

Adjusted estimator and variance (Kassanjee et al. 2012)

estEnhanced()

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 algorithm

Functions for obtaining recent infection data from a recent infection assay algorithm

cephia

CEPHIA Public Use Dataset

downloadCephia()

Download latest CEPHIA dataset

getRitaOptions()

See which recency assays are available by HIV subtype

createRitaCephia()

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

Estimating recency assay parameters

Functions for estimating test recent function characteristics

estRitaProperties()

Estimate a phi function, and output omega

integratePhi()

Integrate a phi function to calculate the MDRI or window period

Simulating datasets

Functions for simulating datasets

getTestRecentFunc()

Approximate test-recent function with given window and shadow period

getTestRecentFuncAdj()

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

simCrossSect()

Simulates cross-sectional data based on epidemiological parameters.

simPriorTests()

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

simExternal()

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