gmb24_eas <- readRDS("data/gmb24_eas.rds")
glimpse(gmb24_eas)
#> Rows: 5,054
#> Columns: 6
#> $ ea_id <chr> "1021001", "1021002", "1021003", "1021004",…
#> $ lga <chr> "Banjul", "Banjul", "Banjul", "Banjul", "Ba…
#> $ district <chr> "Banjul Central", "Banjul Central", "Banjul…
#> $ ward <chr> "New Town East", "New Town East", "New Town…
#> $ urban_rural <chr> "Urban", "Urban", "Urban", "Urban", "Urban"…
#> $ households <int> 81, 55, 91, 94, 91, 50, 68, 99, 107, 55, 60…5 The area frame
A household survey cannot select households from a list of households, because no such list exists for a whole country. It selects areas from a list of areas, and lists the households of the selected areas only. That list of areas is the frame of the first stage. Its quality bounds the quality of everything built on it. A household outside the frame cannot be selected, and a frame with wrong household counts gives wrong probabilities and wrong weights.
This chapter explains what an area frame holds, where frames come from, how the frames of this book were built, and which checks a planner runs before using one. It does not build a frame. The frames of the book were built with the decoupage package, and its documentation covers the construction.
5.1 Enumeration areas and their measure of size
A census divides the country into enumeration areas (EAs), each small enough for one enumerator to cover in the census period. In The Gambia an EA holds about 60 households on average. Each EA has a code, a map of its boundary, the administrative units it lies in, a residence type, and the number of households and people the census counted in it.
The household count is the measure of size. Surveys select EAs with probability proportional to it, so that a large EA, which holds more households, has a larger chance of selection. With a fixed number of households taken in each selected EA, every household then has about the same chance of selection (Chapter 11). The count is only as good as its date. A count from a census five years old is an estimate of the households today, and the error goes into the weights.
5.2 Where frames come from
Most NSOs build their survey frame from the cartography of the last census. The list of EAs, their maps and their counts are the frame. Between censuses the counts age. Some offices update them with projections, as GBoS did for the 2019-20 DHS, whose frame was the 2013 census updated in 2015-16 with district projections (Gambia Bureau of Statistics and ICF 2021). Others list the households of selected areas before each survey, which corrects the second stage but not the first.
Where the census EAs are not available, or are out of date, a frame can be built from other sources. Gridded population estimates, such as those of WorldPop, combine satellite imagery, building footprints and census totals to estimate the population of every 100-meter cell. Cells can be grouped into pre-enumeration areas of a chosen size (Qader et al. 2022). Building footprints, now available for most of Africa, give a finer measure of where households live.
5.3 The frames of this book
The book uses five frames. None is an official frame. Each was built to be realistic, with counts that match the published totals of its country, so that a design drawn on it behaves as it would on the real one.
| Country | EAs | Households | Boundaries | Counts |
|---|---|---|---|---|
| The Gambia | 5,054 | 311,113 | Modeled from the GBoS settlement layer | 2024 settlement counts |
| Rwanda | 24,073 | 3.3 million | Modeled inside the 2022 census villages | Village population shared by buildings |
| Malawi | 18,626 | 4.0 million | Modeled inside the 2018 traditional authorities | 2018 census, real |
| Zimbabwe | 107,250 | 3.8 million | WorldPop pre-EAs | Calibrated to 2022 ward totals |
| Burkina Faso | 44,570 | 3.0 million | WorldPop pre-EAs | WorldPop estimates |
The Gambia frame starts from a layer of GBoS settlements with their 2024 EA codes and household counts. decoupage cut the land around each settlement into blocks bounded by roads and streams, assigned each block to a settlement, and grouped the blocks of each code into its EAs. The codes and counts are those of the settlement layer, and the boundaries are modeled.
The Malawi frame keeps the 2018 census EA codes and household counts, which the National Statistical Office published by EA. The boundaries are not public, so each traditional authority was cut into one area per EA. The Rwanda frame places its EAs inside the 2022 census villages, as NISR does, with counts by district and residence that match the census frame of the 2025 DHS (National Institute of Statistics of Rwanda et al. 2026). The Zimbabwe and Burkina Faso frames are the pre-EAs of WorldPop (Qader et al. 2024, 2022). Appendix E gives the sources and licenses of every frame.
5.4 What a frame needs
A planner checks five properties before drawing from a frame. Each check is a few lines on gmb24_eas.

