survey_design_elsoc: survey_design_elsoc

View source: R/survey_design_elsoc.R

survey_design_elsocR Documentation

survey_design_elsoc

Description

survey_design_elsoc can be used to create a srvyr's tbl_svy object using design information from ELSOC

Usage

survey_design_elsoc(
  .data,
  ids = "segmento_disenno",
  strata = "estrato_disenno",
  weights = "ponderador02",
  nest = TRUE,
  ...
)

Arguments

.data

data frame (ELSOC) in long format.

ids

Variable or variable name in .data especifying cluster ids.

strata

Variable or variable name in .data especifying strata.

weights

Variable or variable name in .data especifying weights. Missing values are droped.

nest

if TRUE, relabel cluster ids to enforce nesting within strata

Examples

elsoc_example %>% survey_design_elsoc()


edgardo-cerda/elsoc documentation built on April 14, 2022, 5:36 p.m.