Skip to Main Content

HIV-prevalence-screening-data

Methods for estimating disease prevalence from screening data when true disease status is verified by a gold-standard only among those who screened positive. Implementing Thomas EG, Peskoe SB, Spiegelman D. Prevalence estimation when disease status is verified only among test positives: Applications in HIV screening programs. Statistics in Medicine. 2017;1–14.

The .zip file below contains the following files:

  • all_code.R (R code for implementing frequentist and Bayesian estimators)
  • scenario1_logitnormal.stan (Stan file needed for Bayesian estimation in Scenario 1 with logistic normal prior)
  • scenario1_beta.stan (Stan file needed for Bayesian estimation in Scenario 1 with beta prior)
  • scenario2_logitnormal.stan (Stan file needed for Bayesian estimation in Scenario 2 with logistic normal prior)
  • scenario2_beta.stan (Stan file needed for Bayesian estimation in Scenario 2 with beta prior)

HIV-prevalence-screening-data