# Initialize a multiwave object for a two-phase sampling design that will
# sample over three waves in the second phase
multiwave_object <- multiwave(phases = 2, waves = c(1, 3))
# If we already have the phase 1 data and want to add a title to the survey
# metadata, we can initialize the object with these included.
library(datasets)
multiwave_object <- multiwave(
phases = 2, waves = c(1, 3),
metadata = list(title = "my two-phase survey"), phase1 = iris
)
Run the code above in your browser using DataLab