This repo contains models and code to model the evolution and spread of insecticide resistance among malaria vectors in Africa. It uses a semi-mechanistic model to predict future levels of resistance across the continent, fitting closely to resistance data.
The published maps and time series are of the two-stage model: the
dynamical model, corrected by a second-stage geostatistical model of its
residuals (R/two_stage_maps.R, doc/two_stage_plan.md). The
cross-validation figures and the dynamical model’s own parameters
(e.g. the covariate effects) show the dynamical model separately.
Running order of scripts:
To be tidied: this may not be the correct order
- packages.R
- functions.R
- prep_admin.R
- prep_country_borders.R
- prep_bioassays.R
- prep_rasters.R
- prep_net_use_pyrethroid.R
- calculate_ingredient_fractions.R
- fit_model_glm.R
- fit_model.R
- chain_mode_check.R, then drop_stuck_chains.R with DROP_CHAINS from
its
.dropfile: leaves out chains in the minor mortality-floor mode (#37) - illustrate_validation.R
- mtm_ir_explore.R
- ploidy_demo.R
- predict.R
- two_stage_maps.R:
prepare,fit1-9,mapfor the six types not in LLINs andllin_effective, thenfigures(doc/two_stage_plan.md). The figure scripts below that show predictions read its outputs - summarise_model_fit.R
- visualise_colony_net_bioassay.R
- visualise_data.R
- fig_admin_maps.R
- fig_baseline_susceptibility.R
- fig_bioassay_maps.R
- fig_covariate_effects.R
- fig_covariate_maps.R
- fig_data_distribution.R
- fig_illustrate_bioassay_variability.R
- fig_internal_validation.R
- fig_ir_maps.R
- fig_ir_map_2025.R
- fig_ir_map_2000_2030.R
- fig_ento_epi_impact.R
- fig_temporal_preds_data.R
- fig_temporal_preds_net_use.R