22  Two-phase designs and subsamples

A second phase selects among units already sampled, using what the first phase learned about them. The DHS men’s half of Chapter 12 is one, drawn from the households already issued. Double sampling for stratification is another. A first phase collects a cheap variable on many units, the units are grouped by it, and a second phase takes the expensive measurement on a subsample, at a different rate in each group. Subsampling nonrespondents for an intensive follow-up is a third.

This chapter plans a two-phase design, estimates from one, and asks when it pays. A virtual survey on the synthetic Malawi gives an answer the planning formula does not.

22.1 The idea

NoteDouble sampling for stratification

Phase 1 is a sample of \(n_1\) units, classified into groups \(g\) with shares \(w_g\). Phase 2 takes a share \(\nu_g\) of the phase-1 units of each group and measures \(y\). The estimator \(\bar y = \sum_g w_g \bar y_{2g}\) has, for simple random sampling at phase 1, a variance of about \[ S^2 \left(\frac{1}{n_1} - \frac{1}{N}\right) + \frac{1}{n_1} \sum_g W_g S_g^2 \left(\frac{1}{\nu_g} - 1\right), \] with \(S^2\) the variance of \(y\), \(W_g\) the population share of group \(g\) and \(S_g^2\) the variance of \(y\) within it (Cochran 1977).

The first term is what phase 1 alone would give if every classified unit were measured. The second is the price of measuring only a subsample. When the groups explain much of \(y\), the \(S_g^2\) are small and phase 2 can be small too. A unit of phase 1 must then cost much less than one of phase 2, or the screening costs more than it saves.

22.2 A screening question for poverty

The Malawi IHS measures consumption with a long questionnaire and a diary, which cost far more than a few questions on the dwelling and assets. Suppose a short screening interview classifies households as likely poor or likely not poor, with a score that has a correlation of about 0.9 with the latent poverty of the synthetic Malawi. Suppose also that the full interview costs eight times as much as a screening. n_twophase() compares two phases with a single phase at the same budget, here the cost of the 12,288 full interviews of Chapter 28 plus their screening.

pop <- mwi_population()
glimpse(pop)
#> List of 4
#>  $ clusters  :'data.frame':  18384 obs. of  6 variables:
#>   ..$ stratum    : chr [1:18384] "Balaka" "Balaka" "Balaka" "Balaka" ...
#>   ..$ psu        : chr [1:18384] "31201009" "31201024" "31201006" "31201063" ...
#>   ..$ region     : chr [1:18384] "Southern" "Southern" "Southern" "Southern" ...
#>   ..$ urban_rural: chr [1:18384] "Rural" "Rural" "Rural" "Rural" ...
#>   ..$ ta         : chr [1:18384] "TA Msamala" "TA Msamala" "TA Msamala" "TA Msamala" ...
#>   ..$ households : int [1:18384] 240 240 311 302 186 185 134 127 475 370 ...
#>  $ households:'data.frame':  3979908 obs. of  2 variables:
#>   ..$ household: int [1:3979908] 1 2 3 4 5 6 7 8 9 10 ...
#>   ..$ cluster  : chr [1:3979908] "31201009" "31201009" "31201009" "31201009" ...
#>  $ poor      :'data.frame':  3979908 obs. of  3 variables:
#>   ..$ household: int [1:3979908] 1 2 3 4 5 6 7 8 9 10 ...
#>   ..$ poor     : int [1:3979908] 1 1 0 0 1 0 0 0 0 0 ...
#>   ..$ latent   : num [1:3979908] 0.489 1.052 -0.129 -0.208 1.247 ...
#>  $ parameters: Named num [1:2] 0.42 1
#>   ..- attr(*, "names")= chr [1:2] "ea" "seed"

The synthetic Malawi is a list of tables: the EAs of the frame, the households of each EA, and for each household its poverty status poor and the latent score behind it. The screening score below is that latent score plus noise.

set.seed(9)
score <- pop$poor$latent + rnorm(nrow(pop$poor), 0, 0.6)
screen_class <- ifelse(score > 0, "likely poor", "likely not poor")
round(cor(score, pop$poor$latent), 2)
#> [1] 0.88

classes <- data.frame(class = screen_class, poor = pop$poor$poor) |>
  summarise(N = n(), p = mean(poor), .by = class)
