gmb_synthetic <- readRDS("data/gmb_synthetic.rds")
clusters <- gmb_synthetic$clusters
set.seed(13)
growth <- ifelse(clusters$lga == "Brikama",
exp(rnorm(nrow(clusters), log(1.4), 0.3)),
exp(rnorm(nrow(clusters), log(1.05), 0.15)))
grown <- gmb_grow(gmb_synthetic, growth, seed = 2)
rural_brikama <- clusters$cluster[clusters$lga == "Brikama" &
clusters$urban_rural == "Rural"]
set.seed(3)
source_clusters <- sample(rural_brikama, 150, replace = TRUE)
settlements <- clusters[match(source_clusters, clusters$cluster), ] |>
mutate(cluster = sprintf("NEW%03d", row_number()), households = 60L,
source = source_clusters, mcpr_factor = 0.5)
settled <- gmb_grow(gmb_synthetic, growth, new = settlements, seed = 2)
lga_of <- setNames(settled$clusters$lga, settled$clusters$cluster)
households_by_lga <- settled$households |>
mutate(lga = lga_of[cluster],
new = cluster %in% settlements$cluster) |>
summarise(today = n(), in_new_settlements = sum(new), .by = lga) |>
left_join(summarise(clusters, frame = sum(households), .by = lga),
by = "lga") |>
mutate(lga, frame, today,
growth = round((today - in_new_settlements) / frame, 2),
in_new_settlements,
share_new = round(in_new_settlements / today, 3), .keep = "none")
households_by_lga
#> # A tibble: 8 × 6
#> lga today in_new_settlements frame growth share_new
#> <chr> <int> <int> <int> <dbl> <dbl>
#> 1 Banjul 7173 0 6600 1.09 0
#> 2 Kanifing 68996 0 65218 1.06 0
#> 3 Brikama 225474 9000 148137 1.46 0.04
#> 4 Mansakonko 12593 0 11853 1.06 0
#> 5 Kerewan 29465 0 27773 1.06 0
#> 6 Kuntaur 11731 0 11278 1.04 0
#> 7 Janjanbureh 16570 0 15646 1.06 0
#> 8 Basse 26093 0 24608 1.06 015 When the frame is old
The plan of Parts II and III assumes that the frame describes the country as it is. Every frame is older than the survey that uses it. The 2019-20 DHS drew its sample from the 2013 census, updated with projections (Gambia Bureau of Statistics and ICF 2021), and Chapter 5 found that between that frame and the 2024 one, rural Brikama grew sixfold while Banjul lost households. This chapter stress-tests the plan against an old frame. It lets the synthetic Gambia grow unevenly since its frame, adds settlements the frame never recorded, and measures what each does to the survey.
15.1 What an old frame does
An old frame fails in two ways. Its counts are stale, so the measure of size of an EA is not its number of households today. And it misses areas built since, whose households have no chance of selection.
When cluster \(i\) was selected on a frame count \(M_{hi}\) and lists \(L_{hi}\) households, a household’s weight is proportional to \(L_{hi} / M_{hi}\) (Chapter 12). The estimates stay unbiased, but the weights spread, and the variance grows by a factor of about \(1 + \mathrm{CV}^2(L/M)\) within a stratum when the spread is unrelated to the outcome.
When a share \(W_m\) of the population lives in areas the frame misses, with mean \(\bar Y_m\) against \(\bar Y_c\) in the covered areas, the estimate is biased by \[ B = W_m (\bar Y_c - \bar Y_m). \] No weighting of the covered sample removes it.
Stale counts cost precision. Missing areas cost bias, and the bias does not shrink with a larger sample.
15.2 The stress test
gmb_grow() lets each cluster of the synthetic Gambia grow by its own factor since the frame was made, by copying households of the same cluster, so new households resemble their neighbors. Brikama, the fastest-growing LGA, grows by a factor centered on 1.4 with a wide spread between clusters, and the rest of the country by a factor centered on 1.05. A second population adds 150 settlements of 60 households in rural Brikama that the frame does not record, settled by migrants who use modern contraception half as often as their neighbors.
The table compares each LGA’s households in the frame with those of today, and growth leaves out the new settlements. Brikama’s existing clusters grow by 46%, and the other LGAs by 4% to 9%. The new settlements hold 4.0% of Brikama’s households today.
The design of Chapter 11 is drawn on the frame, with its old counts as measures of size, and the listing finds today’s households. Two remedies are tried. Updating the counts, by relisting or by counting dwellings on recent imagery, gives the first stage today’s sizes. Updating the map adds the new settlements to the frame.
inputs <- gmb_inputs()
response <- mutate(inputs, lga, household = completed, person = women_rr,
.keep = "none")
design <- gmb_design()
today <- function(population) {
frame <- population$clusters
frame$households <- as.integer(
table(population$households$cluster)[frame$cluster])
frame
}
run <- function(population, frame) {
virtual_survey(design, population, response, reps = 1000, seed = 4,
frame = frame)
}
scenarios <- list(
`frame current` = run(gmb_synthetic, gmb_synthetic$clusters),
`growth, old counts` = run(grown, gmb_frame_of(grown)),
`growth, counts updated` = run(grown, today(grown)),
`settlements missing` = run(settled, gmb_frame_of(settled)),
`settlements added` = run(settled, today(settled))
)
bind_rows(scenarios, .id = "scenario") |>
filter(lga %in% c("Brikama", "National")) |>
mutate(scenario, lga, bias = 100 * (mean - truth), true_rse, coverage,
.keep = "none") |>
mutate(across(where(is.numeric), \(x) round(x, 3)))
#> # A tibble: 10 × 5
#> scenario lga true_rse coverage bias
#> <chr> <chr> <dbl> <dbl> <dbl>
#> 1 frame current Brikama 0.065 0.954 -0.005
#> 2 frame current National 0.041 0.958 0.031
#> 3 growth, old counts Brikama 0.071 0.959 0.01
#> 4 growth, old counts National 0.047 0.956 0.033
#> 5 growth, counts updated Brikama 0.061 0.973 -0.061
#> 6 growth, counts updated National 0.042 0.967 -0.008
#> 7 settlements missing Brikama 0.074 0.932 0.378
#> 8 settlements missing National 0.049 0.938 0.191
#> 9 settlements added Brikama 0.066 0.955 0.022
#> 10 settlements added National 0.045 0.961 0.03115.3 Reading the results
Stale counts do not bias the estimates. The listing corrects each weight by \(L/M\), so every household still carries the inverse of its probability. Stale counts cost precision instead. Brikama’s true RSE rises from 6.5% to 7.1%, and updating the counts brings it back to 6.1%. Part of the loss is the spread of the weights. Part is that Brikama now holds a larger share of the country than the allocation assumed, which the national RSE shows too.
Missing settlements bias the estimates upward, by 0.38 points in Brikama and 0.19 nationally. The formula predicts it. The settlements hold about 4% of Brikama’s households today and their women use contraception at about half the rate of their neighbors, whose use is about 19.5%, so the bias is about \(0.04 \times 0.5 \times 19.5 = 0.4\) points. The intervals still cover the truth about as often as they should, because the bias is small against a standard error of about 1.4 points. The bias does not always stay this small. A survey that misses a tenth of a domain’s population, with a difference of ten points, is biased by a full point, whatever its sample size, and its intervals do not reflect it. Adding the settlements to the frame removes the bias.
15.4 When to update the frame
A planner rarely knows the true counts, but two signs show a frame aging. The first is the listing. When the ratio of listed to frame households varies widely between selected clusters, the weights spread, and the next round’s frame should be updated. Chapter 12 measured a CV of the weights of about 18% for a listing spread of 20%, and doubling the spread doubled it. The second is the map. New neighborhoods, visible on recent imagery or building footprints, are areas the frame cannot reach. They are added as new EAs before selection, or a separate frame is built for them.
Between censuses, three updates are cheaper than a new frame. Counting dwellings in all EAs from building footprints refreshes the measures of size, which is how the frames of this book were calibrated (Chapter 5). Segmenting a selected EA that has grown far beyond its count keeps the listing manageable (Chapter 12). And a short listing of growth areas, done before selection, finds the settlements the census missed.
15.5 Evidence from the report
Table A.5 of the 2019-20 report shows the listing at work. Of the selected households, 1.7% were in dwellings found vacant or not to be dwellings, and 0.1% in dwellings that could not be found (Gambia Bureau of Statistics and ICF 2021). Those are households the listing recorded and the interviewers did not find a few weeks later, a small discrepancy. The larger one, between a frame and a country that has grown, does not appear in any table of the report. It appears only when two frames are compared, as Chapter 5 did.
15.6 What to record
The frame is the 2024 census cartography, with household counts of 2024. The survey takes place in 2025 or later, and households built since 2024 in existing EAs are included through the listing, which corrects each weight by the ratio of listed to frame households. Settlements built outside existing EAs are not covered. A stress test on a synthetic population, with growth of 40% in Brikama and 5% elsewhere, found no bias from stale counts and an increase of about a tenth in the standard errors of Brikama. Missing settlements holding 4% of Brikama’s households, with half the use of modern methods, would bias its estimate by about 0.4 points.
15.7 Exercises
- Make the new settlements hold 10% of Brikama’s households, with a quarter of the use of their neighbors. Predict the bias with the formula, then check it with the virtual survey.
- Raise the spread of Brikama’s growth from 0.3 to 0.6 on the log scale. How much does its RSE rise with old counts?
- Why does updating the counts help the national estimate and not only Brikama’s?
- About 401 settlements of 60 households,
mcpr_factor = 0.25. The formula gives \(0.10 \times 0.75 \times 19.5 = 1.5\) points, several times the bias above and larger than Brikama’s standard error. - Brikama’s true RSE rises to about 8.2%, against 7.1% with a spread of 0.3 and 6.5% with a current frame. The estimate stays unbiased.
- With updated counts, the first stage selects clusters in proportion to today’s households, so the design is again self-weighting within each stratum, and the weights of the strata follow today’s population.