Summarizes a sampling design as a plain list for inspection. The list is
not a complete record of the design. It leaves out settings such as cv,
importance, power, prn and certainty_overflow, and the values of a
table of sizes. write_design() and design_json() keep every setting.
Usage
# S3 method for class 'sampling_design'
as.list(x, ...)Value
A list representation of the design containing:
title: The design title (if any)stages: A list of stage specifications
See also
Other serialization:
design_json(),
replay_design(),
write_design()
Examples
design <- sampling_design(title = "Household Survey") |>
stratify_by(region, alloc = "proportional") |>
draw(n = 500)
as.list(design)
#> $title
#> [1] "Household Survey"
#>
#> $stages
#> $stages[[1]]
#> $stages[[1]]$strata
#> $stages[[1]]$strata$vars
#> [1] "region"
#>
#> $stages[[1]]$strata$alloc
#> [1] "proportional"
#>
#>
#> $stages[[1]]$draw
#> $stages[[1]]$draw$n
#> [1] 500
#>
#> $stages[[1]]$draw$method
#> [1] "srswor"
#>
#> $stages[[1]]$draw$round
#> [1] "up"
#>
#>
#>
#>
