View source: R/create_external.R
| create_size | R Documentation | 
create_size generates a dataframe with the following elements: sum,
degrees of freedom, sample size, and coefficient of variation. The function allows
grouping in several domains.
create_size(
  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,
  df_type = c("chile", "eclac"),
  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 | 
 | 
| df_type | 
 | 
| 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_size("ocupado", "zona+sexo", design = dc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.