Skip to contents

Cast design type from survey

Usage

cat_design_type(self, design_name)

Arguments

self

Object of class Survey

design_name

Name of design

Value

Character string describing the design type, or "None".

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
# }