A reserve list is the form of field substitution that samplyr weights. Each pool, such as the listing of one enumeration area, draws its take plus a reserve, and the list is put in a random order. The office releases the reserve one unit at a time, one for each unit that fails, until the pool has its take of respondents or the list runs out. Because the list and its order are part of the design, the weights of the respondents follow from the record of what the field did.
Details
Many national survey programs, the DHS and MICS among them, allow no substitution and adjust for nonresponse in the weights. A reserve list serves a protocol that substitutes, and is not a reason to adopt one.
Workflow
draw(n = 8, reserve = 4) asks each pool for a take of 8 and a list of
12. execute() draws the list with the stage's method and adds
.reserve_k, which is 0 for the take and ranks the reserve units 1 to 4
in release order. The weight at that stage is the chance of the whole
list. The field works the take, releases reserve units in order, and
records a code for every unit it released. execute(sample, response_status = result) reads those codes, settles each pool, and
returns the respondents with their weights. Only a settled sample can be
exported, take a new phase, or go to share_weights() or
stack_frames(). Lists drawn with execute(reps = ) are settled one
replicate at a time, from dplyr::filter(sample, .replicate == r).
A parent drawn with replacement, such as an enumeration area selected
twice by "srswr" or "pps_multinomial", draws a list for each of its
draws, told apart by .draw_k. Each list is a pool of its own, settled
and exported apart, so a household listed under two draws can take a
different code under each.
A reserve at the first stage, such as reserve enumeration areas for
areas that cannot be reached, is settled before the next stage is drawn.
Execute it with stages = 1, settle it, then continue from the settled
sample with execute(settled, listing).
Field protocol
The weights hold only if the field follows the protocol below.
The office holds the reserve and releases units in
.reserve_korder. Interviewers see a released unit as an ordinary assignment.Every failure releases one unit, whether the unit refused, was never found, or proved ineligible.
Work in a pool stops at its take of respondents or when the list runs out. An earlier stop is allowed only for a reason that does not depend on how the pool was going, such as insecurity or the end of the field period.
Reserve units get the same contact rules as the take. When they get fewer visits, or interviewers try less because they know a reserve exists, the estimates carry a bias that no weight removes (Vehovar 1999).
Response status codes
The column named by response_status holds the final disposition of
each released unit, in the terms of the AAPOR Standard Definitions. It
records whether the unit was eligible as well as whether it responded.
A code is read by its leading digit, so 2.24 and "2.24" are both an
eligible non-interview, and four words stand for the four categories.
| Code | Word | Meaning |
| 1 | "interview" | complete or partial interview |
| 2 | "noninterview" | eligible, not interviewed |
| 3 | "unknown" | eligibility never established |
| 4 | "ineligible" | not eligible, such as a vacant dwelling |
NA marks a reserve unit that was never released. A survey that treats
a partial interview as a break-off codes it 2. How a unit of unknown
eligibility is coded chooses its eligibility. Code 3 estimates it from
the resolved units of the pool, as AAPOR's proportional allocation does.
Code 2 counts it as eligible and code 4 as ineligible. Many field systems
record a household where no one was found as a non-contact, which AAPOR
keeps for dwellings known to be occupied. Coding such a unit 2 counts it
as eligible.
Weights
Before settlement, .weight_k at the reserve stage is the inverse of the
list's chance, N / (n + reserve) in a pool large enough for the whole
list. That weight describes the list, not the units the field ends up
interviewing.
Settlement walks each pool in release order and stops at the unit that
brought the pool to its take. The pool's eligible units are then
estimated from the units worked, and the estimate is shared among the
respondents. For a pool of N units with k units worked, e of them
eligible, u of unknown eligibility and n_r respondents,
where s is 1 when the pool stopped at its take and 0 otherwise.
Leaving out the unit that stopped the pool makes the estimate of
the eligible units unbiased over the release order. Giving each
respondent the pool's size over its respondents instead overstates the
total whenever ineligible units were replaced.
A unit released after the stop is dropped, together with its interview,
so a pool worked past its take keeps the weight of the stop rule. A pool
stopped early with reserve left is settled with the units it worked,
which stays unbiased when the stop did not depend on the outcomes. A
pool that its take covers lists every unit and is settled from its known
count. Under method = "srswor" the weighted totals are unbiased. Under
"systematic" the eligible count stays unbiased, but a total need not be.
Its bias depends on the frame order and can be material under an
unfavorable one.
These properties hold for the pools with a respondent. A pool without one keeps its weight in rows for its eligible units that did not respond (see the Export section). When every unit it worked is of unknown eligibility, its eligible count takes the resolved rate of the pools that share its strata, or the pool size when none of them resolved a unit. Both are assumptions about the pool, not consequences of the release order.
summary() reports the counts per pool, and how many pools ran out,
stopped early, released too many or ended with no respondent. It also
reports the realized rates under the names of the svyplan arguments, so
that one round can plan the next. eligibility_rate is the share of
worked units found eligible, with the unknowns allocated at the rate of
the resolved units. resp_rate is the share of eligible units that
responded, AAPOR's RR4. Both are ratios of totals over all pools. The
line ends with how much the share of worked units that responded varies
between pools, as a standard deviation net of each pool's own sampling
noise. It is 0 when that noise explains all the spread.
Export
A sample whose reserve is not settled is refused by every export, and by
design_effect(), effective_n() and varcomp()
(samplyr_error_reserve_unsettled), since its weights describe the whole
list. Once settled, as_svydesign() and as_svrepdesign() export it by
ultimate clusters. The settled stage's respondents are a
random subset of a respondent count the field never observed, so that
stage's finite population correction is unknown, and every stage is
carried in the primary-unit totals. The share of each pool's eligible
units that responded is treated as fixed. A two-phase sample, shared
weights, and the "mrbbootstrap" and "rwyb" replicates of
as_svrepdesign() would build the stages one by one, and refuse a
settled reserve (samplyr_error_reserve_full_export). An occasion holds no
settlement of its own, so an occasion of a master that draws a reserve is
refused with the same class, settled or not, and the settled master
exports as a whole.
Each pool's eligible units are estimated from the units the field
worked. The export adds one row for each unit found ineligible among
those the estimate counts, at the weight of the stages above times the
pool's size over the number of units counted. The pool's weights then
add up to its size at every stage, and the variance treats the eligible
count as estimated. These rows hold NA in every column except the
strata, the weight and, while the sample still holds it, the response
status column, which carries the ineligible code in the column's own type
(4, "ineligible", or a factor level of that name, added if absent).
Estimate for the eligible population as a domain:
svy <- as_svydesign(settled)
survey::svytotal(~income, svy, na.rm = TRUE)
survey::svymean(~income, subset(svy, result != "ineligible"))na.rm = TRUE and subset() keep those rows in the variance, and
removing them before the export understates it. Below the first stage
the rows sit in the primary unit of their pool, so they leave its
totals of the analysis variables unchanged, and a primary unit whose
units all proved ineligible is kept as a zero total.
A primary unit taken whole, by a certainty rule or as a unit of a census stratum, with a later stage drawn inside it, represents itself as it does in an occasion. Expected hits of 1 at a stage drawn with replacement do not make a unit certain. It is a stratum of its own whose clusters are its units of the next stage. With the reserve at that stage, its pools are exported as first-stage pools are, times the weight of the stage above, so its ineligible units and the eligible nonrespondents of a pool with no respondent are units of their own. The first stage's finite population correction is left out, which overstates the variance where the first-stage sampling fraction is large.
A pool whose eligible units include no respondent still has an estimated
eligible count, from the units the field worked. With every worked unit
of unknown eligibility, it takes the resolved rate of the pools that
share its strata, or counts every unit as eligible when none of them
resolved one. Both are assumptions about the pool, and summary()
counts the pools that rest on them. A pool estimated to hold no eligible
unit, such as one whose resolved units all proved ineligible, is exported
as ineligible. For every other such pool, the export adds one row per
eligible unit that did not respond, at the same weight as its ineligible
units, so together they carry the estimated count, coded as an eligible
non-interview (2, "noninterview", or a factor level of that name).
When every worked unit is of unknown eligibility, those units share the
count, and one more row, coded as ineligible, carries the units the pool
is estimated not to hold eligible, so the pool's weights still add up to
its size. That row names no unit of the field record, so a
stack_frames() collection refuses it
(samplyr_error_stack_frames_membership), since its membership in the
other frames is unknown. The rows' other columns hold NA, and below the
first stage they
sit in the primary unit of their pool. The export warns
(samplyr_warning_reserve_no_respondent) and names the pools. Until a
nonresponse adjustment moves that weight to respondents, estimates leave
it out. With replicate weights, svrep::redistribute_weights() makes the
adjustment in every replicate:
rep <- as_svrepdesign(settled)
rep <- svrep::redistribute_weights(
rep,
reduce_if = result == "noninterview",
increase_if = result == "interview",
by = "region"
)
survey::svytotal(~income, rep, na.rm = TRUE)The adjustment moves the weight of those rows but leaves the rows, with
NA in every analysis variable. An estimate therefore needs
na.rm = TRUE, as for the ineligible rows. Without it a linearized
total is NA, and a replicate design fails with "All replicates
contained NAs".
With linearization, survey::calibrate() to known totals plays that
role. After a stage below the reserve is drawn, the units of such a
pool have no weight at that stage, so its export is refused
(samplyr_error_reserve_no_respondent). Export before drawing it, or
combine the stratum with a neighbor in the design.
The rows the export adds hold NA in the variables a calibration would
use, so survey::calibrate(), survey::postStratify() and
survey::rake() stop on them. Calibrate the respondents instead, through
indicators that are 0 on those rows, and without an intercept, which
would count them:
svy <- update(
svy,
female = as.numeric(sex %in% "female"),
male = as.numeric(sex %in% "male")
)
svy <- survey::calibrate(
svy, ~ 0 + female + male, c(female = 5200, male = 4800)
)A row whose indicators are all 0 keeps its weight, under a linear
calibration as under calfun = "raking". The ineligible rows still
estimate the ineligible count, and the respondents alone carry the known
totals. The same call works on a replicate design, before or after
svrep::redistribute_weights().
In a frame stack, each added row composites with the membership of the
unit it stands for, which the settlement records, so the membership
columns must be on the list before it is settled
(as_svrepdesign.frame_stack()).
A schedule that opens several cohorts per panel takes no reserve at any
stage (samplyr_error_cohort_stages), since its master is never
complete.
Other forms of substitution
Other forms of substitution change the design in a way no weight records, and samplyr does not support them. These include substitutes matched to the failed unit, substitutes chosen by the interviewer, and substitutes drawn at random only when a unit fails, since nothing then records the pool or the order.
Reserve batches are another protocol, which a settlement does not fit.
The sample holds random batches that are activated together in every
pool when response falls short, and every released unit is worked, as
the European Social Survey asked from its tenth round. The weight then
comes from the units released, so response_status would drop the
respondents released after a pool reached its take. Draw the main
sample and the batches as one take, and assign it at that stage to
panels the size of one batch, so that the main sample spans several
panels. A schedule whose occasion b + 1 activates the main sample and the
first b batches then gives, through execute(master, period = b + 1),
each unit the weight of the units released. panel_assignment
describes schedules.
Planning a reserve
Plan the take net of the units the reserve replaces. A svyplan plan
whose eligibility_rate or resp_rate is below 1 can inflate the take
for the same losses, so the field works until it has more respondents
than the plan needed, and draw() warns when it gets such a plan with a
reserve. The reserve replaces ineligible units as well as
nonrespondents. For a take at a stage above the last the rate is that
stage's response rate, such as resp_rate_1 for PSUs. When the
indicator is about persons, resp_rate can hold the response rate of
persons in responding units, which a reserve of units does not replace.
That rate can then be kept, while an eligibility_rate below 1 is
still set to 1.
Size the reserve so that a list rarely runs out. With p the share of
released units that end as respondents, the product of
eligibility_rate and resp_rate, the list length L should make the
chance of at least b respondents among L units high. For a take of
12 and p = 0.63, a list of 25 reaches the take with a 95% chance, a
reserve of 13. A list of 18 runs out in about half the pools.
Interviewers still visit about b / p units on average, since
unreleased reserve units are listed but never visited.
A list sized for the mean of p runs out more often when p varies
between pools. At a standard deviation of 0.10 between pools, the list
for a take of 12 at p = 0.63 grows from 25 to 29 units. The spread
that summary() reports for a settled round gives that standard
deviation for the next one. With a few dozen pools it is a rough guide,
since it cannot tell a spread of 0.05 from none.
When the office or a tablet holds the whole listing and releases units
one at a time, reserve = Inf lists every unit of each pool in random
order. No reserve needs sizing, and a list runs out only when the pool
does. The list weight of that stage is then 1.
A reserve controls the number of respondents in each pool. It removes no nonresponse bias, since the respondents still differ from the nonrespondents as they would without it (Vehovar 1999, Lynn 2004).
References
AAPOR (2016). Standard Definitions: Final Dispositions of Case Codes and Outcome Rates for Surveys. Ninth edition. American Association for Public Opinion Research.
Lynn, P. (2004). The use of substitution in surveys. The Survey Statistician, 49, 14-16.
Vehovar, V. (1999). Field substitution and unit nonresponse. Journal of Official Statistics, 15(2), 335-350.
See also
draw() for reserve, execute() for response_status,
as_svydesign() for export.
Other reference topics:
frame_input_grammar,
sample_columns,
selection_methods,
variance_estimation
Examples
# Two enumeration areas per region, then 8 households and a reserve of 4
frame <- bfa_eas[bfa_eas$households >= 20, ]
design <- sampling_design() |>
add_stage(label = "EA") |>
stratify_by(region) |>
cluster_by(ea_id) |>
draw(n = 2, method = "pps_brewer", mos = households) |>
add_stage(label = "Household") |>
draw(n = 8, reserve = 4)
ea_sample <- execute(design, frame, stages = 1, seed = 2026)
# One row per selected EA, even one drawn more than once
eas <- unique(as.data.frame(ea_sample)[c("ea_id", "households")])
listing <- data.frame(ea_id = rep(eas$ea_id, eas$households))
listing$hh_id <- ave(listing$ea_id, listing$ea_id, FUN = seq_along)
set.seed(1)
listing$members <- 1 + rpois(nrow(listing), 4)
listed <- execute(ea_sample, listing, seed = 2027)
table(listed$.reserve_2)
#>
#> 0 1 2 3 4
#> 208 26 26 26 26
# Simulate the field: work the take, then the reserve in order,
# until 8 interviews or the end of the list
set.seed(3)
listed$latent <- sample(
c("interview", "noninterview", "unknown", "ineligible"),
nrow(listed), replace = TRUE, prob = c(0.7, 0.15, 0.05, 0.1)
)
work <- function(rank, latent) {
o <- order(rank)
hit <- latent[o] == "interview"
out <- latent[o]
out[cumsum(hit) - hit >= 8] <- NA
out[order(o)]
}
listed <- dplyr::mutate(listed, result = work(.reserve_2, latent),
.by = ea_id)
# Settle each pool from the codes and keep the respondents
settled <- execute(listed, response_status = result)
summary(settled)
#> ── Sample Summary ──────────────────────────────────────────────────────────────
#>
#> ℹ n = 199 | stages = 2/2 | seed = 2027
#>
#> ── Stage 1: EA ─────────────────────────────────────────────────────────────────
#> • pps_brewer, MOS households, cluster ea_id, by region
#> • 13 strata: N_h 1,364-3,841, n_h 2, f_h 0.0005-0.0015
#>
#> ── Stage 2: Household ──────────────────────────────────────────────────────────
#> • srswor
#> • 26 pools: N_h 24-175, n_h 8, n_reserve 4, f_h 0.0686-0.5000 | eligible units under realized parents
#> • Settled: n_listed 12, n_attempted 8-12, n_eligible 8-12, n_unknown 0-2, n_respondents 6-8
#> • ran_out 8, under_released 0, over_released 0, no_respondent 0 of 26 pools, dropped 0
#> • Realized eligibility_rate 0.898, resp_rate 0.780, n_respondents / n_attempted 0.701, sd between pools 0.000
#>
#> ── Weights ─────────────────────────────────────────────────────────────────────
#> • Mean 13017.81 [5349.54, 38948.58] | CV 0.54 | Kish DEFF 1.29 | n_eff 154
#>
if (requireNamespace("survey", quietly = TRUE)) {
svy <- as_svydesign(settled)
survey::svytotal(~members, svy, na.rm = TRUE)
}
#> total SE
#> members 12479219 444302
