Skip to contents

Compute how many units to recruit so that a panel still delivers a required responding sample after several waves of attrition, either for a fixed panel followed to a chosen wave or for a rotating panel at equilibrium. The requirement and the estimand both come from an existing sizing or precision result, so the panel arithmetic is stated once and the design it serves is stated where it always was.

Usage

n_panel(
  target,
  retention,
  ...,
  resp_rate = 1,
  eligibility_rate = 1,
  design = c("fixed", "rotating"),
  target_wave = NULL,
  assurance = NULL,
  start = NULL,
  rotation = NULL
)

Arguments

target

A svyplan_n or svyplan_prec result for a mean, a proportion or a ratio of totals, from n_mean(), n_prop(), n_ratio(), prec_mean(), prec_prop() or prec_ratio(). It supplies two things: the responding sample the panel must deliver, and the estimand whose precision is reported at every wave. Its own resp_rate is removed first, so the requirement is a count of respondents and no response is counted twice. The panel's resp_rate is the only recruitment response that reaches the answer. Where the two differ the target's is reported as unused, at the call and again in summary(). Clustered, allocation, multi-indicator, multidomain, change and two-phase results are refused, their stage-specific and occasion-specific sizes not being one responding count.

retention

Conditional retention, one value per wave transition, each in (0, 1]. retention[j] is the share of wave j respondents who respond again at wave j + 1. Its length plus one is the number of waves in a unit's life, so a five-wave panel takes four values.

...

Additional arguments are not supported and produce an error.

resp_rate

Response rate among eligible units at recruitment, wave 1, in (0, 1], 1 by default. It is separate from retention because the first wave is where most of a panel's loss happens, and an average rate spread over the waves would under-issue. See the nonresponse section of svyplan-package for what the rate counts and what this adjustment does and does not claim.

eligibility_rate

Share of issued units in scope at recruitment, such as dwellings found occupied, in (0, 1]. Default 1. Units leaving scope after wave 1 belong in retention. It converts respondents to issued units only. With a finite N the population each wave's precision is evaluated on stays the target's, N times the target's own eligibility, since the target's respondent requirement was solved against it. See the nonresponse section of svyplan-package.

design

"fixed" for one cohort followed across its waves, or "rotating" for equal cohorts entering every period and leaving at the end of their life. The two return different quantities, described under Value. This argument names the panel type. It never accepts a survey.design or a svyplan() object.

target_wave

The wave at which the target must be met, defaulting to the last. Sizing to reach a precision at wave 3 of a five-wave panel is a legitimate request, and waves 4 and 5 are still reported. It must be absent for a rotating design, whose target is a period rather than a wave.

assurance

Probability in (0, 1), or NULL (default). The recruitment above is an expected-value calculation, which does not guarantee that the target will be reached. The shortfall probability depends on the response distribution and integer rounding. Supplying a level reports, next to it, the recruitment for which the required respondents arrive with at least that probability. Not available when the target has eligible_per_unit other than 1. See Details.

start

How a rotating design's cohorts are brought in, or NULL (default). "gradual" recruits one cohort a period, so the design fills up over a life (Lynn, 2012, gradual start). "immediate" selects one cohort for every place in the life at the first period, each at its own wave and at its first visit, so the sample is full at once. Supplying either reports what the design delivers at each period of the start-up until it settles. The default plans no start-up, which is what the recruitment above describes either way. Not available for a fixed panel, which recruits one cohort.

rotation

The rotation a rotating design's cohorts follow, a design_rotation() result or anything it accepts, such as "2-2-2". NULL (default) is a life without a break, one period per wave. A unit is interviewed at every in-sample period, so the rotation has one more in-sample period than retention has values, and its in-sample entries are all 1. See the section on a life with a gap. Not available for a fixed panel.

Value

A svyplan_panel object, with $solved naming the direction it was solved in. prec_panel() returns the same class with $solved absent, since it solves for nothing. Fields:

n_issued

Fixed panels only. Units to issue to the one cohort.

n_entrants, n_in_sample, n_cohorts

