pop <- mwi_population()
plan <- mwi_plan()
count(plan, eas = n, name = "strata")
#> eas strata
#> 1 12 4
#> 2 24 25
#> 3 36 2
#> 4 48 119 Spreading fieldwork over the year
What a household consumes depends on the month it is asked. In Malawi, the months before the harvest are the lean season, when stocks run low and food prices rise. After the harvest, the same household eats better and spends less on food. A survey that measures poverty from consumption, and runs its fieldwork in three months, measures the poverty of those three months.
The Malawi IHS spreads its fieldwork over a full year, so that every season is covered, and gives each district the same number of EAs every month (National Statistical Office 2024). This chapter shows how to assign the selected EAs to months, how that differs from rotation groups, and what a shorter fieldwork calendar would cost, with a virtual survey on a synthetic Malawi.
19.1 Subrounds
The plan of Chapter 28 gives each district its EAs in sets of 12. Within each district, the selected EAs are split at random into 12 equal groups, one per month. Each month is then a random twelfth of the sample and is itself a probability sample of the whole country.
When the \(n_h\) selected clusters of stratum \(h\) are split at random into \(S\) subrounds of \(n_h / S\) clusters each, a cluster of the annual sample falls in a given subround with probability \(1 / S\). A cluster’s weight for an estimate of one subround alone is \(S\) times its annual weight.
panels = subrounds(12) makes the split when the EAs are drawn. The year is one reporting period and its months are its 12 subrounds. The selected EAs of each stratum are assigned to the subrounds at random, along the sorted frame, so that each month’s EAs spread over the stratum like the whole sample.
The plan has one row per stratum, a district or one of the four cities, with its EAs in n. The count shows the sizes in use, all multiples of 12, from one set of 12 EAs to four.
ihs_design <- sampling_design("An IHS for Malawi") |>
add_stage("EAs") |>
stratify_by(stratum) |>
cluster_by(psu) |>
draw(n = plan, method = "pps_systematic", mos = households,
control = c(urban_rural, ta)) |>
add_stage("Households") |>
draw(n = 16, method = "systematic")
selected <- execute(ihs_design, pop$clusters, 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) |>
count(fewest, most, name = "strata")
#> fewest most strata
#> 1 1 1 4
#> 2 2 2 25
#> 3 3 3 2
#> 4 4 4 1Every district has the same number of EAs each month, one in the districts with one set and up to four in Lilongwe outside its city. Each month has 64 EAs.
The households are drawn month by month. A listing team counts the households of a month’s EAs in the month before their interviews, and the households to interview are drawn from that listing. execute(selected, listing, period = 1, subround = t) draws the household stage under the EAs of month \(t\) only. It returns the master, the first-stage sample of all twelve months, with that month recorded. The listing is keyed to the EAs by psu, and the strata and weights come from the master. Rows for the EAs of other months are ignored, so one table of synthetic households stands in here for the twelve listings.
listing <- pop$households |>
filter(cluster %in% selected$psu) |>
mutate(psu = cluster, hh_id = household, .keep = "none")
drawn <- selected
for (month in 1:12) {
drawn <- execute(drawn, listing, period = 1, subround = month,
seed = 2100 + month)
}
nrow(drawn)
#> [1] 12288Until the last month is drawn, the master keeps its EA rows and reports which months are drawn. The call for the twelfth month returns the complete sample, the same design as one call on a listing of every selected EA. execute(drawn, period = 1, subround = 3) then gives the sample of the third month, with the weights of that month alone, and a window of three months, subround = 1:3, gives the first quarter.
month_3 <- execute(drawn, period = 1, subround = 3)
quarter_1 <- execute(drawn, period = 1, subround = 1:3)
annual_weight <- function(x) drawn$.weight[match(x$hh_id, drawn$hh_id)]
rbind(month_3 = c(households = nrow(month_3),
weight_ratio = median(month_3$.weight /
annual_weight(month_3))),
quarter_1 = c(households = nrow(quarter_1),
weight_ratio = median(quarter_1$.weight /
annual_weight(quarter_1))))
#> households weight_ratio
#> month_3 1024 12
#> quarter_1 3072 4A month’s weights are 12 times the annual ones and a quarter’s 4 times, since every district fills the months evenly. The factor is a ratio of counts recorded when the EAs were split, and samplyr computes it per stratum. Where a stratum’s number of EAs is not a multiple of 12, the factor differs from 12, and multiplying the annual weights by 12 by hand would be wrong.
19.2 Subrounds are not rotation groups
samplyr also accepts panels = 12, a plain count. That makes rotation groups, the panels of a survey that returns to the same units, as in Chapter 20. The two differ in how they treat a cluster taken with certainty. A rotation group design keeps a certainty cluster apart and active at every occasion, since it is in every sample of the population. A subround design assigns it to one month like any other cluster, since a subround is a part of one sample, not a sample of its own.
Likoma shows the difference. It selects 12 of its 16 EAs, and one of them is certain.
likoma <- filter(pop$clusters, stratum == "Likoma")
likoma_design <- sampling_design() |>
cluster_by(psu) |>
draw(n = 12, method = "pps_systematic", mos = households)
months_of <- function(panels) {
execute(likoma_design, likoma, seed = 1, panels = panels) |>
as.data.frame() |>
count(.panel) |>
pull(n)
}
list(subrounds = months_of(subrounds(12)), rotation_groups = months_of(12))
#> Stage 1: 1 unit 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.
#> ℹ Set `certainty_size` or `certainty_prop` in `draw()` to state
#> the rule in the design, or check before drawing with
#> `frame_summary()`.
#> Stage 1: 1 certainty unit in 1 pool is kept apart from the
#> rotating panels.
#> ℹ It will be active at every occasion of a rotation schedule.
#> ℹ Panel sizes in that pool can differ by two.
#> ℹ For a one-visit partition such as fieldwork months, use
#> `panels = subrounds(12)`.
#> Stage 1: 1 unit 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.
#> ℹ Set `certainty_size` or `certainty_prop` in `draw()` to state
#> the rule in the design, or check before drawing with
#> `frame_summary()`.
#> $subrounds
#> [1] 1 1 1 1 1 1 1 1 1 1 1 1
#>
#> $rotation_groups
#> [1] 1 1 1 1 2 1 1 1 1 1 1With subrounds, Likoma has one EA every month. With rotation groups, one month would get two and another none, and the nonresponse adjustment of the IHS by district and quarter would have an empty cell.
19.3 Virtual survey
The synthetic Malawi of mwi_population() gives each of the 4 million households of the frame a poverty score. District levels are set to the IHS4 poverty rates, and an EA effect is calibrated so that the IHS4 design, fielded on it, gives the national design effect of 5.7 that IHS4 published. A household is poor when its score, latent, exceeds zero. Unlike those of the synthetic Gambia, the households are not placed in space, which a survey of poverty by district does not need, so the population is built in a few seconds. It is a list of three tables (the EAs of the frame, the households of each EA, and their poverty).
head(pop$clusters, 3)
#> stratum psu region urban_rural ta households
#> 1 Balaka 31201009 Southern Rural TA Msamala 240
#> 2 Balaka 31201024 Southern Rural TA Msamala 240
#> 3 Balaka 31201006 Southern Rural TA Msamala 311
head(pop$households, 3)
#> household cluster
#> 1 1 31201009
#> 2 2 31201009
#> 3 3 31201009
head(pop$poor, 3)
#> household poor latent
#> 1 1 1 0.4886049
#> 2 2 1 1.0515458
#> 3 3 0 -0.1291068
tibble(eas = nrow(pop$clusters), households = nrow(pop$households),
poverty_rate = round(mean(pop$poor$poor), 3))
#> # A tibble: 1 × 3
#> eas households poverty_rate
#> <int> <int> <dbl>
#> 1 18384 3979908 0.52Seasonality enters as a shift of the score by month of interview.
A household with score \(z\) is poor in month \(m\) when \(z + s_m > 0\), with \(s_m\) the season’s shift. The annual poverty rate is the average over the twelve months, \(\frac{1}{12} \sum_m P(z + s_m > 0)\).
The shifts below are an illustration, not estimates. They raise poverty in the lean months from December to March, lower it in the harvest months from April to July, and leave it unchanged from August to November. Three fieldwork calendars are compared: the full year, the four harvest months, and the four months from August.
season <- c(0.15, 0.15, 0.15, -0.15, -0.15, -0.15, -0.15, 0, 0, 0, 0, 0.15)
response <- data.frame(stratum = plan$stratum, household = 1, person = 1)
calendar <- function(months) {
virtual_survey(ihs_design, pop, response, reps = 500, seed = 4,
domain = "stratum", persons = "poor", outcome = "poor",
months = months, season = season, quarters = TRUE)
}
full_year <- calendar(1:12)
harvest <- calendar(4:7)
august <- calendar(8:11)
bind_rows(`twelve months` = full_year, `April to July` = harvest,
`August to November` = august, .id = "fieldwork") |>
filter(stratum == "National") |>
mutate(fieldwork, truth, mean, bias = mean - truth, true_rse,
bias_in_se = (mean - truth) / (true_rse * truth), .keep = "none") |>
mutate(across(where(is.numeric), \(x) round(x, 3)))
#> # A tibble: 3 × 6
#> fieldwork truth mean true_rse bias bias_in_se
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 twelve months 0.519 0.52 0.021 0.001 0.073
#> 2 April to July 0.519 0.466 0.021 -0.053 -4.92
#> 3 August to November 0.519 0.52 0.021 0.001 0.089Spread over the year, the survey estimates the annual rate without bias. Packed into the harvest months, it underestimates poverty by 5.3 points, about 4.9 times its standard error. Its intervals would rarely cover the true annual rate. Packed into August to November, it happens to be unbiased, because in this illustration those months are average ones. A short fieldwork calendar is biased or not depending on the season it falls in, which the planner does not know in advance. Spreading the sample over the twelve months removes the question.
The months also give estimates of their own. Each quarter of the twelve-month design is a random quarter of the sample.
full_year |>
filter(stratum %in% c("National", paste0("Q", 1:4))) |>
mutate(stratum, truth, mean, true_rse, .keep = "none") |>
mutate(across(where(is.numeric), \(x) round(x, 3)))
#> # A tibble: 5 × 4
#> stratum truth mean true_rse
#> <chr> <dbl> <dbl> <dbl>
#> 1 National 0.519 0.52 0.021
#> 2 Q1 0.573 0.575 0.034
#> 3 Q2 0.466 0.467 0.046
#> 4 Q3 0.502 0.501 0.045
#> 5 Q4 0.537 0.537 0.041A quarterly estimate has 1.7 to 2.2 times the RSE of the annual one, close to the factor of 2 that a quarter of the sample gives. It follows the season, highest in the first quarter and lowest in the second, which the annual design can report without bias because each quarter is a probability sample of the country.
19.4 Backtest
The IHS6 manual gives 768 EAs over 12 months, 64 a month, the same number each month in every district (National Statistical Office 2024). The design above has the same structure.
selected |>
as.data.frame() |>
count(.panel, name = "eas") |>
summarise(months = n(), fewest = min(eas), most = max(eas))
#> months fewest most
#> 1 12 64 6419.5 How the other surveys use time
A DHS or a MICS runs its fieldwork over a few months, with teams moving from region to region. Indicators that vary with the season, such as malaria or diarrhea in children, are then reported for the fieldwork period, and a comparison between rounds held in different seasons must allow for it. A labor force survey runs all year by design. The Rwanda LFS of Chapter 27 collects each quarter in its middle month and publishes quarterly estimates. The plan of that chapter also spreads the quarter over its three months with the same panels, which combines the subrounds of this chapter with a rotation, the return of the same households (Chapter 20).
19.6 What to record
The selected EAs of each district are assigned at random to the twelve months of fieldwork, in equal numbers, along the sorted frame. Each month’s EAs are listed in the month before their interviews, and their households are drawn from that listing. Each month’s EAs form a probability sample of the country, and the weight of an EA for a monthly estimate is twelve times its annual weight. The certainty EA of Likoma is assigned to a month like the others.
19.7 Exercises
- Run the virtual survey with fieldwork from December to March. What is the bias of the annual estimate?
- Give Malawi six months of fieldwork, from October to March. Is the annual estimate biased under the illustrative seasons?
- How many EAs does a district with one set have in a quarter? What RSE do you expect for a quarterly district estimate compared with the annual one?
- Why does
panels = 12keep Likoma’s certainty EA active at every occasion, and why is that right for a rotating panel?
calendar(c(12, 1, 2, 3)). Every month has a shift of +0.15, so the estimate is too high by about as much as the harvest calendar is too low.calendar(c(10, 11, 12, 1, 2, 3)). Four of the six months have the lean-season shift and none the harvest one, so the estimate is too high, by about two thirds of the bias of exercise 1.- Three EAs, a quarter of 12. The RSE is about twice the annual one, and a district estimate from three EAs is too imprecise to publish.
- A certainty unit is in every possible sample, so it is in every panel of a survey that samples the population again at each occasion. A subround divides one sample, and the unit is needed once.