national <- filter(mwi_eas, !camp)
frame_strata <- national |>
summarise(eas = n(), N = sum(households), .by = stratum)
inputs <- read.csv("data/mwi_ihs4_district.csv") |>
left_join(frame_strata, by = "stratum") |>
mutate(eas_ihs4 = round(n_ihs4 / 16))
inputs |>
select(stratum, poverty, se, deff_ihs4, eas_ihs4, eas, N) |>
head(7)
#> stratum poverty se deff_ihs4 eas_ihs4 eas N
#> 1 Chitipa 73.8 2.5 0.5 24 361 49661
#> 2 Karonga 57.1 7.0 5.4 24 413 74953
#> 3 Nkhata Bay 57.7 3.1 0.8 24 376 52274
#> 4 Rumphi 53.6 4.5 1.4 24 316 47060
#> 5 Mzimba 42.9 5.1 1.9 24 1493 195459
#> 6 Likoma 31.4 1.2 0.0 12 16 2892
#> 7 Mzuzu City 9.7 3.2 2.2 24 205 49564
range(inputs$deff_ihs4)
#> [1] 0.0 11.728 An integrated household survey for Malawi
The National Statistical Office of Malawi (NSO) measures poverty with its Integrated Household Survey (IHS), a survey of household consumption run every few years. The sixth round, IHS6, ran from July 2024 to July 2025 (National Statistical Office 2026b). It selected 768 census EAs in 32 strata and 16 households in each, spread the EAs over twelve months so that the year covers every season (National Statistical Office 2024), and sampled Dzaleka refugee camp from a frame of its own for the first time.
Suppose NSO plans the seventh round. The decisions are those of Parts II and III, and this chapter dwells on what a survey of consumption changes. The plan works from the IHS4 errors, sizes on an absolute margin of error, gives districts their EAs in sets of twelve months, meets a domain where the sample is most of the frame, replaces nonresponding households, and samples a refugee camp separately.
The district errors of IHS5 are published (National Statistical Office 2021), but they look like those of a simple random sample. Machinga’s poverty rate of 62.3% has a standard error of 2.6 points. With 384 households drawn at random, it would be \(\sqrt{0.623 \times 0.377 / 384} = 0.025\), or 2.5 points. The national error of 0.5 points also matches the 11,434 households of the round taken at random. A design effect near 1 is not credible for a survey clustered in EAs, whose IHS4 design effect was 5.7, so the plan does not reuse these errors. It starts, as NSO did, from those of IHS4 (2016-17), which NSO tabulated to plan IHS5 in its Basic Information Document (National Statistical Office 2020). NSO published the IHS6 errors, computed with the strata and clusters of the design, in June 2026 (National Statistical Office 2026a). A plan made after that date would start from them. The frame is mwi_eas, with the EA codes and household counts of the 2018 census and boundaries modeled with decoupage inside the census traditional authorities (TAs).
| Decision | Malawi | Chapter |
|---|---|---|
| 1 Domains and strata | 28 districts and 4 cities, 32 strata, residence sorted within | 7 |
| 2 Inputs | IHS4 district poverty, tabulated in the IHS5 BID | 7 |
| 3 Targets | Margin of error of poverty at most 10 points by district | 8 |
| 4 Design effect and take | One correlation, 16 households | 9 |
| 5 and 6 Size and allocation | Sets of 12 EAs, 768 EAs shared in proportion above floors | 10 |
| 7 and 8 Frame and PSUs | EAs under 50 households merged, systematic PPS, 12 months | 11, 19 |
| 9 Households | 16 to interview and 5 replacements per EA, drawn each month from that month’s listing | 12 |
| Camp | Dzaleka shelters, spatially balanced | 23 |
28.1 One correlation for every district
The districts are the domains, and the four cities are domains of their own. Urban and rural areas are not separate strata, since most districts hold only a few urban EAs. Sorting the frame by residence spreads the sample over both instead. The EAs of Dzaleka camp are left out of the national frame.
Each row is a stratum of the Northern region, with its IHS4 poverty rate and standard error in percent, its design effect and EAs in IHS4, and its EAs and households in the 2018 frame. Likoma has 16 EAs in all. The district design effects run from 0 to 11.7, each estimated from about 24 EAs. A national design effect of 5.7 rests on all of them. Divided by the weighting loss of the IHS4 allocation, which gave every district about the same sample, it gives one intraclass correlation at the take of 16, as in Chapter 9.
kish_ihs4 <- as.numeric(design_effect(
strata = data.frame(N = inputs$N, n = inputs$eas_ihs4)))
icc <- varcomp(deff = 5.7 / kish_ihs4, take = 16)$icc
deff_16 <- as.numeric(design_effect(icc = icc, take = 16))
c(kish_ihs4 = kish_ihs4, icc = icc, deff = deff_16)
#> kish_ihs4 icc deff
#> 1.2946521 0.2268485 4.4027271The correlation is 0.23, far above that of contraceptive use in The Gambia. Poverty depends on land, markets and harvests, which neighbors share. With 16 households per EA, the design effect is 4.4 in every district.
28.2 An absolute target in sets of twelve
When NSO reviewed the IHS4 errors, it judged the district estimates by their margin of error and found it below 10 points in 25 districts (National Statistical Office 2020). The plan takes that as its target. Under an absolute target, poverty near 50% is the most expensive and the cities, near 10%, the cheapest (Chapter 8).
targets <- inputs |>
mutate(stratum, name = "poverty", p = poverty / 100, moe = 0.10,
deff = deff_16, .keep = "none")
requirements <- n_multi(targets, domains = "stratum")$domains |>
mutate(sets = .n / (16 * 12), floor_sets = pmax(1, round(sets)))
count(requirements, floor_sets, name = "districts")
#> floor_sets districts
#> 1 1 5
#> 2 2 27
requirements |>
left_join(select(inputs, stratum, poverty), by = "stratum") |>
mutate(stratum, poverty, households = round(.n), sets = round(sets, 2),
floor_sets, .keep = "none") |>
arrange(sets) |>
head(5)
#> stratum sets floor_sets poverty households
#> 1 Blantyre City 0.65 1 8.0 124
#> 2 Mzuzu City 0.77 1 9.7 148
#> 3 Zomba City 1.17 1 15.8 225
#> 4 Phalombe 1.23 1 83.2 236
#> 5 Lilongwe City 1.30 1 18.0 250The second table lists the five strata that need the fewest households. The four cities and Phalombe, with poverty far from 50%, need about one set or less.
The EAs of a district are spread over twelve months, the same number each month, so a district receives its EAs in sets of 12. A district near 50% needs about two sets. Rounding every district up would need far more than the 768 EAs of IHS6, so the plan rounds to the nearest set, with at least one.
28.3 Likoma
Likoma, two islands in Lake Malawi, asks for two sets, but its frame holds only 16 EAs. The sizing formula assumes that the EAs are a small sample from many. In Likoma most of them are in the sample, and the variance between EAs nearly vanishes, which explains its IHS4 design effect of 0.0. The finite population correction of the first stage measures this. With \(a\) of the \(A\) EAs selected, \(m\) households in each and correlation \(\rho\), the variance of a proportion is about \[ P(1 - P) \left[ \left(1 - \frac{a}{A}\right) \frac{\rho}{a} + \frac{1 - \rho}{a m} \right]. \]
likoma_moe <- function(a, A = 16, m = 16, p = 0.314) {
qnorm(0.975) * sqrt(p * (1 - p) *
((1 - a / A) * icc / a + (1 - icc) / (a * m)))
}
c(ihs6 = likoma_moe(2), one_set = likoma_moe(12))
#> ihs6 one_set
#> 0.3195547 0.0851039
requirements <- requirements |>
mutate(floor_sets = if_else(stratum == "Likoma", 1, floor_sets))IHS6 gave Likoma two EAs, a margin of 32 points, although its report says the sample “was designed to provide reliable estimates as well for the district” (National Statistical Office 2026b). One set of 12 of the 16 EAs gives 8.5 points. This is the case where the omitted correction of Chapter 13 matters most.
28.5 Frame, design and months
The IHS5 frame holds no EA below 50 households. NSO merged the smaller ones with a neighbor, so that each EA can supply its 16 households and its replacements. The frame is sorted within each stratum by residence, TA and a curve through the EAs of each TA, and the design sorts by residence and TA before the systematic draw. The second stage takes 21 households, 16 to interview and 5 replacements.
ea_psus <- national |>
mutate(psu = merge_psus(ea_id, min_size = 50, size = households),
.by = stratum)
psu_frame <- ea_psus |>
summarise(urban_rural = first(urban_rural), ta = first(ta),
households = sum(households), .by = c(region, stratum, psu))
ihs_design <- sampling_design("An IHS for Malawi") |>
add_stage("EAs") |>
stratify_by(stratum) |>
cluster_by(psu) |>
draw(n = select(plan, stratum, n = eas),
method = "pps_systematic", mos = households,
control = c(urban_rural, ta)) |>
add_stage("Households") |>
draw(n = 21, method = "systematic")
frame_summary(ihs_design, psu_frame, stages = 1, detail = "pool") |>
filter(n_certainty > 0) |>
select(stratum, N, n_target, n_certainty)
#> # A tibble: 1 × 4
#> stratum N n_target n_certainty
#> <chr> <dbl> <dbl> <int>
#> 1 Likoma 16 12 1Only Likoma has a certainty EA. It selects 12 of its 16, and its largest holds more than a twelfth of its households.
panels = subrounds(12) partitions the selected EAs of each stratum into 12 months at random along the frame order, the subrounds of one yearly period, so every district has the same number of EAs each month and each month estimates the whole country. Chapter 19 explains subrounds and how they differ from rotation groups.
selected <- execute(ihs_design, psu_frame, stages = 1, seed = 2027,
panels = subrounds(12))
#> Stage 1: 1 unit in 1 of 32 pools is selected with certainty.
#> ℹ A unit whose share of its pool's size is above 1 / n has
#> chance 1, and the rest of the take is spread over the other
#> units.
#> ℹ Pools: "Likoma".
#> ℹ Set `certainty_size` or `certainty_prop` in `draw()` to state
#> the rule in the design, or check before drawing with
#> `frame_summary()`.
selected |>
as.data.frame() |>
count(stratum, .panel) |>
summarise(fewest = min(n), most = max(n), .by = stratum) |>
summarise(same_every_month = all(fewest == most))
#> same_every_month
#> 1 TRUEselected |>
as.data.frame() |>
mutate(ea_id = psu) |>
map_eas(country = "mwi", outline = "districts", top = "regions",
size = 0.6)
selected_eas <- ea_psus$ea_id[ea_psus$psu %in% selected$psu]
likoma <- ea_psus$ea_id[ea_psus$stratum == "Likoma"]
map_zoom(likoma, selected_eas, country = "mwi")
28.6 Households and replacements
A listing team counts the households of each selected EA in the month before its interviews, and the households of a month are drawn from its listing as it comes in, execute(selected, listing, period = 1, subround = month) (Chapter 19). The synthetic listing below covers every selected EA, and each month’s call reads the rows of its own EAs. Of the 21 households drawn from the listing, a random draw of 16 within each EA makes the households to interview, and the other five wait as replacements in a random order.
set.seed(2028)
listing <- selected |>
as.data.frame() |>
mutate(listed = pmax(21L, as.integer(round(
households * exp(rnorm(n(), log(1.15), 0.2)))))) |>
reframe(hh_id = seq_len(listed), .by = psu)
drawn <- selected
for (month in 1:12) {
drawn <- execute(drawn, listing, period = 1, subround = month,
seed = 2100 + month)
}
primary <- sampling_design("Households to interview") |>
stratify_by(psu) |>
draw(n = 16) |>
execute(drawn, seed = 2030)
c(drawn = nrow(drawn), primary = nrow(primary))
#> drawn primary
#> 16128 12288IHS6 reports a response rate of 99.9% after replacement. The rate says little about nonresponse, since a replacement stands in for the household that refused or was absent (Chapter 12). Chapter 17 stress-tests what that costs when the two differ.
Neither round replaces households the way the code above does. IHS5 replaced a household that could not be interviewed by one drawn at random from the listing when the household failed. It made 583 replacements out of 12,288 issued households: 455 where no member could be located, 76 dwellings that appeared unoccupied, 28 refusals and 24 for other reasons. IHS6 lists the five replacements in advance, but the enumerator decides when to use one, “with a valid reason”. IHS5 weights by listed households over completed interviews, so a replacement takes the weight of the household it replaced.
samplyr cannot weight either practice as fielded. A replacement drawn at the moment of failure leaves no record of a pool or an order, and an enumerator’s choice is not a random draw. The inherited weight also counts the 76 unoccupied dwellings as households, which overstates totals by about 0.6%, and by about 4.5% if every household not located had moved out. An ordered reserve, draw(n = 16, reserve = 5) in Section 17.4, draws the five and their order with the sample. The office releases them one per failure, the field team codes every household released, and the settlement estimates each EA’s occupied households from the households worked. The 13 EAs of IHS5 that ended below 16 interviews would be settled as lists that ran out or stopped early. If the 3 that reached 17 came from a release past the take, the settlement would drop the interview released after the stop.
28.7 Dzaleka camp
The camp’s frame is mwi_dzaleka_shelters, the shelters UNHCR digitized from building footprints. The plan takes the shelter as the listing unit and interviews every household of a selected shelter. IHS6 gave the camp sample constant weights, so the shelters had equal chances. Without clusters there is no design effect, and 384 shelters give a margin of about 5 points. method = "lpm2" selects shelters with equal probability and spreads them over the camp (Chapter 23).
prec_prop(0.5, n = 384, N = nrow(shelters))$moe
#> [1] 0.04888204
camp_sample <- sampling_design("Dzaleka camp") |>
draw(n = 384, method = "lpm2", spread = c(x, y)) |>
execute(shelters, seed = 2032)
nrow(camp_sample)
#> [1] 38428.8 Backtest
IHS6 gave 24 EAs to most districts, 36 to each stratum of Lilongwe, 22 to Nkhata Bay and 2 to Likoma (National Statistical Office 2024). The IHS4 errors back-test the correlation, since the model with one correlation should predict the IHS4 margins from the IHS4 EAs.
margins <- function(eas) {
targets |>
select(-moe) |>
mutate(n = 16 * eas[stratum]) |>
prec_multi(domains = "stratum") |>
_$detail |>
pull(.moe, name = stratum)
}
eas_ihs4 <- with(inputs, setNames(eas_ihs4, stratum))
moe_ihs4_model <- margins(eas_ihs4)
backtest <- inputs |>
mutate(stratum, published = round(1.96 * se, 1),
predicted = round(100 * moe_ihs4_model[stratum], 1), .keep = "none") |>
filter(stratum != "Likoma")
cor(backtest$published, backtest$predicted)
#> [1] 0.5327097The correlation between the published and the predicted margins is 0.53. The model follows the poverty level of each district, which sets the binomial variance, but not the noise of its 24 EAs.
ihs6 <- with(plan, setNames(case_when(
startsWith(stratum, "Lilongwe") ~ 36,
stratum == "Nkhata Bay" ~ 22,
stratum == "Likoma" ~ 2,
.default = 24
), stratum))
eas_plan <- with(plan, setNames(eas, stratum))
moe_ihs6 <- margins(ihs6)
moe_plan <- margins(eas_plan)
plan |>
mutate(stratum, ihs6 = ihs6[stratum], eas,
moe_ihs6 = round(100 * moe_ihs6[stratum], 1),
moe_plan = round(100 * moe_plan[stratum], 1), .keep = "none") |>
filter(ihs6 != eas)
#> stratum eas ihs6 moe_ihs6 moe_plan
#> 1 Nkhata Bay 24 22 10.8 10.4
#> 2 Likoma 12 2 33.7 13.8
#> 3 Mzuzu City 12 24 6.2 8.8
#> 4 Lilongwe Non-City 48 36 8.6 7.4
#> 5 Mangochi 36 24 10.3 8.4
#> 6 Phalombe 12 24 7.8 11.1
#> 7 Zomba City 12 24 7.7 10.8The plan moves EAs from Mzuzu City, Zomba City and Phalombe, whose poverty rates are far from 50%, to Mangochi and Lilongwe outside its city, and gives Likoma ten more. The margins of Likoma in this table leave out the finite population correction, which the Likoma section applies.
28.9 Virtual survey
mwi_population() builds a synthetic Malawi in a few seconds: one poverty score for each of the 4 million households of the frame, with district levels at the IHS4 rates and an EA effect that reproduces the national design effect of 5.7 (Chapter 19). The plan is fielded on it 500 times, with 16 households interviewed in each EA.
pop <- mwi_population()
response <- data.frame(stratum = plan$stratum, household = 1, person = 1)
virtual <- virtual_survey(ihs_design, pop, response, reps = 500, seed = 5,
domain = "stratum", persons = "poor",
outcome = "poor", take = 16)
virtual |>
mutate(stratum, planned = round(100 * moe_plan[stratum], 1),
true_moe = round(196 * true_rse * truth, 1),
reported_moe = round(196 * estimated_rse * truth, 1),
.keep = "none") |>
filter(stratum %in% c("Likoma", "Mangochi", "Phalombe", "Lilongwe City",
"National"))
#> # A tibble: 5 × 4
#> stratum planned true_moe reported_moe
#> <chr> <dbl> <dbl> <dbl>
#> 1 Likoma 13.8 7.5 16.9
#> 2 Lilongwe City 6.6 6.9 6.8
#> 3 Mangochi 8.4 8.5 8.8
#> 4 Phalombe 11.1 11.9 11
#> 5 National NA 2 2The true margins follow the plan in the districts, within a point. Likoma is the exception the plan foresaw. Its true margin is 7.5 points, close to what the finite population correction predicted, while the margin a survey would report, computed with clusters treated as drawn with replacement, is 16.9. A survey that publishes Likoma should report a margin with the correction (Chapter 13).
The synthetic Malawi has one correlation for every district. The district design effects of IHS4 spread far more, from 0 to 11.7, than its virtual surveys of the IHS4 design produce. Part of that spread is real (districts differ in how alike neighbors are), and the virtual survey cannot test the plan against it.
28.10 What the plan assumes
- The correlation of IHS4 carries over, from one national design effect on the 2008 frame with the same take of 16.
- The poverty rates of IHS4 carry over. They date from 2016-17, and a district whose rate has moved toward 50% needs more households.
- The plan sizes a share of people as a share of households, as the IHS4 design effects were computed.
- Replacement keeps every EA at 16 interviews, so the plan assumes full response.
- The plan sizes on poverty alone. Mean consumption reached a CV of 42.5% in Blantyre City in IHS4, where a few rich households make the mean unstable, and a larger sample would not fix that cheaply.
- The take stays at 16. With a correlation of 0.23, the cost-optimal take is smaller (Chapter 9).
28.11 Exercises
- With \(\rho = 0.23\) and a cluster costing 20 household interviews, what take minimizes the variance for a fixed budget? How many EAs of that take give the precision of 24 EAs of 16?
- Give Likoma all 16 of its EAs. What margin of error does it reach?
- Size the districts for a margin of 8 points. How many sets does the plan need, and does it fit in 768 EAs?
- Why does the IHS6 report’s response rate of 99.9% not mean that nonresponse is negligible?
- \(b^* = \sqrt{20 \times 0.77 / 0.23} = 8.2\), about 8 households. With \(\mathrm{deff} = 1 + 7 \times 0.23 = 2.6\) against \(4.4\) at 16, an EA of 8 is worth \(8 / 2.6 = 3.1\) simple random households and an EA of 16 is worth \(16 / 4.4 = 3.6\), so about 29 EAs of 8 match 24 EAs of 16, with 232 households instead of 384.
likoma_moe(16). The first-stage term vanishes, and the margin is that of 256 households with no clustering between EAs, 5.0 points.- Replace
moe = 0.10bymoe = 0.08. The requirements rise by \((10/8)^2 = 1.56\), so districts near 50% need about three sets, and the floors alone take 1,044 EAs, more than the 768 of IHS6. - A replacement is counted as a response. The rate measures how often an interview was obtained in the EA, not how often the selected household answered.