zwe_eas <- zwe_eas |>
mutate(province = as.character(province),
urban_rural = as.character(urban_rural))
inputs <- read.csv("data/zwe_mics2019_province.csv") |>
mutate(under5_hh = under5 / interviewed,
resp = interviewed / sampled * measured / under5)
inputs |>
select(province, stunting, stunting_deff, under5_hh, resp) |>
mutate(across(where(is.numeric), \(x) round(x, 2)))
#> province stunting stunting_deff under5_hh resp
#> 1 Bulawayo 0.19 1.20 0.46 0.91
#> 2 Manicaland 0.31 2.25 0.64 0.90
#> 3 Mashonaland Central 0.28 2.36 0.56 0.91
#> 4 Mashonaland East 0.24 1.28 0.50 0.89
#> 5 Mashonaland West 0.22 1.89 0.60 0.90
#> 6 Matabeleland North 0.24 0.45 0.63 0.90
#> 7 Matabeleland South 0.22 1.48 0.56 0.86
#> 8 Midlands 0.22 1.17 0.53 0.90
#> 9 Masvingo 0.21 1.38 0.60 0.86
#> 10 Harare 0.19 1.71 0.52 0.8226 A MICS for Zimbabwe
Suppose the Zimbabwe National Statistics Agency (ZIMSTAT) plans the next Multiple Indicator Cluster Survey (MICS), after the 2019 round. It wants estimates for the country, for urban and rural areas, and for each of the ten provinces. The decisions are those of the Gambia DHS, and Parts II and III explain each. This chapter takes them the way MICS surveys do (Khan and Hancioglu 2019), and dwells on what differs. A MICS states its target as a relative margin of error, pools its design effects, fits its target to a budget, works on a frame of small modeled areas, segments its large clusters and tests drinking water in a subsample.
The inputs come from the 2019 report (Zimbabwe National Statistics Agency and UNICEF 2019). The frame is zwe_eas, the 107,250 pre-EAs of WorldPop (Qader et al. 2024), with household counts calibrated to the ward totals of the 2022 census. They are not the census EAs, and the listing and segment counts below are synthetic.
| Decision | Zimbabwe | Chapter |
|---|---|---|
| 1 Domains and strata | 10 provinces, 20 strata of province by residence | 7 |
| 2 Inputs | 2019 MICS, Tables SR.1.1, SD.1, SD.2 and SE.1 to SE.13 | 7 |
| 3 Targets | RME of stunting at most 20% by province, at \(z = 2\) | 8 |
| 4 Design effect and take | One design effect for every province, 26 households | 9 |
| 5 and 6 Size and allocation | Quotas by province with a floor, power 0.8 within | 10 |
| 7 and 8 Frame and PSUs | Pre-EAs merged to 80 households, systematic PPS | 11 |
| 9 Households | Segments above 300 households, 26 households, water in 5 | 12 |
26.1 Inputs and one design effect
The yields of a selected household come from Table SR.1.1, as in Chapter 7. A household yields children for the stunting estimate when it is interviewed, and a listed child counts when the child’s height is measured.
MICS tables give the design effect itself, so nothing needs squaring. The province values run from 0.45 in Matabeleland North to 2.36 in Mashonaland Central, each estimated from 40 to 54 clusters. Chapter 9 replaced such noisy values with an urban and a rural correlation. The MICS practice is simpler. It takes the national design effect, 1.931 in Table SE.1, divides out the weighting loss of the 2019 allocation, and gives every province what remains (Kish 1965).
strata_2019 <- bind_rows(
mutate(inputs, province, N = N_urban, n = n_urban, .keep = "none"),
mutate(inputs, province, N = N_rural, n = n_rural, .keep = "none")
) |>
filter(n > 0)
kish_2019 <- as.numeric(design_effect(
strata = data.frame(N = strata_2019$N, n = strata_2019$n)))
clustering_deff <- 1.931 / kish_2019
c(kish_2019 = kish_2019, clustering_deff = clustering_deff)
#> kish_2019 clustering_deff
#> 1.102652 1.751232The 2019 allocation lost 10% to unequal weights, and every province receives a design effect of 1.75. The take stays at 26 households, the take with which it was measured.
26.2 The target and the budget
The MICS formula sizes on a relative margin of error at \(z = 2\) (Chapter 8). The 2019 round accepted 15% for each province. At that target the ten provinces need far more than 2019 fielded.
targets <- inputs |>
mutate(province, name = "stunting", p = stunting, rmoe = 0.15,
alpha = 2 * pnorm(-2), deff = clustering_deff,
resp_rate = resp, eligible_per_unit = under5_hh, .keep = "none")
at_15 <- n_multi(targets, domains = "province")$domains |>
mutate(eas = ceiling(.n / 26))
sum(at_15$eas)
#> [1] 847That is 1.8 times the 462 clusters of 2019. The 2019 round met the same wall and settled on about 1,000 to 1,400 households per province. Suppose the budget allows about as much fieldwork as in 2019. A 20% RME with the 2019 floor of 1,000 households fits it.
targets$rmoe <- 0.20
quotas <- n_multi(targets, domains = "province",
min_n_domain = 1000)$domains |>
rename(households = .n, binding = .binding) |>
mutate(eas = ceiling(households / 26))
quotas |>
mutate(households = round(households))
#> province households binding eas
#> 1 Bulawayo 1736 stunting 67
#> 2 Manicaland 1000 (min_n_domain) 39
#> 3 Mashonaland Central 1000 (min_n_domain) 39
#> 4 Mashonaland East 1275 stunting 50
#> 5 Mashonaland West 1165 stunting 45
#> 6 Matabeleland North 1000 (min_n_domain) 39
#> 7 Matabeleland South 1247 stunting 48
#> 8 Midlands 1293 stunting 50
#> 9 Masvingo 1272 stunting 49
#> 10 Harare 1772 stunting 69
sum(quotas$eas)
#> [1] 495Bulawayo and Harare need the most, because stunting is low there and households have few children. The floor binds in three provinces.
26.3 Quotas across provinces, a power rule within
Chapter 10 found that quotas cost the Gambian national estimate a large weighting loss, because the LGAs differ greatly in size. Zimbabwe’s provinces differ much less, and the loss is small.
province_N <- zwe_eas |>
summarise(N = sum(households), U5 = sum(children_under5), .by = province)
quotas <- left_join(quotas, province_N, by = "province")
quota_kish <- as.numeric(design_effect(
strata = data.frame(N = quotas$N, n = quotas$eas)))
quota_kish
#> [1] 1.149069The quotas lose 15% to unequal weights, against 10% for the 2019 allocation, far less than the Gambian quotas. The plan keeps the quotas. Within each province, the 2019 round split the clusters between urban and rural with a power of 0.8, a little more urban than proportional, which helps the national urban estimate.
frame_strata <- zwe_eas |>
summarise(N = sum(households), .by = c(province, urban_rural))
strata_plan <- frame_strata |>
left_join(select(quotas, province, province_n = eas), by = "province") |>
mutate(n = n_alloc(data.frame(stratum = urban_rural, N = N),
n = first(province_n), alloc = "power",
alloc_q = 0.8, min_n_stratum = 2)$detail$n_int,
.by = province)
strata_plan |>
select(province, urban_rural, n) |>
tidyr::pivot_wider(names_from = urban_rural, values_from = n,
values_fill = 0) |>
mutate(total = Urban + Rural)
#> # A tibble: 10 × 4
#> province Urban Rural total
#> <chr> <int> <int> <int>
#> 1 Bulawayo 64 3 67
#> 2 Harare 67 2 69
#> 3 Manicaland 15 24 39
#> 4 Mashonaland Central 10 29 39
#> 5 Mashonaland East 23 27 50
#> 6 Mashonaland West 19 26 45
#> 7 Masvingo 13 36 49
#> 8 Matabeleland North 9 30 39
#> 9 Matabeleland South 13 35 48
#> 10 Midlands 20 30 50
sum(strata_plan$n)
#> [1] 495Each row adds up to the province quota. Bulawayo and Harare are almost all urban, and the rural parts of the other provinces take most of their clusters.
26.4 A frame of small areas
The pre-EAs are much smaller than census EAs. Half of them hold 23 households or fewer, below the take. A take of 26 from 30 households would be nearly the whole cluster, with a design effect unlike the one measured in 2019 on census EAs of about 100. merge_psus() therefore merges them to at least 80 households, the lower end of the segment size the 2019 listing aimed for (Chapter 11). Within a ward the pre-EA ids do not follow the ground, so merged pre-EAs share a ward but need not touch. A statistics office would merge on the map instead.
ea_clusters <- zwe_eas |>
arrange(province, urban_rural, district, ward_pcode, ea_id) |>
mutate(cluster = merge_psus(ea_id, min_size = 80, size = households),
.by = c(province, urban_rural))
clusters <- ea_clusters |>
summarise(district = first(district), ward_pcode = first(ward_pcode),
households = sum(households), .by = c(province, urban_rural, cluster))
nrow(clusters)
#> [1] 34208
quantile(clusters$households, c(0.5, 0.95, 1))
#> 50% 95% 100%
#> 96 189 2767The largest clusters hold far more households than a team can list, so the design adds a stage of segments between the clusters and the households.
mics_design <- sampling_design("A MICS for Zimbabwe") |>
add_stage("Clusters") |>
stratify_by(province, urban_rural) |>
cluster_by(cluster) |>
draw(n = select(strata_plan, province, urban_rural, n),
method = "pps_systematic", mos = households,
control = c(district, ward_pcode)) |>
add_stage("Segments") |>
cluster_by(segment) |>
draw(n = 1, method = "pps_brewer", mos = segment_households) |>
add_stage("Households") |>
draw(n = 26, method = "systematic")
frame_summary(mics_design, clusters, stages = 1, detail = "unit") |>
summarise(largest = max(chance), certain = sum(is_certainty))
#> # A tibble: 1 × 2
#> largest certain
#> <dbl> <int>
#> 1 0.333 0
selected <- execute(mics_design, clusters, stages = 1, seed = 2030)No cluster reaches certainty. frame_summary() checks the first stage on the cluster frame alone, before any segment exists.
selected |>
as.data.frame() |>
mutate(ea_id = cluster) |>
map_eas(country = "zwe", outline = "districts", top = "provinces",
size = 0.9)
26.5 Segments, listing and the water subsample
A field team divides each selected cluster above 300 households into segments of about 100 along visible boundaries and counts their dwellings. A cluster that is not segmented is its own single segment, selected with probability one. The counts below are synthetic.
set.seed(2031)
segment_register <- selected |>
as.data.frame() |>
mutate(segments = if_else(households > 300, round(households / 100), 1)) |>
tidyr::uncount(segments, .id = "part") |>
mutate(share = rgamma(n(), shape = 20),
segment_households = pmax(1, round(households * share / sum(share))),
.by = cluster) |>
mutate(province, urban_rural, cluster,
segment = cluster * 100 + part, segment_households, .keep = "none")
segments <- execute(selected, segment_register, stages = 2, seed = 2032)
sum(selected$households > 300)
#> [1] 23
segmented <- segment_register$cluster[duplicated(segment_register$cluster)][1]
filter(segment_register, cluster == segmented)
#> province urban_rural cluster segment_households segment
#> 1 Bulawayo Urban 20325 96 2032501
#> 2 Bulawayo Urban 20325 120 2032502
#> 3 Bulawayo Urban 20325 118 2032503
#> 4 Bulawayo Urban 20325 101 2032504
#> 5 Bulawayo Urban 20325 112 203250523 of the 495 selected clusters are segmented. The register lists the segments of the first of them, with their dwelling counts. One segment per cluster is selected with probability proportional to its count.
The listing of each selected segment and the draw of 26 households follow, as in Chapter 12. MICS then tests drinking water in 5 of the 26, a subsample within each cluster like the men’s half of a DHS.
set.seed(2033)
listing <- segments |>
as.data.frame() |>
mutate(listed = pmax(1L, as.integer(round(
segment_households * exp(rnorm(n(), log(1.05), 0.2)))))) |>
reframe(hh_id = seq_len(listed),
.by = c(province, urban_rural, cluster, segment))
issued <- execute(segments, listing, seed = 2034)
water_quality <- sampling_design("Water quality testing") |>
stratify_by(cluster) |>
draw(n = 5, method = "systematic") |>
execute(issued, seed = 2035)
c(households = nrow(issued), water_tests = nrow(water_quality))
#> households water_tests
#> 12870 2475
issued |>
as.data.frame() |>
filter(cluster %in% c(segmented, first(cluster[segment %% 100 == 1 &
households <= 300]))) |>
distinct(cluster, households, segment_households, .weight_1, .weight_2,
.weight_3, .weight) |>
mutate(across(starts_with(".weight"), \(x) round(x, 2)))
#> cluster households segment_households .weight_1 .weight_2
#> 1 8812 81 81 17.14 1.00
#> 2 20325 547 118 4.99 4.64
#> .weight_3 .weight
#> 1 2.73 46.82
#> 2 5.35 123.57A household’s weight carries one more factor than in The Gambia: the inverse of its segment’s share of the cluster. The table shows it for two clusters. In the segmented one, .weight_2 is the cluster’s households over those of its segment. In the cluster that was not segmented, .weight_2 is 1. In both clusters, .weight_3 is the listed households over 26. The water subsample’s weights are the household weights times 26/5.
26.6 Backtest
The plan can be set beside the 2019 allocation of Table SD.2, and the RME it predicts beside the published one, twice the CV of Tables SE.4 to SE.13.
province_rme <- function(eas) {
targets |>
select(-rmoe) |>
mutate(n = 26 * eas[province]) |>
prec_multi(domains = "province") |>
_$detail |>
pull(.rmoe, name = province)
}
eas_2019 <- with(inputs, setNames(n_urban + n_rural, province))
eas_plan <- with(quotas, setNames(eas, province))
inputs |>
mutate(province, eas_2019 = eas_2019[province], eas = eas_plan[province],
rme_2019 = 2 * stunting_cv,
predicted_2019 = round(province_rme(eas_2019)[province], 3),
.keep = "none")
#> province eas_2019 eas rme_2019 predicted_2019
#> 1 Bulawayo 40 67 0.214 0.258
#> 2 Manicaland 50 39 0.164 0.145
#> 3 Mashonaland Central 46 39 0.202 0.173
#> 4 Mashonaland East 48 50 0.174 0.202
#> 5 Mashonaland West 48 45 0.202 0.193
#> 6 Matabeleland North 41 39 0.098 0.191
#> 7 Matabeleland South 40 48 0.202 0.219
#> 8 Midlands 47 50 0.168 0.206
#> 9 Masvingo 48 49 0.180 0.202
#> 10 Harare 54 69 0.222 0.225With the 2019 clusters, the single design effect predicts each published RME within 3 points in seven provinces. The largest gap is Matabeleland North, published at 9.8% with its design effect of 0.45, where the plan predicts 19%. That gap is the noise of a province design effect, which the plan set aside on purpose.
A national RME from the province errors, weighted by children under five, backtests the design effect itself.
national_rme <- function(eas) {
rme <- province_rme(eas)
w <- province_N$U5 / sum(province_N$U5)
p <- inputs$stunting[match(province_N$province, inputs$province)]
sqrt(sum(w^2 * (rme[province_N$province] * p)^2)) / sum(w * p)
}
c(design_2019 = national_rme(eas_2019), plan = national_rme(eas_plan))
#> design_2019 plan
#> 0.06450884 0.06480390For the 2019 allocation the formula gives 6.5%, against the 6.5% the report published. The pooled design effect describes the national clustering well.
A virtual survey of this design needs a synthetic Zimbabwe calibrated to the 2019 report, which the book’s data does not yet hold. Chapter 29 describes how to build one.
26.7 What the plan assumes
- One design effect describes every province. It was measured with a take of 26 households in census EAs of about 100, which the merged clusters keep.
- The yields and response rates of 2019 carry over. Harare completed 88% of its sampled households, the lowest share of the ten.
- The frame’s counts measure cluster sizes well. They are calibrated to the 2022 census by ward, but the pre-EA boundaries and residence classes are modeled.
- Other indicators get the precision this sample gives them. A rare outcome fares worst. Wasting, at 2.9% of children, had a national RME of 19% in 2019 (Table SE.1), and a province estimate would be far wider.
26.8 Exercises
- Size the provinces with their own 2019 design effects instead of the pooled one. Which provinces change most?
- Back an intraclass correlation out of the pooled design effect, with the children measured per cluster, and size the provinces for a take of 20.
- Replace the quotas with the joint allocation of Chapter 10, with a national RME of 12% and 20% by province.
- How many households does a take of 26 leave untouched in a merged cluster of 80? What does that mean for the design effect?
- Replace
deff = clustering_deffbydeff = stunting_deff. Bulawayo changes most, from 67 to 46 EAs, since its own design effect of 1.20 is below the pooled 1.75. Mashonaland Central gains 8. Matabeleland North stays at its floor of 39, which its design effect of 0.45 would put far below. - \(b\) is the measured children per cluster, about 0.5 per household times
varcomp(deff = clustering_deff, take = b)gives \(\rho\), and \(1 + (20 \times 0.5 - 1)\rho\) the design effect at a take of 20.
- Build the strata, measures and targets tables as in Chapter 10, with
rmoetargets andalpha = 2 * pnorm(-2). - 54, so a third of the cluster is interviewed. The design effect measured on census EAs of about 100 still applies, since the take is the same share of a cluster of similar size.