Description Usage Arguments Value Examples
View source: R/creacion_insumos.R
create_median
uses a non parametric method to generate 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 10 | create_median(
var,
dominios = NULL,
subpop = NULL,
disenio,
ci = F,
replicas = 10,
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 |
|
replicas |
|
ajuste_ene |
|
standard_eval |
|
dataframe
that contains the inputs and all domains to be evaluated
1 2 3 | dc <- survey::svydesign(ids = ~varunit, strata = ~varstrat, data = epf_personas, weights = ~fe)
dc_rep <- survey::as.svrepdesign(dc , type = "subbootstrap", replicates=10)
create_median(gastot_hd, zona+sexo, disenio = dc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.