Cast design type from survey
See also
Other survey-objects:
Survey,
cat_design(),
get_data(),
get_metadata(),
has_design(),
has_recipes(),
has_steps(),
is_baked(),
set_data(),
survey_empty(),
survey_to_data_frame(),
survey_to_datatable(),
survey_to_tibble()
Examples
# \donttest{
dt <- data.table::data.table(id = 1:20, x = rnorm(20), w = runif(20, 0.5, 2))
svy <- Survey$new(
data = dt, edition = "2023", type = "demo",
psu = NULL, engine = "data.table",
weight = add_weight(annual = "w")
)
svy$ensure_design()
cat_design_type(svy, "annual")
#>
#> * Package: survey
#> * Variance estimation: Ultimate cluster
# }