powered by
This function allows you to estimate median variable at universe level.
get_estimation_median( data = ech::toy_ech_2018, variable = NULL, by.x = NULL, by.y = NULL, domain = NULL, level = NULL, ids = NULL, numero = "numero", estrato = NULL, pesoano = "pesoano", name = "estimacion" )
data frame with ECH microdata
data frame column to estimate
data frame column
subpopulation reference setted as character expresion of logical evaluation
is household ("h") or individual ("i").
ids
household id
strata
weights
name for the estimation new column
table
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_qsr(), get_estimation_ratio(), get_estimation_total(), set_design()
get_estimation_gini()
get_estimation_gpg()
get_estimation_mean()
get_estimation_qsr()
get_estimation_ratio()
get_estimation_total()
set_design()
# NOT RUN { get_estimation_median(data = ech::toy_ech_2018, variable = "ht11", by.x = "dpto", level = "h") # }
Run the code above in your browser using DataLab