Rotating panels only. Entrants per period once the design is running, the units the design holds across every live cohort, and how many cohorts that is. The first two are different budget lines and are named separately for that reason. For a life without a gap, n_in_sample is also the cumulative recruitment that reaching the full sample takes, whether the cohorts are taken on at once or phased in over the first n_cohorts periods. With a gap, cohorts out of sample are held too, so that recruitment is n_held, reached after length(rotation) periods.

n_held, rotation

Rotating panels only. The units selected and not yet past their last interview, those out of sample in a gap included, and the rotation they follow. n_held equals n_in_sample for a life without a break, and it is what a finite population has to supply.

n_target

The responding sample the target requires. Counts sampled units, as n_resp and the per-wave n_resp do. A target with eligible_per_unit holds that many eligible units per responding unit on average, and its precision is computed on that product.

n_resp

The responding sample the design delivers where the target is stated: at target_wave for a fixed panel, pooled across the live cohorts for a rotating one. It is what se, moe, cv and rmoe are computed on.

n_assured, assured_feasible

Recruitment meeting the target with probability at least assurance, when a level was given, and whether a finite population can supply it. See Details.

se, moe, cv, rmoe

Precision of the embedded estimand at n_resp. For a fixed panel sized in the usual direction these reproduce the target's own precision exactly.

waves

One row per wave of a unit's life: the conditional retention into it, the cumulative response probability q, the share loss_share of the whole life's loss that happens at it, the expected respondents n_resp, and the precision an estimate using only those respondents would have. For a rotating design the rows are the cohorts alive at one period and n_resp sums to the period's sample.

start, periods, period_visits

Present when start was given. periods has one row per period of the start-up and one past equilibrium: the entrants taken on, the units in sample, the expected respondents, the precision they buy, and equilibrium marking the period from which the design holds one cohort at every wave. That is the composition rather than the count. Where no wave loses anyone, the counts coincide from the first period and the mix still does not. period_visits has one row per period and visit, a cohort's interview count, which is what its retention follows. It is where the reason for the precision at a period can be read. Both are continuous, as waves is.

target

The embedded object, unchanged.

Details

Writing \(e\) for eligibility_rate, \(r\) for resp_rate and \(c_j\) for retention[j], the probability that a unit approached at recruitment is in scope and still responding at wave \(w\) is

$$q_w = e\,r \prod_{j < w} c_j,$$

and the two designs invert it differently:

$$\text{fixed: } n_{\text{issued}} = n_{\text{target}} / q_w, \qquad \text{rotating: } n_{\text{entrants}} = n_{\text{target}} / \sum_{s} q_s.$$

Both are exact expected values under the stated rates. They are not the same quantity and the object never writes one over the other. The fixed figure is the whole issue to one cohort, while the rotating figure is what enters at each period, with n_in_sample the separate line for the units every live cohort holds at once.

A rotating panel pools every live cohort into one period, so with \(m\) entrants per period its responding sample is \(m \sum_s q_s\) rather than one cohort's count at its final wave. On the example below the two differ by a factor of five.

Where a panel loses its sample

waves$loss_share divides the whole life's loss across the waves. It is usually concentrated at recruitment, 61 percent of it in the example below, which is the argument for resp_rate and retention being separate arguments rather than one average rate.

Bringing a rotating design up to equilibrium

A rotating design's recruitment describes it at equilibrium (Lynn, 2012), which it reaches once one cohort is at every wave of the life. Getting there is a design decision, and start reports what each choice delivers in the start-up period before it (Kalton, 2009).

A gradual start recruits one cohort a period, so the sample climbs over a full life before it is the design's own. An immediate start selects one cohort for every place in the life at the first period. Each is at its own wave of the pattern and at its first visit, and together they hold the whole sample from the first period. design_overlap() gives the same mature membership-overlap profile under either start. During a gradual start, realized overlap is higher until every life stage is represented because no full set of cohorts has yet rotated through. The tables periods and period_visits therefore describe both the early membership mix and its response and precision path.

The point of reporting it is that an immediate start is not at equilibrium at its first period even though it has the full sample in the field. Every unit there is at its first visit, so that period holds