classes
#>             class       N         p
#> 1     likely poor 2050163 0.8520147
#> 2 likely not poor 1929745 0.1666106

screening_frame <- classes |>
  mutate(stratum = class, N, sd = sqrt(p * (1 - p)), mean = p,
         unit_cost = 8, .keep = "none")
screening_frame
#>         N         stratum        sd      mean unit_cost
#> 1 2050163     likely poor 0.3550854 0.8520147         8
#> 2 1929745 likely not poor 0.3726279 0.1666106         8
budget <- 768 * 16 * 9

The first plan takes the design effect of the IHS, 4.4 at a take of 16 households, for phase 1 and for the single phase.

naive <- n_twophase(screening_frame, phase1_cost = 1, budget = budget,
                    N = sum(classes$N), phase1_deff = 4.4, single_deff = 4.4,
                    mu = mean(pop$poor$poor))
summary(naive)
#> Analysis of a two-phase allocation (2 phase-2 strata)
#> 
#> field design: n_phase1 = 45488 | n_phase2 = 8138
#> cv = 0.0101, cost = 110592
#> continuous optimum: n_phase1 = 45488 | n_phase2 = 8138 (cv 0.0101, cost 110592)
#> phase-1 deff = 4.40, single-phase deff = 4.40
#> 
#> Strata
#>          stratum share   sd unit_cost     nu n_issued n_int
#>      likely poor 0.515 0.36      8.00 0.1747     4094  4094
#>  likely not poor 0.485 0.37      8.00 0.1834     4044  4044
#> 
#> Single-phase comparator: n = 13824, cv = 0.0171, cost = 110592
#> continuous optimum: n = 13824 (cv 0.0171, cost 110592)
#> Two-phase is the better design here, and it reaches the target

The plan promises a large gain. It is wrong for two reasons, both about the design effect. Phase 1 now screens about 59 households per EA, not 16, and its design effect at that take is about \(1 + 58 \times 0.23 = 14\) (Chapter 9). And the households measured in phase 2 are still clustered within each screening class, so the within-class term has a design effect too. A plan with design effects consistent with the takes is found by a few iterations, since the take of phase 1 depends on the plan. The within-class term gets a design effect from an assumed correlation of 0.08 within a class (a third of the overall 0.23), applied to the households a phase-2 EA keeps. The single phase is priced at its own take too. Without a screening, the budget buys 18 full interviews per EA, not 16.

rho <- 0.23
m1 <- m <- 16

for (i in 1:6) {
  consistent <- n_twophase(
    mutate(screening_frame, deff = as.numeric(
      design_effect(icc = 0.08, take = m1 * 0.17))),
    phase1_cost = 1, budget = budget, N = sum(classes$N),
    phase1_deff = design_effect(icc = rho, take = m1),
    single_deff = design_effect(icc = rho, take = m),
    mu = mean(pop$poor$poor))
  m1 <- consistent$n[["n_phase1"]] / 768
  m <- consistent$single_phase[["n"]] / 768
}

summary(consistent)
#> Analysis of a two-phase allocation (2 phase-2 strata)
#> 
#> field design: n_phase1 = 55488 | n_phase2 = 6888
#> cv = 0.0164, cost = 110592
#> continuous optimum: n_phase1 = 55487 | n_phase2 = 6888 (cv 0.0164, cost 110592)
#> phase-1 deff = 17.39, single-phase deff = 4.91
#> 
#> Strata
#>          stratum share   sd unit_cost deff     nu n_issued n_int
#>      likely poor 0.515 0.36      8.00 1.90 0.1212     3465  3465
#>  likely not poor 0.485 0.37      8.00 1.90 0.1272     3423  3423
#> 
#> Single-phase comparator: n = 13824, cv = 0.0181, cost = 110592
#> continuous optimum: n = 13824 (cv 0.0181, cost 110592)
#> Two-phase is the better design here, and it reaches the target

With these design effects the plan expects a CV of 1.64% for the two phases against 1.81% for the single phase, a CV lower by about a tenth, where the first plan promised 41%. The within-class design effect of 1.9 is still a guess, and the virtual survey tests it.

22.3 Virtual survey

virtual_twophase() selects the 768 EAs of the IHS plan 500 times. A single-phase replicate takes 18 households per EA, the number the same budget buys without screening. A two-phase replicate screens the households of the consistent plan in each EA and gives the full interview to the share \(\nu_g\) of each class.

