Skip to contents

Draw the rotation chart of a design_rotation() pattern, one row per panel and one column per period, with a labeled cell wherever the panel is interviewed. This is the figure a rotation design is published as in a survey's methodology report, and the fastest way to see that a pattern is the one you meant. The chart is drawn from as.data.frame(x), the table of cells described on print.svyplan_rotation(), which can be drawn another way, with ggplot2 for instance.

Usage

# S3 method for class 'svyplan_rotation'
plot(
  x,
  start = c("gradual", "immediate"),
  horizon = NULL,
  panel_plan = NULL,
  label = "wave",
  fill = "none",
  col = NULL,
  rows = c("panel", "rotation_group"),
  period_labels = NULL,
  marker = TRUE,
  main = NULL,
  ...
)

Arguments

x

A svyplan_rotation object from design_rotation().

start

How the first panels enter. "gradual" selects one panel per period, so the sample builds up over a life. "immediate" selects, in the first period, one panel for each possible remaining life, so the full sample is in the field from period 1. Defaults to the start panel_plan was planned with, or to "gradual" when there is none.

horizon

Periods to draw, a new panel entering at each one. Defaults to the life plus four.

panel_plan

Optional n_panel() or prec_panel() result with design = "rotating". Its n_entrants labels the rows and the total in units rather than in panel shares, and the cell table gains a column n. It must have been planned on the rotation drawn.

label

What each cell shows. "wave" (default) writes W1, W2, and so on, "none" leaves the cells blank, any other column of the cell table writes its values, and a function of the cell table returns one label per row.

fill

What the cell color shows. "none" (default) draws every cell in one color. A column of the cell table, such as "rotation_group" or "wave", or a function of the cell table returning one value per row, gives each distinct value its own color. A legend for the colors is drawn below the chart unless label names the same column, the cells then reading their own color.

col

Cell colors. One color when fill = "none", otherwise at least one color per distinct fill value, taken in sorted order of the values. Defaults to gray, and to a qualitative palette when fill is set.

rows

"panel" (default) draws one row per panel. "rotation_group" draws one row per rotation group, the panels that take the group over following one another along the row.

period_labels

Optional labels for the periods, one per period drawn, such as toupper(month.abb).

marker

TRUE (default) marks the first period with the full sample in the field.

main

Chart title.

...

Not used. Any other argument is an error.

Value

x, invisibly.

Details

Each row is a panel, the set of units that enter and leave the sample together (Steel and McLaren, 2008). A cell is drawn in each period the panel is interviewed, and by default its label is the wave, the place of that interview in the rotation pattern. That is the meaning of wave in Regulation (EU) 2019/2240, "the sub-sample of observation units due to be interviewed for the same nth time according to the sample rotation scheme", and the convention of the CPS month in sample and of the Statistics Canada rotation chart (Statistics Canada, 2017, Figure 2.1).

The wave and the interview number differ only for the panels of an immediate start. Under "6", the panel selected in period 1 with two periods of its life left is first interviewed then, at wave 5. label = "visit" shows the interview number instead, which is how Lynn (2012) labels the samples of an immediate start in Figure 5. Attrition follows the interview number, and that is how n_panel() plans it.

A rotation group is the slot a new panel takes over when the panel before it rotates out (Steel and McLaren, 2008, and Statistics Canada, 2017). Kalton (2009) and Hussmanns, Mehran and Verma (1990) also use the term for a panel itself. Each new panel joins the lowest-numbered group that is free at every one of its interviews. Under patterns such as "6", "2-2-2" and "4-8-4" every group then holds a panel in sample at every period of a full sample. Under "3-1-2" and "3-2-2" no assignment can do that, because no other panel can fill the period a panel spends out of sample without overlapping it, so there are more groups than panels in sample and each group has periods with none.

The dotted line marks the first period with the full sample in the field, every stage of the life held by one panel. A gradual start reaches it once a whole life has passed, and an immediate start has it from period 1. From that period on, the overlaps design_overlap() reports are those of the chart. Under an immediate start the interview mix still changes after that, because every start-up panel begins at its first interview. n_panel() reports the period at which it reaches equilibrium (Lynn, 2012), the start-up period before it (Kalton, 2009) being when response and precision still move.

A start-up panel whose remaining life starts out of sample is selected in period 1 and first interviewed when its life returns to sample, as n_panel() plans it.

Lynn's Figure 5 labels Samples 1 through 10 only. Its total row of 1,800 through period 10 nevertheless assumes that a new 300-unit sample continues to enter in periods 6 through 10. This chart draws those implicit panels 11 through 15 as well, so every displayed total is supported by the rows above it.

A take that varies over the life shades its cell in proportion, so a pattern that subsamples later waves is visible as it is drawn.

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. Figures 2 to 5 are charts of this kind.

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

print.svyplan_rotation() for the cell table, design_overlap() for the overlaps the chart produces, and n_panel() for the recruitment that fills it.

Examples

# Two waves in, two out, two in, gradual start
plot(design_rotation("1-1-0-0-1-1"))


# Statistics Canada, Figure 2.1: six months in sample from January,
# colored by rotation group
plot(design_rotation("6"), start = "immediate", horizon = 12,
     fill = "rotation_group", period_labels = toupper(month.abb))


# Rwanda LFS 2024, Annex 1: panel number and appearance letter
plot(design_rotation("2-2-2"), start = "immediate", horizon = 12,
     label = function(d) paste0(d$panel, LETTERS[d$wave]),
     fill = "wave")


# The same design, one row per rotation group
plot(design_rotation("2-2-2"), start = "immediate", horizon = 12,
     rows = "rotation_group", label = "panel")


# CPS 4-8-4, one row per monthly panel
plot(design_rotation("4-8-4"))


# Lynn Figure 5: six 300-unit start-up samples, then 300 new units per
# period, labeled by interview number as Lynn labels them
lynn_target <- prec_prop(n = 1800, p = 0.5)
lynn_panel <- prec_panel(
  300, target = lynn_target, retention = rep(1, 5),
  design = "rotating", start = "immediate"
)
plot(design_rotation("6"), panel_plan = lynn_panel, horizon = 10,
     label = "visit", main = "1-1-1-1-1-1 rotating panel: immediate start")