# Simulate survey data with setting 1 and discretizing variables 3 categories
data = simulate(N = 3000, discretize = 3, setting = 1, seed = 123)
# Extract population and sample datasets
population = data$population
samples = data$samples
# Examine the simulated population data
head(population)
Run the code above in your browser using DataLab