plan <- mwi_plan()
head(plan)
#>      stratum  n
#> 1    Chitipa 24
#> 2    Karonga 24
#> 3 Nkhata Bay 24
#> 4     Rumphi 24
#> 5     Mzimba 24
#> 6     Likoma 12

ihs_design <- sampling_design(title = "IHS design") |>
  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")
ihs_design
#> ── Sampling Design: IHS design ──────────────────────────────────
#> 
#> ℹ 2 stages
#> 
#> ── Stage 1: EAs ─────────────────────────────────────────────────
#> • Strata: stratum
#> • Cluster: psu
#> • Draw: n = <custom data frame, per stratum>, method = pps_systematic, mos = households, control = c(urban_rural, ta)
#> 
#> ── Stage 2: Households ──────────────────────────────────────────
#> • Draw: n = 16 (per psu), method = systematic

nu <- setNames(consistent$detail$nu, consistent$detail$stratum)
single <- virtual_twophase(ihs_design, pop, screen_class, m1 = 18,
                           reps = 500, seed = 3)
round(single, 2)
#>    truth     mean  true_se       n1       n2 
#>     0.52     0.52     0.01 13824.00 13824.00

two <- virtual_twophase(ihs_design, pop, screen_class,
                        m1 = round(consistent$n[["n_phase1"]] / 768),
                        nu = nu, reps = 500, seed = 3)
round(two, 2)
#>    truth     mean  true_se       n1       n2 
#>     0.52     0.52     0.01 55248.46  6856.59

rbind(single = single, two_phase = two) |>
  as.data.frame() |>
  mutate(cv = true_se / truth, planned_cv = c(consistent$single_phase$cv,
                                              consistent$cv)) |>
  select(n1, n2, cv, planned_cv) |>
  round(4)
#>                 n1        n2     cv planned_cv
#> single    13824.00 13824.000 0.0192     0.0181
#> two_phase 55248.46  6856.592 0.0210     0.0164

The two-phase design loses. Its true CV is 2.10% against 1.92% for the single phase, while the plan expected the reverse. Poverty in Malawi clusters strongly, and the precision of the estimate is limited by the 768 EAs more than by the households within them. Screening more households in the same EAs adds little, and measuring fewer of them loses more. The plan’s guess for the within-class design effect was too low. Within a screening class, households of one EA still share their EA’s level of poverty.

A two-phase design pays when the screening variable explains much of the outcome and the clustering is weak, as on a business register, where firms are sampled one by one, or when it finds a rare group that a single phase would meet too seldom. For a common and strongly clustered outcome, more EAs buy more precision than screening.

22.4 Estimating from two phases

samplyr declares the second phase as a new design executed on the first phase’s sample. On a register of enterprises, a cheap screening interview at phase 1 sets the strata of a detailed interview at phase 2.

data(ken_enterprises)
screening <- sampling_design("Establishment screening") |>
  cluster_by(enterprise_id) |>
  draw(n = 500)
screening
#> ── Sampling Design: Establishment screening ─────────────────────
#> 
#> ℹ 1 stage
#> 
#> ── Stage 1 ──────────────────────────────────────────────────────
#> • Cluster: enterprise_id
#> • Draw: n = 500, method = srswor

phase1 <- execute(screening, ken_enterprises, seed = 71)

set.seed(72)
phase1 <- phase1 |>
  mutate(revenue_baseline = revenue_millions,
         screen_score = log1p(employees) + rnorm(n(), sd = 0.5),
         priority = if_else(screen_score >= 4, "high", "ordinary"))

interview <- sampling_design("Detailed interview") |>
  stratify_by(priority) |>
  draw(n = c(high = 60, ordinary = 90))
interview
#> ── Sampling Design: Detailed interview ──────────────────────────
#> 
#> ℹ 1 stage
#> 
#> ── Stage 1 ──────────────────────────────────────────────────────
#> • Strata: priority
#> • Draw: n = <2 values, per stratum>, method = srswor
phase2 <- execute(interview, phase1, seed = 73)
left_join(count(as.data.frame(phase1), priority, name = "phase_1"),
          count(as.data.frame(phase2), priority, name = "phase_2"),
          by = "priority")
