A survey sized for precision answers the question of how well it estimates a level. Users then ask other questions. Did poverty fall in Machinga since the last round? Did the districts that received a cash transfer improve more than those that did not? These are tests, and a test has power, the probability that it detects a change of a given size when the change is real. A design with good precision for levels can have little power for changes.
This chapter computes power and the minimum detectable effect for the Malawi IHS, shows how overlap and a comparison group change them, and checks the formula with a virtual survey of two rounds.
24.1 Precision and power
NoteMinimum detectable effect
A two-sided test at level \(\alpha\) detects a difference \(D\) with power \(1 - \beta\) when \[
D \geq (z_{1 - \alpha/2} + z_{1 - \beta}) \, \mathrm{SE}(\hat D).
\] At \(\alpha = 0.05\) and 80% power the factor is \(1.96 + 0.84 = 2.8\). For two independent rounds with the same standard error \(\mathrm{SE}\), \(\mathrm{SE}(\hat D) = \sqrt{2} \, \mathrm{SE}\), so the minimum detectable effect is about \(4 \, \mathrm{SE}\).
The plan of Chapter 28 gives a district a margin of error of about 10 points, so a standard error of about 5. Between two rounds, the smallest change it detects with 80% power is about 20 points. A district’s poverty rarely moves that much between rounds.
24.2 Power for one district
Machinga, a district of the Southern Region, serves as the example. Table 24.1 gives its row of IHS4, as the Basic Information Document of IHS5 tabulates it.
Table 24.1: Poverty in Machinga in IHS4 (2016-17): the rate and its standard error in percent, the design effect and the households used. Source: National Statistical Office (2020), Table A4, p. 50.
District
Poverty (%)
SE
Design effect
Households
Machinga
72.4
3.9
3.6
384
The plan of Chapter 28 gives Machinga 24 EAs of 16 households, 384 per round. mwi_plan() rebuilds that plan, with one row per stratum and the EAs to select in n, and mwi_population() builds the synthetic Malawi of the same chapter, which the virtual survey below uses. The design effect also comes from Chapter 28. The district design effect of 3.6 rests on 24 EAs and is too noisy to plan with. The national design effect of 5.7, divided by the weighting loss of the IHS4 allocation, gave an intraclass correlation of 0.227 for poverty, and a take of 16 households then gives \(1 + 15 \times 0.227 = 4.4\) in every district.
power_prop() solves for whichever of the sample size, the power or the effect is left out. The three calls ask in turn for the power to detect a fall of 10 points, for the smallest change detected with 80% power, and for the households needed to detect a fall of 10 points.
p1 <- machinga$poverty /100at_plan <-power_prop(p1 = p1, p2 = p1 -0.10, n = n_machinga,power =NULL, deff = deff)at_plan#> Power analysis for proportions (solved for power)#> n = 384 (per group), power = 0.294, effect = 0.1000#> (p1 = 0.724, p2 = 0.624, alpha = 0.05, deff = 4.41)power_prop(p1 = p1, n = n_machinga, deff = deff)#> Power analysis for proportions (solved for minimum detectable effect)#> n = 384 (per group), power = 0.800, effect = 0.1641#> (p1 = 0.724, p2 = 0.888, alpha = 0.05, deff = 4.41)for_10 <-power_prop(p1 = p1, p2 = p1 -0.10, power =0.80, deff = deff)for_10#> Power analysis for proportions (solved for sample size)#> n = 1503 (per group), power = 0.800, effect = 0.1000#> (p1 = 0.724, p2 = 0.624, alpha = 0.05, deff = 4.41)
The first call gives a power of 0.29, so a 10-point fall would be detected about three times in ten. The second returns the closest change that reaches 80% power, a rise of about 16 points. A fall needs more, because the variance of a proportion grows as it moves toward 50%. Figure 24.1 shows the power against the size of the fall. The third call gives about 1,500 households per round to detect a fall of 10 points, four times the 384 of the plan.
power_at <-function(fall, n) {power_prop(p1 = p1, p2 = p1 - fall, n = n, power =NULL, deff = deff)$power}fall_80 <-uniroot(\(f) power_at(f, n_machinga) -0.80, c(0.01, 0.50))$rootcurve <-expand.grid(fall =seq(0.01, 0.30, by =0.01), n =c(384, 1500)) |>mutate(power =mapply(power_at, fall, n),households =factor(n, labels =c("384", "1,500")))ggplot(curve, aes(100* fall, power, linetype = households)) +geom_line() +geom_hline(yintercept =0.80, linetype ="dotted", color ="grey40") +labs(x ="Fall in poverty (points)", y ="Power",linetype ="Households per round") +theme_minimal(base_size =11)
Figure 24.1: Power to detect a fall in Machinga’s poverty rate between two independent rounds, with the 384 households per round of the plan and with 1,500. The dotted line is 80% power.
With the plan, the power reaches 80% at a fall of about 20 points, close to the rough rule of four standard errors.
24.3 Overlap and comparison groups
Two rounds that interview some of the same households detect a change with fewer households, as Chapter 20 showed for precision. The Malawi IHS follows a panel of households between its cross-sections for that reason. With half the households interviewed again and a correlation of 0.6 (an illustrative value) between their poverty status in the two rounds, the power for the same change rises.
with_overlap <-power_prop(p1 = p1, p2 = p1 -0.10, n = n_machinga,power =NULL, deff = deff, overlap =0.5,overlap_cor =0.6)with_overlap#> Power analysis for proportions (solved for power)#> n = 384 (per group), power = 0.394, effect = 0.1000#> (p1 = 0.724, p2 = 0.624, alpha = 0.05, deff = 4.41, overlap = 0.50, overlap_cor = 0.60)
The power rises from 0.29 to 0.39.
An evaluation compares change in a treated group with change in a comparison group, a difference in differences, \[
(Y_{T,1} - Y_{T,0}) - (Y_{C,1} - Y_{C,0}).
\] Here \(Y_{G,t}\) is the poverty rate of the treated (\(G = T\)) or comparison (\(G = C\)) group in round \(t\), with 0 for the baseline and 1 for the endline. Suppose a cash transfer reaches four districts, each with 384 households per round in the IHS, and four comparable districts serve as controls. As illustrative values, poverty is 65% in both groups at baseline, and the program lowers it to 58% in the treated districts while it stays at 65% in the comparison districts, a difference of 7 points.
power_did(treat =c(0.65, 0.58), control =c(0.65, 0.65),outcome ="prop", effect =0.07, n =4*384, power =NULL,deff = deff)#> Power analysis for DiD proportions (solved for power)#> n = 1536 (per group), power = 0.274, effect = 0.0700#> (treat = (0.650, 0.580), control = (0.650, 0.650), alpha = 0.05, deff = 4.41)
The power is about one in four. A difference in differences has the variance of four estimates, so it needs far more households than a single change, here about 6,500 per arm and round for 80% power (Exercise 3). An evaluation that relies on the national survey’s sample alone rarely has the power it needs, and is usually given its own sample in the treated and control areas.
24.4 Virtual survey
The formula assumes a design effect and a normal estimate. The virtual survey checks both. The synthetic Malawi is surveyed twice, independently, with the plan of Chapter 28. Between the two rounds, the latent score of Machinga’s households is lowered so that its poverty falls by 10 points. Each pair of rounds gives a test of the change, and the share of the 500 pairs that reject is the power. The two sets of 500 surveys take a few minutes to run.
The first table shows three of the 500 baseline surveys of Machinga, each with the estimate and the standard error it would report. The second gives their averages in each round, a fall of about 10 points with a standard error of about 5 points in each round. The last line sets the share of pairs whose test rejects beside the power of the formula. The two agree. A survey sized for a 10-point margin by district detects a 10-point change in a district about three times in ten. The planner who wants change by district must size for power from the start, or accept that the survey reports changes it cannot confirm.
24.5 Precision and power together
A plan that must serve both levels and changes takes the larger of the two requirements. n_prop() gives the requirement for a level and power_prop() the requirement for a change, and the plan keeps the larger in each domain. For Machinga, the level needs about 340 households and the change about 1,500.
A DHS reports trends by comparing rounds about five years apart, each an independent sample, and its domain changes have the variance of two independent estimates. MICS reports do the same. Labor force surveys rotate their samples so that the change from one quarter to the next has overlap (Chapter 20). Impact evaluations draw their own samples in treated and comparison areas, sized for a difference in differences, and often interview the same households at baseline and endline.
24.7 What to record
TipFor the sample design report
The sample is sized for the precision of levels. Between two rounds, a district with 384 households detects a fall in its poverty rate of about 20 points with 80% power at the 5% level, under the design effect of the plan. Smaller changes by district are reported with their confidence intervals, and are not declared significant unless the test rejects.
24.8 Exercises
What power does the national poverty rate have to detect a fall of 3 points between two rounds of the plan?
Recompute the power for Machinga with 80% of the households interviewed again and a correlation of 0.6.
How many households per arm and wave does the cash transfer evaluation need for 80% power?
NoteAnswers
Use power_prop() with the national rate of 52% (the IHS4 district rates weighted by the households of the frame), n = 16 * sum(plan$n) and a design effect of 4.4 times the weighting loss of the plan, 1.21 (design_effect(strata = ...) on the plan’s EAs and the frame’s households, as in Chapter 28). A 3-point fall is detected about half the time, even with 12,288 households per round.
With overlap = 0.8, the power rises to about 0.50, against 0.39 with half the households interviewed again, since \(1 - f\rho\) falls from 0.70 to 0.52.
power_did() with power = 0.80 and n left out gives about 6,500 households per arm and round.