Construct an operational schedule from a rotating panel plan
Source:R/design_schedule.R
design_schedule.RdTranslate the start-up and recruitment quantities in a rotating svyplan_panel into named selections, a dense panel-by-period schedule, and any interview commitments beyond the planning horizon. The result is a planning object. It does not inspect a frame, execute a sample, or construct analysis weights.
Usage
design_schedule(
panel_plan,
horizon,
horizon_policy,
refreshment,
frame_vintage = NULL,
rounding = "ceiling",
take = NULL,
retain_psus = FALSE,
subrounds = 1,
entrants = NULL
)Arguments
- panel_plan
A rotating
svyplan_panelfromn_panel()orprec_panel()withstart = "immediate"orstart = "gradual". Itsrotationis the life the schedule lays out, and the overlap the manifest records is computed from it, so neither is supplied here.- horizon
A positive whole number of reporting periods in the finite planning window.
- horizon_policy
One of
"continuing","truncate_lives", or"complete_lives". Under"continuing", interviews owed afterhorizonare returned separately intail_commitments."truncate_lives"cuts those interviews at the horizon, and a life it cuts ends at its last interview inside the window."complete_lives"stops recruitment soon enough for every recruited cohort to finish by the horizon.- refreshment
Whether later selections are drawn from an
"entrant_register"or a"whole_vintage". This records a frame role and does not establish disjointness or combine weights.- frame_vintage
NULL, or a named character vector supplying frame identifiers for any subset of the generated selection names. Unnamed or unknown entries are refused rather than matched by position.- rounding
The operational rounding rule,
"ceiling"(default and the one rule supported), applied to each panel before totals are formed and recorded in$rounding. Operational counts are stored as whole-valued numerics so plans above R's 32-bit integer range remain representable. With a finite population the rounded schedule must not hold more frame units at any period than the target'sN, out-of-sample spells included, and one that does is refused.- take
NULL(default), or a positive whole number of units a PSU takes per cohort. With it the assignment unit is the PSU. Each panel issuesceiling(n_entrants / take)PSUs, rounded at the PSU, and the units it stands for are that number timestake. The unit quantities stay with the panel plan, whose target carries the clustering through itsdeff.- retain_psus
FALSE(default) orTRUE, andTRUEneedstake. WithFALSEa PSU leaves with its cohort at the end of the cohort's life. WithTRUEthe PSUs are retained through the horizon and only their households rotate (Kalton, 2009, p. 95, "may retain the same set of PSUs"). Each panel is then a PSU group that takes a new cohort each time its life returns to the start of the pattern. See the section on retained PSUs.- subrounds
A positive whole number,
1by default, the subrounds each period's fieldwork is divided into. The rotation, the panel plan andhorizonare stated per reporting period. See the section on subrounds.- entrants
Which entrant count to field when the plan carries an assurance,
"expected"for$n_entrantsor"assured"for$n_assured. It must be declared for such a plan, since the expected count does not keep the assurance. Without an assurance it is"expected"and may be leftNULL. Recorded as$entrant_basis.
Value
An svyplan_schedule list with scalar planning metadata and four
data frames. The metadata carries start, the
panel plan's start, n_entrants, n_in_sample and n_held from the
panel plan, at its assured count when entrant_basis is "assured",
and n_cohorts, the cohorts in sample at a period, which is
the number of visits. life_length is the life in periods, gaps
included, and horizon counts periods. equilibrium_from is the first
period at equilibrium, NA when the window ends before it. take,
retain_psus and subrounds record the arguments.
selectionsOne row per selection from the frame:
startupat period 1, then one namedperiod_kfor each later period the horizon policy allows, each with itsentry_period, frame role, number of panels and issue. Continuous and operational issue remain separate.scheduleThe dense panel grid over periods 1 through
horizon, one row per panel at eachperiodandsubround, with the columns described under Details. A row is in one of three states. Before a panel's entry or after its life it hasactive = FALSEandcohort,wave,visitandlife_stageNA. Held out of sample, in a gap of its life, it hasactive = FALSE, acohortand alife_stage, andwaveandvisitNA. Interviewed, it hasactive = TRUEand all four.tail_commitmentsA sparse table of interviews after
horizonowed to panels selected within a"continuing"window, with the columns ofscheduleother thanactiveandequilibrium. It lists interviews only and has fixed empty columns under the other policies.issueOne row per subround of each period: the
selectionmade there, its continuous and operational issue in assignment units,cohort_issue, the units of the cohorts first interviewed there, which is where their units are drawn, andequilibrium.as.data.frame()returns this view.
The generated activity is checked against panel_plan$period_visits
over every shared period that the horizon policy has not changed. Its
realized issued overlap is also checked against the overlap the rotation
produces, at every period with the full sample in the field for which
the destination period exists.
Details
The schedule describes each interview in the terms the cell table of
plot.svyplan_rotation() uses, and for the same rotation and start the
two agree row for row.
selectionnames the selection from the frame a panel comes from. A selection is one draw of first-stage units, or of sample units when there is notake, made at one period. The households a retained PSU takes later are a new cohort, not a new selection.cohortsays whose interview the row is. A cohort is the units at the same wave at every period, the units whose life in the pattern starts at the same period, as in the cohorts of the UK LFS (Office for National Statistics, 2026, section 3). A start-up cohort's start is counted back before period 1, so the six start-up cohorts of"2-2-2"are distinct, each at its own place in the pattern. Cohorts are numbered in the chart's order.panelis the unit of assignment to the rotation, the sample units or, withtake, a PSU group. Panels are numbered across the whole schedule as the chart numbers them, the start-up panels of an immediate start from the one with a single period left to the one with the whole life (Steel and McLaren, 2008).rotation_groupis the slot a new panel takes over when the panel before it rotates out, assigned by the rule onplot.svyplan_rotation().waveis the place of the interview in the rotation pattern, the meaning of Regulation (EU) 2019/2240 and of the UK LFS.visitis the interview count of the row's cohort, which is what attrition follows. They differ only for the start-up cohorts of an immediate start, whose first interview can come at a later wave.life_stageis the stage of the pattern the cohort is at, out-of-sample stages counted.life_lengthis the number of periods the panel is held. A life is what Kalton (2009) calls a panel's duration.equilibriumisTRUEat a period holding one cohort at every interview of the life, after which response and precision stop changing (Lynn, 2012). Under an immediate start the full sample is in the field from period 1, and equilibrium comes once the start-up cohorts have aged through, the start-up period of Kalton (2009, p. 97).
Under "2-2-2" a cohort selected at a later period has life_stage 1 to
6, wave and visit 1, 2, NA, NA, 3, 4. The start-up cohort with two
periods left has life_stage 5 and 6 and wave 3 and 4, at visit 1
and 2.
An immediate start covers every stage of the life at the first period,
one start-up cohort per stage, as n_panel() plans it. A cohort covering
a stage out of sample is selected at the first period and held until the
rest of its life returns to sample. Its first interview, where visit is
1, comes later. Under "2-2-2" the cohorts covering stages 3 and 4 are
first interviewed at periods 3 and 2.
PSUs, and retained PSUs
With take, the schedule counts PSUs. Each panel is a group of
ceiling(n_entrants / take) PSUs, and a group takes take units in each
PSU for every cohort. The PSU allocation then reads its total from the
schedule. Over a frame whose units are the PSUs, with an n_step column
set to G, the number of start-up panels,
n_alloc(transform(psu_frame, n_step = G), n = schedule$selections$operational_issue[1])
gives each stratum a whole number of panels, so that the master has the
PSU count the schedule promises.
Under retain_psus = TRUE no PSU is replaced inside the horizon. An
immediate start selects every group at the first period, each group's
first cohort covering the rest of the life from the stage it starts at,
and a gradual start brings in one group a period until the life is
covered. When a group's cohort finishes, the group takes a new cohort at
wave 1, as the PSUs of a Statistics Canada rotation group take new
dwellings (Statistics Canada, 2017). Every panel is then its own rotation
group. A new cohort is a new draw of units, so the overlap of the units
is still the one design_overlap() gives for the rotation, and visit
restarts at 1 with each cohort. The horizon policies apply to cohorts.
"continuing" lists the rest of every cohort taken in the window,
"truncate_lives" cuts cohorts at the horizon, and "complete_lives"
takes no cohort that cannot finish by it.
Subrounds
Monthly fieldwork for quarterly estimates divides each quarterly round
into monthly subrounds, as the ILO manual describes it (Hussmanns,
Mehran and Verma, 1990, p. 225). With subrounds = s, each reporting
panel g becomes s panels, numbered (g - 1) * s + j for j in 1 to
s, so the reporting panel of a panel is ceiling(panel / s). Panel j
is interviewed in subround j of every period its reporting panel is
interviewed in, and is held in the other subrounds. A cohort is then
s panels, one per subround. A unit keeps its subround at every visit,
and a split panel keeps the rotation group and the cohorts of its
reporting panel. Every count in the schedule is in periods, and a cohort
entering in period t has all its subround panels selected then. Each
subround panel takes ceiling(n_entrants / s) units, or that over take
in PSUs, so a period issues up to s - 1 more per group than the
continuous plan. The start-up and overlap checks run on the reporting
grid, and $overlap is the reporting-period profile.
Keeping a schedule
A schedule is rebuilt from its panel plan, not reread. Keep the panel
plan's call and the call to design_schedule(), and run them again with
the installed svyplan. A schedule saved with saveRDS() under another
version of svyplan may carry columns whose meaning has since changed.
References
Commission Implementing Regulation (EU) 2019/2240 of 16 December 2019 specifying the technical items of the data set, establishing the technical formats for transmission of information and specifying the detailed arrangements and content of the quality reports on the organisation of a sample survey in the labour force domain in accordance with Regulation (EU) 2019/1700 of the European Parliament and of the Council. Article 2.
Hussmanns, R., Mehran, F., and Verma, V. (1990). Surveys of Economically Active Population, Employment, Unemployment and Underemployment: An ILO Manual on Concepts and Methods. International Labour Office, Geneva. Chapter 11.
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.
Office for National Statistics (2026). Labour Force Survey User Guide, Volume 1: LFS Background and Methodology. Section 3.
Statistics Canada (2017). Methodology of the Canadian Labour Force Survey. Catalogue no. 71-526-X.
Steel, D. and McLaren, C. (2008). Design and Analysis of Repeated Surveys. Working Paper 11-08, Centre for Statistical and Survey Methodology, University of Wollongong.
See also
design_rotation() for the pattern this schedules, n_panel()
and prec_panel() for the rotating plan, plot.svyplan_rotation() for
the rotation chart and its cell table, and print.svyplan_schedule()
for the printed form and its summary().
Other repeated survey functions:
design_overlap(),
design_rotation(),
n_change(),
n_panel(),
n_pooled(),
prec_change(),
prec_panel(),
prec_pooled()
Examples
panel <- n_panel(
n_prop(p = 0.5, moe = 0.03),
retention = c(0.9, 0.9, 0.9),
resp_rate = 0.75,
design = "rotating",
start = "immediate"
)
schedule <- design_schedule(
panel,
horizon = 6,
horizon_policy = "continuing",
refreshment = "entrant_register",
rounding = "ceiling"
)
schedule
#> Longitudinal design schedule (immediate start, continuing)
#> life: 4 periods, 4 in sample each period
#> horizon: 6 periods, equilibrium from period 4
#> rounding: ceiling at panel level
#> issue: 1656 at start-up, 414 per period (periods 2-6)
#> tail commitments: 6 panel-interviews after period 6
#> # summary() for the period-by-period profile and the overlap
schedule$selections
#> selection entry_period frame_role planned_issue operational_issue
#> 1 startup 1 startup 1654.856 1656
#> 2 period_2 2 entrant_register 413.714 414
#> 3 period_3 3 entrant_register 413.714 414
#> 4 period_4 4 entrant_register 413.714 414
#> 5 period_5 5 entrant_register 413.714 414
#> 6 period_6 6 entrant_register 413.714 414
#> panels panel_issue frame_vintage status
#> 1 4 414 <NA> planned
#> 2 1 414 <NA> planned
#> 3 1 414 <NA> planned
#> 4 1 414 <NA> planned
#> 5 1 414 <NA> planned
#> 6 1 414 <NA> planned
# A 2-2-2 rotation: six start-up cohorts, four interviewed at each period
quarterly <- n_panel(
n_prop(p = 0.5, moe = 0.03),
retention = c(0.9, 0.85, 0.9),
resp_rate = 0.75,
design = "rotating",
start = "immediate",
rotation = "2-2-2"
)
gapped <- design_schedule(
quarterly,
horizon = 8,
horizon_policy = "continuing",
refreshment = "entrant_register",
rounding = "ceiling"
)
gapped
#> Longitudinal design schedule (immediate start, continuing)
#> life: 6 periods, 4 in sample each period
#> rotation: 2 in, 2 out, 2 in
#> horizon: 8 periods, equilibrium from period 6
#> rounding: ceiling at panel level
#> issue: 2550 at start-up, 425 per period (periods 2-8)
#> tail commitments: 10 panel-interviews after period 8
#> # summary() for the period-by-period profile and the overlap
startup <- gapped$schedule[gapped$schedule$selection == "startup", ]
xtabs(visit ~ panel + period, startup, addNA = TRUE)
#> period
#> panel 1 2 3 4 5 6 7 8
#> 1 1
#> 2 1 2
#> 3 1 2
#> 4 1 2
#> 5 1 2 3
#> 6 1 2 3 4
xtabs(wave ~ panel + period, startup, addNA = TRUE)
#> period
#> panel 1 2 3 4 5 6 7 8
#> 1 4
#> 2 3 4
#> 3 3 4
#> 4 3 4
#> 5 2 3 4
#> 6 1 2 3 4
# Quarterly reporting on a life of five quarters, 14 units per PSU, PSUs
# retained and monthly fieldwork: 15 panels, each in its own month
monthly <- design_schedule(
n_panel(n_prop(p = 0.5, moe = 0.02, deff = 1.8),
retention = rep(0.9, 4), resp_rate = 0.8,
design = "rotating", start = "immediate"),
horizon = 4,
horizon_policy = "continuing",
refreshment = "entrant_register",
rounding = "ceiling",
take = 14,
retain_psus = TRUE,
subrounds = 3
)
monthly
#> Longitudinal design schedule (immediate start, continuing)
#> life: 5 periods, 5 in sample each period
#> horizon: 4 periods, equilibrium not reached in the window
#> subrounds: 3 per period
#> take: 14 units per PSU per cohort
#> PSUs: retained through the horizon, a new cohort at each return
#> rounding: ceiling at psu and subround level
#> issue: 480 PSUs at start-up, no new PSUs from period 2
#> tail commitments: 30 panel-interviews after period 4
#> # summary() for the period-by-period profile and the overlap
xtabs(visit ~ panel + subround, monthly$schedule[monthly$schedule$period == 2, ])
#> subround
#> panel 1 2 3
#> 1 1
#> 2 1
#> 3 1
#> 4 2
#> 5 2
#> 6 2
#> 7 2
#> 8 2
#> 9 2
#> 10 2
#> 11 2
#> 12 2
#> 13 2
#> 14 2
#> 15 2