Description Usage Arguments Value Examples
View source: R/creacion_insumos.R
create_tot
generates a dataframe
with the following elements: sum,
degrees of freedom, sample size and coefficient of variation. The function allows
grouping in several domains.
1 2 3 4 5 6 7 8 9 | create_tot(
var,
dominios = NULL,
subpop = NULL,
disenio,
ci = F,
ajuste_ene = F,
standard_eval = F
)
|
var |
numeric variable within the |
dominios |
domains to be estimated separated by the + character. |
subpop |
integer dummy variable to filter the dataframe |
disenio |
complex design created by |
ci |
|
ajuste_ene |
|
standard_eval |
|
dataframe
that contains the inputs and all domains to be evaluated
1 2 | dc <- survey::svydesign(ids = ~varunit, strata = ~varstrat, data = epf_personas, weights = ~fe)
create_tot(ocupado, zona+sexo, disenio = dc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.