{'fraction_non_alphanumeric': 0.021803182086034177, 'fraction_numerical': 0.0005892751915144372, 'mean_word_length': 6.1645569620253164, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Cross‐sectional human immunodeficiency virus incidence estimation accounting for heterogeneity across communities

Accurate estimation of human immunodeficiency virus (HIV) incidence rates is crucial for the monitoring of HIV epidemics, the evaluation of prevention programs, and the design of prevention studies. Traditional cohort approaches to measure HIV incidence require repeatedly testing large cohorts of HIV‐uninfected individuals with an HIV diagnostic test (eg, enzyme‐linked immunosorbent assay) for long periods of time to identify new infections, which can be prohibitively costly, time‐consuming, and subject to loss to follow‐up. Cross‐sectional approaches based on the usual HIV diagnostic test and biomarkers of recent infection offer important advantages over standard cohort approaches, in terms of time, cost, and attrition. Cross‐sectional samples usually consist of individuals from different communities. However, small sample sizes limit the ability to estimate community‐specific incidence and existing methods typically ignore heterogeneity in incidence across communities. We propose a permutation test for the null hypothesis of no heterogeneity in incidence rates across communities, develop a random‐effects model to account for this heterogeneity and to estimate community‐specific incidence, and provide one way to estimate the coefficient of variation. We evaluate the performance of the proposed methods through simulation studies and apply them to the data from the National Institute of Mental Health Project ACCEPT, a phase 3 randomized controlled HIV prevention trial in Sub‐Saharan Africa, to estimate the overall and community‐specific HIV incidence rates.