## REQUIRED COLUMNS
req_cols <- c("region", "e_count", "iso3", "e_cat", "e_ind", "acronym","age", "sex", "other", "time", "formatted")
usethis::use_data(req_cols, overwrite = TRUE)
## PEPFAR countries
#table of PEPFAR countries
pepfar <- glamr::pepfar_country_list %>%
dplyr::select(country_pepfar = country, iso3 = country_iso)
usethis::use_data(pepfar, overwrite = TRUE)
# INDICATOR MAPPING AND VALIDATION ----------------------------------------
path <- "../../../Downloads/DataList_10_1_2024-7_42_27-PM.csv"
df_ind <- path %>%
read_edms() %>%
dplyr::filter(e_cat != "Uncertainty Analysis") %>%
dplyr::distinct(e_cat, e_ind, acronym, age, sex) %>%
parse_indicator() %>%
dplyr::distinct()
expected_ind <- df_ind %>%
dplyr::arrange(indicator_edms) %>%
dplyr::select(indicator_edms, age, sex, source = e_cat) %>%
dplyr::mutate(expected = TRUE) %>%
dplyr::distinct()
usethis::use_data(expected_ind, overwrite = TRUE)
# df_ind %>%
# dplyr::distinct(acronym, indicator_edms)
indicator_map <-
tibble::tribble(
~acronym, ~indicator_edms, ~indicator,
"Prev", "Adult HIV prevalence", "Prevalence",
"Prev", "Adult prevalence", "Prevalence",
"AM", "AIDS deaths", "Number AIDS Related Deaths",
"AM", "Annual AIDS deaths", "Number AIDS Related Deaths",
# "INC%", "Incidence", "Incidence (per 1,000)",
"INCper1k", "Incidence per 1000", "Incidence (per 1,000)",
"PMTCTneed", "Mothers needing PMTCT", "Number PMTCT Needing ART",
"NI", "New HIV infections", "Number New HIV Infections",
"TM-HIVpop", "Total deaths to HIV Population", "Number Total Deaths to HIV Population",
"PMTCTreceiving", "Mothers receiving PMTCT", "Number PMTCT Receiving ART",
"AMavertedART", "Deaths averted by ART", "Number Deaths Averted by ART",
"NIavertedPMTCT", "Infections averted by PMTCT", "Number Infections Averted by PMTCT",
"2nd81", "Among people living with HIV- the percent on ART", "Percent on ART of PLHIV",
"HIVPop", "HIV population", "Number PLHIV",
"ART-D", "Number on ART", "Number on ART of PLHIV",
"1st90", "Among people living with HIV- the percent who know their status", "Percent Known Status of PLHIV",
"2nd90", "Among people who know their HIV status- the percent on ART", "Percent on ART with Known Status",
"kos-D", "Number who know their HIV status", "Number Known Status of PLHIV",
"vls-D", "Number with suppressed viral load", "Number VLS of PLHIV",
"3rd73", "Among people living with HIV- the percent with suppressed viral load", "Percent VLS of PLHIV",
"3rd90", "Among people on ART- the percent with suppressed viral load", "Percent VLS on ART",
"IMR", "Incidence mortality ratio (IMR)", "Incidence mortality ratio (IMR)"
)
usethis::use_data(indicator_map, overwrite = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.