View source: R/survey_design_elsoc.R
survey_design_elsoc | R Documentation |
survey_design_elsoc can be used to create a srvyr's tbl_svy object using design information from ELSOC
survey_design_elsoc( .data, ids = "segmento_disenno", strata = "estrato_disenno", weights = "ponderador02", nest = TRUE, ... )
.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 |
elsoc_example %>% survey_design_elsoc()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.