set_design {ech} | R 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")
[Package ech version 0.1.3 Index]