powered by
This function allows you to set the survey desing
set_design( data = ech::toy_ech_2018, level = "i", numero = "numero", ids = NULL, estrato = NULL, pesoano = "pesoano" )
a list
data frame with ECH microdata
is household ("h") or individual ("i")
variables specifying the householder ids
variables specifying the unit primary sampling (it's not a public variable)
variable specifying strata
variable specifying weights
Disclaimer: This script is not an official INE product. Aviso: El script no es un producto oficial de INE.
Other estimation: get_estimation_gini(), get_estimation_gpg(), get_estimation_mean(), get_estimation_median(), get_estimation_qsr(), get_estimation_ratio(), get_estimation_total()
get_estimation_gini()
get_estimation_gpg()
get_estimation_mean()
get_estimation_median()
get_estimation_qsr()
get_estimation_ratio()
get_estimation_total()
# \donttest{ set_design(data = ech::toy_ech_2018, level = "h") # }
Run the code above in your browser using DataLab