#>   priority phase_1 phase_2
#> 1     high      83      60
#> 2 ordinary     417      90

set.seed(74)
phase2 <- mutate(phase2, revenue_millions = revenue_baseline *
                   exp(rnorm(n(), 0, 0.15)))
svytotal(~revenue_millions, as_svydesign(phase2))
#>                    total     SE
#> revenue_millions 1245757 268813

The count shows the 500 enterprises of phase 1 split by the screening, and the 60 and 90 that phase 2 takes from each group. as_svydesign() exports the two phases, with weights that combine them and a variance with a component from each phase. Phase 1 must be a sample drawn with equal probabilities, or with replacement, for this export, and ?as_svydesign lists the supported combinations.

22.5 Nonresponse follow-up

Subsampling nonrespondents has the same structure with two groups. The respondents of a first attempt are already measured and kept, and a share of the nonrespondents receives an intensive and expensive follow-up. Each followed-up case then stands for \(1 / \nu\) nonrespondents (Cochran 1977).

follow_up <- n_twophase(
  data.frame(stratum = c("respondents", "nonrespondents"),
             N = c(0.5, 0.5), sd = c(1, 1), unit_cost = c(0, 200),
             take_all = c(TRUE, FALSE)),
  phase1_cost = 50, budget = 100000, mu = 1, single_cost = 50 / 0.5)
follow_up
#> Two-phase allocation (2 phase-2 strata)
#> field design: n_phase1 = 828 | n_phase2 = 707
#> cv = 0.0382, cost = 1e+05
#> 
#>         stratum share   sd unit_cost     nu n_int take_all
#>     respondents 0.500 1.00      0.00 1.0000   414        *
#>  nonrespondents 0.500 1.00    200.00 0.7077   293         
#> 
#> single-phase is better here: n = 1000 at cv 0.0316, so skip phase 1
#> # summary() for the continuous optimum and the comparator

The respondents cost nothing more, so they are all kept, and the plan follows 71% of the nonrespondents. It also reports that, for the variance alone, approaching more units at the start and accepting the nonresponse would do better. That comparison assumes the nonrespondents resemble the respondents. When they do not, the follow-up removes a bias, and a variance comparison does not count that gain.

22.6 A continuous auxiliary

n_twophase() plans phase-2 strata. A design that measures a continuous auxiliary \(x\) at phase 1 and uses it in a regression estimator has a different variance (Brus 2022, sec. 11.2). With \(S_e^2\) the residual variance of the regression of \(y\) on \(x\), \[ S_y^2 \left(\frac{1}{n_1} - \frac{1}{N}\right) + S_e^2 \left(\frac{1}{n_2} - \frac{1}{n_1}\right), \] so the design effect depends on both phase sizes. It is not the \(1 - \rho^2\) of a regression on a known total.

22.7 How the other surveys use phases

A DHS interviews men, tests for anemia and measures children in every second household, Chapter 12, and a MICS tests the water of five households in each cluster (Chapter 26). Both are subsamples with rates set in advance, without screening. Agricultural surveys often screen households for farming in the listing or a first interview and give the detailed agricultural module to farm households, a two-phase design whose gain depends, as above, on how much the screen explains and how strongly the outcome clusters.

22.8 What to record

TipFor the sample design report

The survey selects one phase of 768 EAs and 16 households in each, without screening. A two-phase design screening about 72 households per EA and interviewing an eighth of them was considered and rejected. A virtual survey on a synthetic population calibrated to IHS4 found it less precise than the single phase at the same cost, because poverty clusters strongly within EAs.

22.9 Exercises

  1. Run the virtual survey with the phase sizes of the first, naive plan. Does the two-phase design do better than with the consistent plan?
  2. Halve the EA share of the synthetic Malawi, mwi_population(ea = 0.21), and run both designs again with the same phase sizes. Which wins?
  3. In the follow-up example, raise the follow-up cost to 400. How does the share of nonrespondents followed change?
  1. No. With 59 households screened per EA and a sixth of them interviewed, its CV is about 2.0%, still above the single phase.
  2. The single phase still wins, at a CV of about 1.4% against 1.6%. Weaker clustering helps both designs, and the screen does not explain enough of the poverty within an EA to pay for itself.
  3. It falls from 71% to 50%, by the square root of the cost ratio, as in an optimal allocation.