Description Usage Arguments Value Author(s)
Adjusts HIV prevalence and HIV testing coverage from ANC-RT data for missing data due to facilities missing reporting periods. This function has been developed to adjust HIV prevalence and HIV testing coverage from ANC-RT data for missing reporting periods within a facility. Inverse probability of censoring weighting is used to account for the missing reporting periods. The weights are calculated conditional on the facility. The adjustment is only made for missing reporting periods in between the first and last reported period in a facility to avoid adjusting for periods when the facility may have been inoperational. Specifically, the weights are calculated as followed:
w = \frac{1}{P(\text{Not being censored } | \text{ facility})}
The adjusted HIV prevalence and HIV testing coverage can be reported stratified by reporting period, year and/or subnational unit 1, according to user inputs.
1 2 | hiv_prv_ipcw(data, by_period = FALSE, by_snu1 = FALSE,
by_year = FALSE)
|
data |
The ANC-RT dataset. The functions check_data, data_clean and mt_adjust should have been run on the data to properly prepare the data for use here. The dataset must have the following variables:
|
by_period |
TRUE indicates that the results be stratified by reporting period. FALSE indicates that the results not be stratified. |
by_snu1 |
TRUE indicates that the results be stratified by snu1. FALSE indicates that the results not be stratified. |
by_year |
TRUE indicates that the results be stratified by year. FALSE indicates that the results not be stratified. |
A table (in dataframe format) indicating the results, stratified according to user inputs. The results table includes the following columns:
snu1
(only if results were stratified by snu1): The subnational unit 1.
time
(only if results were stratified by period and/or year): The time period. When results are stratified by year and reporting period, the digits "99" are suffixed to the year
(i.e. "201599" refers to the yearly result for 2015).
hiv_prv
: The HIV prevalence adjusted for missing reporting periods and all previous adjustments (i.e. data cleaning and adjustment for multiple testing, if performed).
hiv_cov
: The HIV testing coverage adjusted for missing reporting periods and all previous adjustments (i.e. data cleaning and adjustment for multiple testing, if performed).
Mathieu Maheu-Giroux
Brittany Blouin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.