create_mean {calidad} | R Documentation |
Create the inputs to evaluate the quality of mean estimations
Description
create_mean
generates ano dataframe
with the following elements: mean,
degrees of freedom, sample size and coefficient of variation. The function allows
grouping in several domains.
Usage
create_mean(
var,
domains = NULL,
subpop = NULL,
design,
ci = FALSE,
ess = FALSE,
ajuste_ene = FALSE,
standard_eval = FALSE,
rm.na = FALSE,
deff = FALSE,
rel_error = FALSE,
unweighted = FALSE,
eclac_input = FALSE
)
Arguments
var |
numeric variable within the |
domains |
domains to be estimated separated by the + character. |
subpop |
integer dummy variable to filter the dataframe |
design |
complex design created by |
ci |
|
ess |
|
ajuste_ene |
|
standard_eval |
|
rm.na |
|
deff |
|
rel_error |
|
unweighted |
|
eclac_input |
|
Value
dataframe
that contains the inputs and all domains to be evaluated
Examples
dc <- survey::svydesign(ids = ~varunit, strata = ~varstrat, data = epf_personas, weights = ~fe)
create_mean("gastot_hd", "zona+sexo", design = dc)