- Add
clear_rdhs_cache
argument tordhs::download_dataset()
call
- Extract individual survey weights for all respondents and adjust male survey weights such that pooled male/female data are weighted representative of the full adult population (https://userforum.dhsprogram.com/index.php?t=msg&th=6387&goto=13190&#msg_13190).
- Patch [
create_surveys_dhs()
] to enable extraction of surveys from more than one country in one function call (change== iso3
to%in% iso3
).
- Patch
assert_pop_data_check()
andassert_area_id_check()
to specifydplyr::setdiff()
(instead of basegenerics::setdiff()
.
- Patch
create_surveys_dhs()
to ensure that numeric is always returned forMinAgeMen
,MaxAgeMen
,MinAgeWomen
,MaxAgeWomen
(issue #13, @athowes).
- Use download.file(..., mode = "wb") in WorldPop extraction.
- Handle countries where no surveys have MR datasets (e.g. Congo).
- Handle countries where no surveys have survey cluster datasets (e.g The Gambia).
- Patch: add area_name column to population dataset extract.
- Require column
area_name
invalidate_naomi_population()
.
-
Added a
NEWS.md
file to track changes to the package. -
Add functions
naomi_extract_worldpop()
andnaomi_extract_gpw()
to create Naomi population datasets from WorldPop and GPW v4.11 population raster datasets.