Impact of Treat-All policy on CD4 and viral load testing practices in Southern Africa in Stata.
# Impact of Treat-All policy on CD4 and viral load testing practices
This repository shares the Stata coding files used to produce the output published in the following:
### *JCE* 2021 manuscript
> Zaniewski E, Brazier E, Ostinelli CHD, Wood R, Osler M, et al. Regression discontinuity analysis demonstrated varied effect of Treat-All on CD4 testing among Southern African countries. *J Clin Epidemiol* 2021, 140:101-110. doi: 10.1016/j.jclinepi.2021.09.001
This analysis included HIV cohort data from The International epidemiology Databases to Evaluate AIDS Southern Africa collaboration (
iedea-sa.org), which collects de-identified patient-level data from participating cohorts in Lesotho, Malawi, Mozambique, South Africa, Zambia and Zimbabwe.
## Methods
We used regression discontinuity design (RDD) methods to determine whether adoption of national Treat-All polices (which occurred in 2016-2017) impacted CD4 and viral load testing practices of antiretroviral therapy (ART) programs in six Southern African countries. We used the date of ART initiation as a continuous eligibility assignment variable. Patients starting ART before Treat-All adoption were considered unexposed and patients starting ART on or after Treat-All adoption were considered exposed.
## Do files
All statistical analyses were performed using Stata version 15.1 (Stata Corp., College Station, TX, USA).
___
*Do file prep*
Do file combines the viral load (RNA) analysis data to the pre-ART CD4 analysis data and generates several variables used to produce the output included in the following tables and figure.
*Do file Table 1*
Creates the Table 1 of baseline characteristics for each analysis and combines the output into one table that is exported to MS Excel.
___
*Do file Table 2*
Calculates the following output for the pre-ART CD4 analysis by country:
1. Number of patients unexposed and exposed
2. RDD risk difference at the Treat-All threshold
3. TED value
4. Predicted outcome at …