$$R_1 - m \sum_s q_s = m \sum_s (q_1 - q_s) \ge 0,$$

at least as many respondents as the design ever holds again, and strictly more as soon as any wave retains less than all of the one before. The two coincide exactly when every retention is 1, whatever resp_rate is, since it cancels from both sides. Where they differ the early precision is temporarily better. On the example below the first period holds 1172 respondents against the design's 1001, moe 0.0287 against 0.0310, converging down as the interview mix matures. A gradual start approaches the same figure from below. Either way the early periods rest on a different response composition from the rest of the series, which period_visits is there to expose and which is what nonresponse weighting has to carry.

A life with a gap

waves counts interviews, not periods. Under rotation = "2-2-2" a unit is interviewed at periods 1, 2, 5 and 6 of a six-period life, so retention takes three values. The equilibrium is that of an unbroken four-wave life, with the same entrants, the same four cohorts in sample and the same precision. The loss across the gap belongs in the retention value that crosses it, retention[2] here.

The rotation changes two things. Six cohorts are held at a period, two of them out of sample, which is n_held. The start-up follows the rotation. An immediate start covers every stage of the life at the first period, and a cohort covering a stage out of sample is selected then and first interviewed when the rest of its life returns to sample. Its visits count from its own first interview, so a start-up cohort that crosses the gap at another visit takes that visit's retention. That difference is confined to the start-up.

Assurance

For a fixed panel the assured recruitment is the smallest \(g\) with \(P(\mathrm{Binomial}(g, q_w) \ge n_{\text{target}}) \ge\) assurance. For a rotating panel the respondents at one period are a sum of binomials at different cumulative probabilities, one per live cohort, so the distribution is Poisson-binomial rather than binomial. It is assembled exactly, by convolving one distribution per cohort, rather than approximated by a binomial on their mean rate.

The level counts responding sampled units. It is refused for a target with eligible_per_unit other than 1, since a mean yield per unit does not give the distribution of eligible respondents. When each sampled unit holds one eligible unit or none, independently, size the target in eligible units and pass that share as eligibility_rate, which the binomial carries.

The level is marginal. For a rotating design it holds at one period, and consecutive periods share cohorts, so the chance that every period of a run clears its target is lower and is not computed here.

A requested level can be out of reach. Where the assured recruitment exceeds a finite N, not even a census of the frame delivers the target that often. The recruitment it would take is still reported, that being the number a planner needs in order to argue for a larger frame or a smaller target, and assured_feasible is FALSE alongside a warning. Neither the expected design nor its precision is affected, which is why this is not an error: assurance is an addition to a plan that stands without it. A warning alone would not do, though, since it does not survive into the object a script reads.

What the rates are, and what they are not

This is arithmetic on declared rates. Where the rates come from is the planner's problem: attrition modeling, attrition weighting and any adjustment for informative dropout are outside what the package does.

Two assumptions are worth stating because they push in opposite directions. A unit lost at wave \(j\) is treated as lost for good, so a panel whose nonrespondents return at a later wave will do better than planned here and this over-issues. And the rates are one set for the whole sample. Where response differs by domain, recruitment should be solved separately within groups of similar attrition, which over-represents the hard-to-retain groups at wave 1. Call n_panel() once per group and hand the results on as a named vector.

A target's constraints hold where the target is stated. Sizing to a min_cases floor at wave 3 of a five-wave panel leaves waves 4 and 5 with fewer expected cases than the floor, which is a consequence of target_wave and not a failure of the constraint.

The deff of the embedded target is applied unchanged at every wave. A panel adds a within-unit correlation over time that a cross-sectional design effect does not describe, and that correlation works for a change and against a pooled average, so a design serving either should carry a design effect chosen for that estimand.

One class for both directions

n_panel() and prec_panel() both return svyplan_panel, unlike the rest of the package where the two directions return svyplan_n and svyplan_prec. A panel's recruitment and its precision move together across the waves and are only readable side by side, so the object holds both whichever direction produced it. n_panel() records its direction in $solved, and prec_panel() leaves it absent. The class is a sibling of svyplan_n, not a subtype: $n_issued is a count of units to release, and the methods registered for an analysis sample would each answer a different question about it.

