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. https://doi.org/10.1002/sim.7568

The .zip file below contains the following files:
1.  all_code.R (R code for implementing frequentist and Bayesian estimators)
2. scenario1_logitnormal.stan (Stan file needed for Bayesian estimation in Scenario 1 with logistic normal prior)
3. scenario1_beta.stan (Stan file needed for Bayesian estimation in Scenario 1 with beta prior)
4. scenario2_logitnormal.stan (Stan file needed for Bayesian estimation in Scenario 2 with logistic normal prior)
5. scenario2_beta.stan (Stan file needed for Bayesian estimation in Scenario 2 with beta prior)
HIV-prevalence-screening-data