Learn R Programming

surveyPrev

R package to process and map prevalence of common DHS indicators.

Installation

To install and load the latest version of surveyPrev package, use the following command.

library(devtools)
install_github("richardli/SUMMER")
install_github("richardli/surveyPrev")

library(surveyPrev)

Please note that the surveyPrev package is developed concurrently with the SUMMER package, so it is highly recommended that you update both packages to the latest version on Github first.

Copy Link

Version

Install

install.packages('surveyPrev')

Monthly Downloads

255

Version

1.0.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Qianyu Dong

Last Published

April 10th, 2024

Functions in surveyPrev (1.0.0)

getDHSdata

Download DHS survey data
nt_ch_stunt

CN_NUTS_C_HA2 stunting Children stunted NT_CH_NUT.do PR "Stunted child under 5 years" Stunting rate (Prevalence of stunted (HAZ < -2) children under five (0-59 months)) Percentage of children under age five stunted (below -2 standard deviations of height-for-age according to the WHO standard).
get_api_table

Function to obtain subnational estimates from DHS API
getUR

Function to threshold population raster to obtain urban/rural fractions by Admin1 and Admin2 areas
intervalPlot

Get scatter plot for any two model results
ph_sani_improve

WS_TLET_H_IMP Percentage of households using an improved sanitation facility PH_SANI.do PR ph_sani_improve "Access to improved sanitation" country-specific
ph_sani_basic

WS_TLET_P_BAS Population with access to a basic sanitation service WS_TLET_P_BAS in DHS API PH_SANI.do PR ph_sani_basic "Basic sanitation facility"
nt_wm_thin

AN_NUTS_W_THN Women who are thin according to BMI (<18.5) NT_WM_NUT.do "Thin BMI - women" IR !!!!!!!! Underweight (Prevalence of underweight (BMI < 18.5) women of reproductive age)
rh_anc_4vs

RH_ANCN_W_N4P ancvisit4+ RH_ANCN_W_N4P IR Antenatal visits for pregnancy: 4+ visits
hv_hiv_pos

HA_HIVP_W_HIV hv_hiv_pos "HIV positive test result"
surveyPrevIndicators

Table of built-in indicators.
ml_hhaccess

ML_ITNA_P_ACC Households with at least one insecticide-treated mosquito net (ITN) for every two persons who stayed in the household the previous night Persons with access to an insecticide-treated mosquito net (ITN) ML_NETS_HH.do HR Households with >1 ITN per 2 household members Percentage of households with at least one ITN for every 2 persons who stayed in the household last night
watersource_adj

WS_SRCE_P_BAS Population using a basic water source PH_WATER.do ph_wtr_basic "Basic water service" PR
nt_ch_wast

CN_NUTS_C_WH2 wasting Children wasted NT_CH_NUT.do PR "Wasted child under 5 years" Wasting rate (Prevalence of wasted (HAZ < -2) children under five (0-59 months)) Percentage of children under age five with a weight-for-height z-score (WHZ) more than two standard deviations below the median WHO growth standards.
scatterPlot

Get scatter plot for any two model results
rh_del_pvskill

RH_DELA_C_SKP IR or BR Assistance during delivery from a skilled provider
nt_ch_any_anem

CN_ANMC_C_ANY Children with any anemia "Any anemia - child 6-59 months" PR NT_CH_NUT.do Children under five with any anemia
getDHSgeo

Download DHS geo data
nt_ebf

CN_BRFS_C_EXB Children exclusively breastfed NT_IYCF.do KR "Exclusively breastfed - last-born under 6 months" Children exclusively breastfed (Prevalence of exclusive breastfeeding of children under six months of age)
getDHSindicator

Process DHS data
nt_wm_any_anem

AN_ANEM_W_ANY womananemia nt_wm_any_anem "Any anemia - women" NT_WM_NUT.do Percentage of women aged 15-49 classified as having any anemia
aggPopulation

Get population information
NMR

CM_ECMR_C_NNR nmr CM_ECMR_C_NNR BR (not from dhs github) Neonatal mortality rate !!!!!!
ch_allvac_either

CH_VACS_C_BAS Children with all 8 basic vaccinations (age 12-23) "All basic vaccinations according to either source"
ZambiaAdm2

Admin 2 Polygon Map for Zambia.
ch_meas_either

CH_VACC_C_MSL MCV: Measles Measles vaccination received Percentage of children (age 12-23) ch_meas_either CH_VAC.do KR "Measles vaccination according to either source"
aggSurveyWeight

Get survey weight by admin levels
adminInfo

Get admin information
ch_diar_ors_rhf

CH_DIAT_C_ORT KR Diarrhea treatment (Children under five with diarrhea treated with either ORS or RHF)
ch_novac_either

CH_VACS_C_NON KR Children with no vaccinations (age 12-23)
fp_unmet_tot

FP_NADA_W_UNT #unmet_family IRdata women with an unmet need for family planning for spacing and limiting
directEST

Calculate direct estimates
ch_pent3_either

CH_VACC_C_DP3 DPT3 KR Percentage of children (age 12-23) Pentavalent 3rd dose vaccination according to either source"
ch_pent1_either

CH_VACC_C_DP1 KR Percentage of children (age 12-23) Pentavalent 1rd dose vaccination according to either source"
fhModel

Calculate smoothed direct estimates
clusterModel

Calculate cluster model estimates using beta binomial model
clusterInfo

Get cluster information
ZambiaPopWomen

Population estimates for Women of age 15 to 49 in Zambia in 2018.
ZambiaAdm1

Admin 1 Polygon Map for Zambia.
fp_cruse_mod

FP_CUSM_W_MOD IRdata Modern contraceptive prevalence rate (Married women currently using any modern method of contraception)