References

Kalton, G. (2009). Designs for surveys over time. In D. Pfeffermann and C. R. Rao (eds.), Handbook of Statistics 29A, Sample Surveys: Design, Methods and Applications, 89–108. Elsevier.

Lynn, P. (2012). Longitudinal Survey Methods for the Household Finances and Consumption Survey. Report prepared for the European Central Bank.

Smith, P., Lynn, P., and Elliot, D. (2009). Sample design for longitudinal surveys. In P. Lynn (ed.), Methodology of Longitudinal Surveys, 21–33. Wiley.

See also

prec_panel() for the same design from a recruitment you already have, design_overlap() for the overlap a rotation produces, design_schedule() for turning a rotating plan into an operational schedule, n_change() for sizing the change between two occasions.

Other repeated survey functions: design_overlap(), design_rotation(), design_schedule(), n_change(), n_pooled(), prec_change(), prec_panel(), prec_pooled()

Examples

# UK LFS: five quarterly waves, 73 percent at recruitment then high
# conditional retention. Issue 1815 addresses to hold 1000 at wave 5.
target <- n_prop(p = 0.5, moe = 0.031)
lfs <- n_panel(
  target,
  retention = c(0.878, 0.963, 0.936, 0.956),
  resp_rate = 0.728
)
lfs
#> Panel recruitment (fixed, 5-wave life)
#> issued: 1815 -> 1000 responding at wave 5
#> proportion (wald): se = 0.01581, moe = 0.03099, cv = 0.0316
#> 
#>  wave retention n_resp se      moe    
#>  1              1321   0.01376 0.02696
#>  2    0.878     1160   0.01468 0.02877
#>  3    0.963     1117   0.01496 0.02932
#>  4    0.936     1046   0.01546 0.03031
#>  5    0.956     1000   0.01581 0.03099
#> 
#> # summary() for the start-up, the loss and per-wave cv

# Precision at every wave, and where the loss happens
lfs$waves
#>   wave retention         q loss_share    n_resp         se        moe
#> 1    1        NA 0.7280000 0.60550724 1320.8645 0.01375754 0.02696429
#> 2    2     0.878 0.6391840 0.19771592 1159.7190 0.01468228 0.02877675
#> 3    3     0.963 0.6155342 0.05264754 1116.8094 0.01496168 0.02932436
#> 4    4     0.936 0.5761400 0.08769657 1045.3336 0.01546474 0.03031033
#> 5    5     0.956 0.5507898 0.05643274  999.3389 0.01581662 0.03100000
#>           cv expected_cases
#> 1 0.02751509       660.4322
#> 2 0.02936457       579.8595
#> 3 0.02992337       558.4047
#> 4 0.03092947       522.6668
#> 5 0.03163323       499.6695

# The same rates run as a rotating panel: entrants per period, and the
# larger number the five live cohorts hold between them
rot <- n_panel(
  target,
  retention = c(0.878, 0.963, 0.936, 0.956),
  resp_rate = 0.728,
  design = "rotating"
)
c(entrants = rot$n_entrants, in_sample = rot$n_in_sample)
#>  entrants in_sample 
#>  321.3672 1606.8361 

# Sizing to reach the target earlier: waves past it carry fewer units
n_panel(target, retention = c(0.878, 0.963, 0.936, 0.956),
        resp_rate = 0.728, target_wave = 3)$waves$n_resp
#> [1] 1181.9307 1037.7351  999.3389  935.3812  894.2245

# What the design delivers while it is being brought up
n_panel(target, retention = c(0.878, 0.963, 0.936, 0.956),
        resp_rate = 0.728, design = "rotating",
        start = "immediate")$periods
