-
Notifications
You must be signed in to change notification settings - Fork 0
/
test script for Hans.R
23 lines (20 loc) · 1.03 KB
/
test script for Hans.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
vars_to_keep <- c("m49.region", "country.code.ISO.3166.alpha.3",
"version", "RegionID", "district", "ClusterID", "HouseholdID",
"year.of.interview", "month.of.interview", "age", "sex",
"sample.weight", "lon", "lat", "iwi", "survey_info.ultimate_area_unit",
"survey_info.psu", "survey_info.stratum", "survey_info.stratified",
"survey_info.region","survey_info.HH_weight")
superclusters <- FALSE
countries <- NULL
waves <- NULL
check.dhs.for.more.data <- TRUE
variable.packages <- c("wealth", "survey_info")
check.dhs.for.more.data <- TRUE
download.and.harmonise(dhs.user = dhs.user,
dhs.password = dhs.password,
vars.to.keep = vars.to.keep,
variable.packages = variable.packages,
superclusters = superclusters,
countries = countries,
waves = waves,
check.dhs.for.more.data = check.dhs.for.more.data)