set_design: This function allows you to set the survey desing

View source: R/set_design.R

set_designR Documentation

This function allows you to set the survey desing

Description

This function allows you to set the survey desing

Usage

set_design(
  data = ech::toy_ech_2018,
  level = "i",
  numero = "numero",
  ids = NULL,
  estrato = NULL,
  pesoano = "pesoano"
)

Arguments

data

data frame with ECH microdata

level

is household ("h") or individual ("i")

numero

variables specifying the householder ids

ids

variables specifying the unit primary sampling (it's not a public variable)

estrato

variable specifying strata

pesoano

variable specifying weights

Details

Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.

Value

a list

See Also

Other estimation: get_estimation_gini(), get_estimation_gpg(), get_estimation_mean(), get_estimation_median(), get_estimation_qsr(), get_estimation_ratio(), get_estimation_total()

Examples


set_design(data = ech::toy_ech_2018, level = "h")


calcita/ech documentation built on March 2, 2024, 7:54 a.m.