#>   period n_entrants n_in_sample    n_resp         se        moe         cv
#> 1      1  1606.8361    1606.836 1169.7767 0.01461903 0.02865277 0.02923806
#> 2      2   321.3672    1606.836 1055.6065 0.01538930 0.03016248 0.03077861
#> 3      3   321.3672    1606.836 1032.8056 0.01555825 0.03049361 0.03111650
#> 4      4   321.3672    1606.836 1007.4856 0.01575254 0.03087441 0.03150508
#> 5      5   321.3672    1606.836  999.3389 0.01581662 0.03100000 0.03163323
#> 6      6   321.3672    1606.836  999.3389 0.01581662 0.03100000 0.03163323
#>         rmoe equilibrium expected_cases
#> 1 0.05730554       FALSE       584.8883
#> 2 0.06032496       FALSE       527.8032
#> 3 0.06098721       FALSE       516.4028
#> 4 0.06174882       FALSE       503.7428
#> 5 0.06200000        TRUE       499.6695
#> 6 0.06200000        TRUE       499.6695

# The same recruitment phased in one cohort a period instead
n_panel(target, retention = c(0.878, 0.963, 0.936, 0.956),
        resp_rate = 0.728, design = "rotating",
        start = "gradual")$periods$n_resp
#> [1] 233.9553 439.3681 637.1806 822.3331 999.3389 999.3389

# Why the first period of an immediate start is the most precise one:
# every unit in it is at its first visit
imm <- n_panel(target, retention = c(0.878, 0.963, 0.936, 0.956),
               resp_rate = 0.728, design = "rotating", start = "immediate")
subset(imm$period_visits, period <= 2)
#>   period visit  n_issued    n_resp
#> 1      1     1 1606.8361 1169.7767
#> 2      2     1  321.3672  233.9553
#> 3      2     2 1285.4689  821.6511

# A 2-2-2 rotation, in for two periods, out for two, in for two. Its
# equilibrium is the four-wave one, and six cohorts are held
gap <- n_panel(target, retention = c(0.9, 0.85, 0.9), resp_rate = 0.75,
               design = "rotating", start = "immediate",
               rotation = "2-2-2")
c(in_sample = gap$n_in_sample, held = gap$n_held)
#> in_sample      held 
#>  1589.327  2383.990 
gap$periods[c("period", "n_entrants", "n_in_sample", "equilibrium")]
#>   period n_entrants n_in_sample equilibrium
#> 1      1  2383.9903    1589.327       FALSE
#> 2      2   397.3317    1589.327       FALSE
#> 3      3   397.3317    1589.327       FALSE
#> 4      4   397.3317    1589.327       FALSE
#> 5      5   397.3317    1589.327       FALSE
#> 6      6   397.3317    1589.327        TRUE
#> 7      7   397.3317    1589.327        TRUE

# Request at least a 95% probability of reaching the respondent target
n_panel(target, retention = c(0.9, 0.9), resp_rate = 0.8,
        assurance = 0.95)$n_assured
#> [1] 1591

# An unemployment rate, unemployed over the labor force, as a ratio of
# two totals over all persons: 4 percent unemployed, 65 percent in the
# labor force. The requirement counts persons responding, not labor
# force members, since the unit coefficients are over everyone in scope.
pu <- 0.04
pl <- 0.65
rate <- n_ratio(r = pu / pl, cv_num = sqrt((1 - pu) / pu),
                cv_den = sqrt((1 - pl) / pl),
                component_cor = sqrt(pu * (1 - pl) / (pl * (1 - pu))),
                cv = 0.05, deff = 1.5)
n_panel(rate, retention = c(0.9, 0.92, 0.94, 0.95), resp_rate = 0.6,
        design = "rotating")
#> Panel recruitment (rotating, 5-wave life)
#> entrants: 5526 per period -> 14077 responding, pooled over 5 cohorts
#> ratio (linearization): se = 0.003077, moe = 0.006031, cv = 0.05
#> 
#>  wave retention n_resp se       moe    
#>  1              3316   0.00634  0.01243
#>  2    0.9       2984   0.006683 0.0131 
#>  3    0.92      2745   0.006967 0.01366
#>  4    0.94      2581   0.007186 0.01409
#>  5    0.95      2452   0.007373 0.01445
#> 
#> # summary() for the start-up, the loss and per-wave cv