The first property is unique codes. Every EA has one code, used once, so that a selected EA can be found on the ground and linked to its listing.
c(eas = nrow(gmb24_eas), codes = n_distinct(gmb24_eas$ea_id))
#> eas codes
#> 5054 5054The two counts agree, so no code is used twice.
The second is nesting. Each EA lies in exactly one LGA, district and ward, and each ward in one district, so that strata and sort orders are well defined. The codes of The Gambia carry the nesting, since the first digit is the LGA and the first three digits the district.
gmb24_eas |>
mutate(lga_code = substr(ea_id, 1, 1), district_code = substr(ea_id, 1, 3)) |>
summarise(lgas_per_code = n_distinct(lga),
districts_per_code = n_distinct(district),
.by = district_code) |>
summarise(across(-district_code, max))
#> lgas_per_code districts_per_code
#> 1 1 1
gmb24_eas |>
summarise(districts = n_distinct(district), .by = ward) |>
filter(districts > 1)
#> ward districts
#> 1 Kerewan 2Each district code maps to one district and one LGA. One ward name, Kerewan, appears in two districts. The names are not keys. A sort by district and then ward, as the DHS uses, handles this, but a table that joins on the ward name alone would merge two wards.
The third is a usable measure of size. Every EA needs a positive household count, and the counts should not be too small for the take.
summary(gmb24_eas$households)
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> 1.00 47.00 62.00 61.56 75.00 156.00
c(below_take = sum(gmb24_eas$households < 25),
above_200 = sum(gmb24_eas$households > 200))
#> below_take above_200
#> 63 063 EAs hold fewer than the 25 households a DHS takes. They are merged with a neighbor before selection (Chapter 11). No EA holds more than 200, so none needs to be cut into segments, as the 2013 DHS did for its largest EAs.
The fourth is coverage, and the fifth currency. A frame should hold every household of the population, with counts close to today’s. Neither can be checked from the frame alone. The planner compares its totals by stratum with an independent source, such as a census or a projection.
5.5 Backtest
Table A.1 of the 2019-20 report gives the households of its frame (the 2013 census updated to 2015-16) by LGA and residence. The 2024 frame can be set beside it.
frame_2013 <- read.csv("data/gmb_dhs2019_frame.csv")
gmb24_eas |>
summarise(households_2024 = sum(households), eas_2024 = n(),
.by = c(lga, urban_rural)) |>
left_join(rename(frame_2013, households_2013 = households),
by = c("lga", "urban_rural")) |>
mutate(growth = round(households_2024 / households_2013, 2)) |>
arrange(lga)
#> lga urban_rural households_2024 eas_2024
#> 1 Banjul Urban 6600 93
#> 2 Basse Rural 15848 357
#> 3 Basse Urban 8760 141
#> 4 Brikama Rural 38381 717
#> 5 Brikama Urban 109756 1554
#> 6 Janjanbureh Rural 12255 272
#> 7 Janjanbureh Urban 3391 52
#> 8 Kanifing Urban 65218 879
#> 9 Kerewan Rural 19186 413
#> 10 Kerewan Urban 8587 119
#> 11 Kuntaur Rural 10278 233
#> 12 Kuntaur Urban 1000 16
#> 13 Mansakonko Rural 8763 169
#> 14 Mansakonko Urban 3090 39
#> households_2013 growth
#> 1 7272 0.91
#> 2 22956 0.69
#> 3 11685 0.75
#> 4 6340 6.05
#> 5 97324 1.13
#> 6 11444 1.07
#> 7 3007 1.13
#> 8 69890 0.93
#> 9 20207 0.95
#> 10 7655 1.12
#> 11 9925 1.04
#> 12 1032 0.97
#> 13 9453 0.93
#> 14 2512 1.23Between the two frames the country gained 30,411 households, and the EAs went from 4,098 to 5,054. The change is uneven. Rural Brikama, around the towns of the coast, has six times the households of the older frame. Part of that is growth, and part may be a change in what the 2024 codes class as rural. Banjul, Kanifing and Basse have fewer households than the projections of the older frame gave them. A design allocated on the older frame gives Brikama too few EAs, and Chapter 6 measures what that costs the national estimate. Chapter 15 studies what an old frame does to a sample.
5.6 Checking a frame against a design
A frame is checked once on its own and again for each design that uses it. For a given design, validate_frame() runs every check that execute() would run, before any selection. Here it checks the 2019-20 design (281 EAs by systematic PPS in 14 strata) against the 2024 EAs.
inputs <- read.csv("data/gmb_dhs2019_lga.csv")
table_a3 <- bind_rows(
mutate(inputs, lga, urban_rural = "Urban", n = eas_urban, .keep = "none"),
mutate(inputs, lga, urban_rural = "Rural", n = eas_rural, .keep = "none")
) |>
filter(n > 0)
design_2019 <- sampling_design("DHS 2019-20 on the 2024 frame") |>
add_stage("EAs") |>
stratify_by(lga, urban_rural) |>
cluster_by(ea_id) |>
draw(n = table_a3, method = "pps_systematic", mos = households,
control = c(district, ward)) |>
add_stage("Households") |>
draw(n = 25, method = "systematic")
validate_frame(design_2019, gmb24_eas, stages = 1)The frame passes. frame_summary() then gives the inclusion probability every EA would have, before any draw. The largest in each stratum shows how close the design comes to taking an EA with certainty.
pools <- frame_summary(design_2019, gmb24_eas, stages = 1, detail = "pool")
units <- frame_summary(design_2019, gmb24_eas, stages = 1, detail = "unit")
units |>
summarise(largest = max(chance), .by = pool_id) |>
left_join(select(pools, pool_id, pool_key, N, n_target), by = "pool_id") |>
select(pool_key, N, n_target, largest) |>
arrange(desc(largest)) |>
head(4)
#> # A tibble: 4 × 4
#> pool_key N n_target largest
#> <chr> <dbl> <dbl> <dbl>
#> 1 Banjul/Urban 93 40 0.697
#> 2 Kuntaur/Urban 16 3 0.279
#> 3 Mansakonko/Rural 169 20 0.262
#> 4 Mansakonko/Urban 39 7 0.233No EA reaches a probability of one. Banjul comes closest. It selects 40 of its 93 EAs, and its largest EA has a probability of 0.7. An EA whose probability would exceed one must be taken with certainty, and its weight computed separately. Chapter 11 handles this for the design of the next round.
5.7 What to record
The frame is the list of 5,054 EAs of the 2024 census cartography, with 311,113 households. Each EA lies in one LGA, district and ward, and has a residence type and a household count, the measure of size. 63 EAs hold fewer than 25 households and are merged with a neighbor before selection. No EA needs segmenting. Against the 2019-20 frame, the households grew by 11%, most of it in Brikama.
5.8 Exercises
- Which LGA has the smallest EAs on average, and which the largest? Why does it matter for a take of 25 households?
- Build a ward key that is unique across the country, and count the wards with it.
- Run
frame_summary()for the 2019-20 design with 50 EAs in Banjul instead of 40. Does any EA reach certainty? - The 2019-20 frame had 4,098 EAs averaging 68 households. Compute the average of the 2024 frame by stratum and compare with Table A.2. What changed, the number of EAs or their size?
summarise(gmb24_eas, mean(households), .by = lga). Kuntaur has the smallest EAs, 45 households on average, and Kanifing the largest, 74. Where EAs are small, more of them fall below the take and must be merged, and the take is a larger share of each EA.paste(district, ward)gives 120 wards, one more than the 119 ward names.- Replace 40 by 50 in
table_a3. The largest probability in Banjul rises by a quarter, still below one. - The 2024 frame has more EAs and they are smaller, about 62 households on average. Most of the growth in households went into new EAs.