View source: R/create_external.R
create_mean | R Documentation |
create_mean
generates a dataframe
with the following elements: mean,
degrees of freedom, sample size, and coefficient of variation. The function allows
grouping in several domains.
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
)
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 |
|
dataframe
that contains the inputs and all domains to be evaluated.
dc <- survey::svydesign(ids = ~varunit, strata = ~varstrat, data = epf_personas, weights = ~fe)
create_mean("gastot_hd", "zona+sexo", design = dc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.