diff --git a/docs/404.html b/docs/404.html index bb2b010..e7ee0cc 100644 --- a/docs/404.html +++ b/docs/404.html @@ -89,6 +89,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 018a8ad..9a8346a 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -89,6 +89,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/articles/ech.html b/docs/articles/ech.html index 0df99bd..41a53e4 100644 --- a/docs/articles/ech.html +++ b/docs/articles/ech.html @@ -49,6 +49,18 @@
  • Reference
  • +
  • Changelog
  • @@ -70,7 +82,7 @@

    Ejemplo de uso del paquete ech

    Richard Detomasi

    -

    2020-08-22

    +

    2020-08-23

    @@ -86,7 +98,7 @@

    install.packages('ech')

    Para instalar la versión en desarrollo:

    # install.packages('devtools') si no tiene instalado devtools
    -devtools::install_github("calcita/ech")
    +devtools::install_github("calcita/ech")

    diff --git a/docs/articles/estimacion_ingresos.html b/docs/articles/estimacion_ingresos.html index adb135c..791dfd7 100644 --- a/docs/articles/estimacion_ingresos.html +++ b/docs/articles/estimacion_ingresos.html @@ -100,7 +100,14 @@

    Estimación de ingresos

    #> 4 2019-10-01 202.2299999999… 0.75 8.359999999999… 8.3399999999999… #> 5 2019-11-01 203.0800000000… 0.419999999999999… 8.820000000000… 8.4000000000000… #> 6 2019-12-01 203.0200000000… -0.02999999999999… 8.789999999999… 8.7899999999999…
    -

    Previamente tenemos que tener cargado el objeto con los microdatos de la ECH.

    +

    Previamente tenemos que tener cargado el objeto con los microdatos de la ECH. Las variables a tener en cuenta en esta parte son

    +
    library(ech)
     df <- get_microdata(year = 2019)

    Para convertir los ingresos del hogar, que están medidos en la variable ht11, de precios corrientes a precios constantes, usamos la función income_constant_prices() y definimos sus parámetros: mes base, año base y el tipo de ipc que puede ser “G” para todo el país sin distinción de regiones o “R” que usa el IPC de Montevideo y el del Interior.

    @@ -122,8 +129,9 @@

    Estimación de ingresos

    Es necesario definir ids y estrato que vienen con valor por defecto NULL, las demás no es necesario definir porque ya vienen con el nombre de la variable por defecto, salvo que se usen registros de un mes o semestre en ese caso se debe cambiar el ponderador de los casos según corresponda.

    get_estimation_mean(df, variable = "y_pc_d", level = "i", ids = "upm_fic")
    -

    Para estimar el ingreso medio de los hogares a precios constantes según decil, se debe definir en el argumento by.x la variable decil, previamente calculada con income_quantile().

    +

    Para estimar el ingreso medio de los hogares a precios constantes de junio 2019 según decil, se debe definir en el argumento by.x la variable decil, previamente calculada con income_quantile().

    df <- income_quantiles(df, income = "y_pc_d", quantile = 10)
    +# Estimación de ingresos promedio per cápita a pesos constantes de jun/19 según decil
     get_estimation_mean(df, variable = "y_pc_d", by.x = "decil", level = "i")

    Una forma de mostrar estos resultados es mediante un gráfico como el siguiente:

    diff --git a/docs/articles/index.html b/docs/articles/index.html index 1c11f9e..ae7bbe3 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -89,6 +89,18 @@
  • Reference
  • +
  • Changelog
  • @@ -118,6 +130,8 @@

    All vignettes

    Ejemplo de uso del paquete `ech`
    +
    Estimación de ingresos
    +
    diff --git a/docs/authors.html b/docs/authors.html index a8095b1..dccdfc3 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -89,6 +89,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/index.html b/docs/index.html index 9218eaa..93891b0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -51,6 +51,18 @@
  • Reference
  • +
  • Changelog
  • @@ -68,9 +80,9 @@
    -
    +
    @@ -79,22 +91,22 @@

    Caja de herramientas para el procesamiento de la Encuesta Continua de Hogares de Uruguay del Instituto Nacional de Estadística (INE). Pretendemos contribuir a la comunidad de usuaries de R en Uruguay, facilitando el uso de una de las encuestas socioeconómicas más importantes del país. En este sentido, el paquete implementa una serie de funciones que permiten el cálculo de los principales indicadores socioeconómicos que permite la encuesta.

    -
    +

    -Instalación

    +Instalación

    Para la versión en desarrollo

     # install.packages('devtools') 
     # si no tiene instalado devtools
     
    -devtools::install_github("calcita/ech")
    +devtools::install_github("calcita/ech")
     library(ech)

    Funciones para leer datos

    -

    Una serie de funciones del paquete que se usan internamente permiten descargar de la página del INE y convertir a un formato tidy los datos de: Índice de Precios al Consumo (IPC con base 2010), el Índice de Precios de Alimentos y Bebidas (IPAB con base 2010), Canasta Básica de Alimentos (CBA y CBNA), la codigue de CIIU4, los microdatos de cada ECH y sus respectivos diccionarios para los años 2011 a 2019.

    +

    Una serie de funciones del paquete que se usan internamente permiten descargar de la página del INE y convertir a un formato tidy los datos de: Índice de Precios al Consumo (IPC con base 2010), el Índice de Precios de Alimentos y Bebidas (IPAB con base 2010), Canasta Básica Alimentaria y No Alimentaria (CBA y CBNA), la codigue de CIIU4, los microdatos de cada ECH y sus respectivos diccionarios para los años 2011 a 2019.

    • Funciones para crear variables

    @@ -159,15 +171,15 @@

    pobre_x_dpto <- get_estimation_mean(data = ech19, # Indico el data.frame variable = "pobre06", # La variable a estimar - by.x = "dpto", # La variable de agrupación + by.x = "nomdpto", # La variable de agrupación by.y = NULL, # Se permite otra variable de agrupación domain = NULL, # Se podría indicar un dominio level = "h", # Defino que lo haga a nivel de hogar name = "Pobreza")

    -
    +

    -ech & geouy

    +ech & geouy

    El uso de este paquete se potencia al usarlo en conjunto con geouy ya que permite acceder a diferentes capas geográficas de Uruguay y construir mapas temáticos. Por ejemplo, a la estimación anterior de hogares pobres por departamento se le pueden agregar las geometrías de los polígonos de cada departamento para construir un mapa de coropletas.

     # Solo me quedo con la estimación de pobre 
    @@ -178,7 +190,7 @@ 

    pobre_x_dpto_geo <- add_geom(data = pobre_x_dpto, # Los datos en una unidad geográfica de entre las opciones unit = "Departamentos", # Unidad de agregación de los datos - variable = "dpto") # Variable correspondiente a los códigos a la unidad

    + variable = "nomdpto") # Variable correspondiente a los códigos a la unidad

    Y con esto, podemos hacer un mapa con ggplot2 muy fácilmente de estas estimaciones.

    # Hago un mapa
     
    diff --git a/docs/news/index.html b/docs/news/index.html
    index 8b922d3..3b40860 100644
    --- a/docs/news/index.html
    +++ b/docs/news/index.html
    @@ -89,6 +89,18 @@
     
  • Reference
  • +
  • Changelog
  • diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index cb2e940..0f30673 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,7 +1,8 @@ -pandoc: '2.5' +pandoc: 2.3.1 pkgdown: 1.5.1 pkgdown_sha: ~ articles: ech: ech.html -last_built: 2020-08-22T17:47Z + estimacion_ingresos: estimacion_ingresos.html +last_built: 2020-08-23T22:23Z diff --git a/docs/reference/add_geom.html b/docs/reference/add_geom.html index 8dad4bd..d469bc7 100644 --- a/docs/reference/add_geom.html +++ b/docs/reference/add_geom.html @@ -6,8 +6,7 @@ -add_geom -This function allows you to add geom variable to a with a code varible of "zona", "barrio", "localidad", "segmentos", "secciones" or "departamentos". — add_geom • ech +add_geom — add_geom • ech @@ -40,10 +39,8 @@ - - + + @@ -93,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    add_geom -This function allows you to add geom variable to a with a code varible of "zona", "barrio", "localidad", "segmentos", "secciones" or "departamentos".

    +

    This function allows you to add a geom variable with a code variable of "zona", "barrio", "localidad", "segmentos", "secciones" or "departamentos".

    add_geom(data, unit, variable, crs = 32721)
    @@ -156,15 +163,14 @@

    Details

    Examples

    # \donttest{ -pobre_x_dpto <- get_estimation_mean(variable = "pobre06", by.x = "dpto", level = "h") %>% +pobre_x_dpto <- get_estimation_mean(variable = "pobre06", by.x = "nomdpto", level = "h") %>% dplyr::filter(pobre06 == "No pobre")
    #> These confidence intervals are only an approximation of the correct confidence intervals -#> that arise from fully defining the sample design
    pobre_x_dpto_geo <- add_geom(data = pobre_x_dpto, unit = "Departamentos", variable = "dpto")
    #> Reading layer `departamentos' from data source `https://mapas.mides.gub.uy/geoserver/IDE/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=IDE:departamentos' using driver `GML' +#> that arise from fully defining the sample design
    pobre_x_dpto_geo <- add_geom(data = pobre_x_dpto, unit = "Departamentos", variable = "nomdpto")
    #> Reading layer `departamentos' from data source `https://mapas.mides.gub.uy/geoserver/IDE/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=IDE:departamentos' using driver `GML' #> Simple feature collection with 19 features and 9 fields #> geometry type: MULTIPOLYGON #> dimension: XY #> bbox: xmin: 366582.2 ymin: 6127919 xmax: 858252.1 ymax: 6671738 -#> epsg (SRID): 32721 -#> proj4string: +proj=utm +zone=21 +south +datum=WGS84 +units=m +no_defs
    # } +#> CRS: EPSG:32721
    # }
    -

    age_groups

    +

    This function allows you to calculate age groups

    -
    age_groups(
    -  data = ech::toy_ech_2018,
    -  cut = c(0, 4, 11, 17, 24),
    -  e27 = "e27",
    -  labels = c("0-4", "5-11", "12-17", "18-24", "+24")
    -)
    +
    age_groups(data = ech::toy_ech_2018, cut = c(0, 4, 11, 17, 24), e27 = "e27")

    Arguments

    @@ -140,10 +147,6 @@

    Arg

    - - - -
    e27

    Variable name of age

    labels

    Labels for the new variable

    Value

    @@ -151,8 +154,7 @@

    Value

    data.frame

    Examples

    -
    df <- age_groups(data = ech::toy_ech_2018, cut = c(0, 4, 11, 17, 24))
    #> Warning: argument is not an atomic vector; coercing
    -
    +
    toy_ech_2018 <- age_groups(data = ech::toy_ech_2018, cut = c(0, 4, 11, 17, 24))
    -

    basket_goods

    +

    This function allows you to get the Basket goods

    basket_goods(data = ech::cba_cbna_mdeo, year = NULL)
    diff --git a/docs/reference/branch_ciiu.html b/docs/reference/branch_ciiu.html index 5d493ab..8496d95 100644 --- a/docs/reference/branch_ciiu.html +++ b/docs/reference/branch_ciiu.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    branch_ciuu

    -

    branch_ciuu

    +

    This function allows you to identify activity branches

    branch_ciiu(
    diff --git a/docs/reference/cba_cbna_int.html b/docs/reference/cba_cbna_int.html
    index 7ed123e..eb2aa22 100644
    --- a/docs/reference/cba_cbna_int.html
    +++ b/docs/reference/cba_cbna_int.html
    @@ -90,6 +90,18 @@
     
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/cba_cbna_mdeo.html b/docs/reference/cba_cbna_mdeo.html index 6c36bc6..a5a55ec 100644 --- a/docs/reference/cba_cbna_mdeo.html +++ b/docs/reference/cba_cbna_mdeo.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/cba_cbna_rur.html b/docs/reference/cba_cbna_rur.html index d61ea91..cdc4aef 100644 --- a/docs/reference/cba_cbna_rur.html +++ b/docs/reference/cba_cbna_rur.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/ciiu4.html b/docs/reference/ciiu4.html index 157a329..5b0e4c5 100644 --- a/docs/reference/ciiu4.html +++ b/docs/reference/ciiu4.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/deflate.html b/docs/reference/deflate.html index e356346..ba79425 100644 --- a/docs/reference/deflate.html +++ b/docs/reference/deflate.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    deflate

    -

    deflate

    +

    This function allows you to calculate a deflate variable

    deflate(base_month = NULL, base_year = NULL, ipc = "G", df_year = NULL)
    diff --git a/docs/reference/dic.html b/docs/reference/dic.html index 1b440c9..024308e 100644 --- a/docs/reference/dic.html +++ b/docs/reference/dic.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/ech.html b/docs/reference/ech.html index 08746bf..82e43e0 100644 --- a/docs/reference/ech.html +++ b/docs/reference/ech.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/employment.html b/docs/reference/employment.html index 567c917..af5f7de 100644 --- a/docs/reference/employment.html +++ b/docs/reference/employment.html @@ -6,8 +6,7 @@ -employment -This function allows you to calculate the variables: PEA, PET, PO, PD — employment • ech +employment — employment • ech @@ -40,10 +39,8 @@ - - + + @@ -93,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    employment -This function allows you to calculate the variables: PEA, PET, PO, PD

    +

    This function allows you to calculate the variables: PEA, PET, PO, PD

    employment(data = ech::toy_ech_2018, pobpcoac = "pobpcoac")
    diff --git a/docs/reference/employment_restrictions.html b/docs/reference/employment_restrictions.html index 400973c..2c9e7f5 100644 --- a/docs/reference/employment_restrictions.html +++ b/docs/reference/employment_restrictions.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    employment_restrictions

    -

    employment_restrictions

    +

    This function allows you to identify workers with employment restrictions

    employment_restrictions(
    @@ -133,18 +145,27 @@ 

    Arg f82 -

    Variable name of

    +

    Variable name of contribution to the pension fund

    underemployment -

    Variable name of

    +

    Variable name of underemployment

    Value

    data.frame

    +

    Details

    + +

    Disclaimer: This script is not an official INE product. +Aviso: El script no es un producto oficial de INE.

    +

    Examples

    +
    toy_ech_2018 <- underemployment(data = ech::toy_ech_2018)
    #> A variable has been created: +#> underemployment (Poblacion subempleada)
    toy_ech_2018 <- employment_restrictions(data = toy_ech_2018)
    #> A variable has been created: +#> employment_restrictions (restricciones al empleo)
    +
    -

    get_ciiu

    +

    This function allows you to get the CIIU data

    get_ciiu(folder = tempdir(), version = 4)
    diff --git a/docs/reference/get_dictionary.html b/docs/reference/get_dictionary.html index ec50f5e..ad4913f 100644 --- a/docs/reference/get_dictionary.html +++ b/docs/reference/get_dictionary.html @@ -6,8 +6,7 @@ -get_dictionary -Download ECH dictionaries from INE website — get_dictionary • ech +get_dictionary — get_dictionary • ech @@ -40,10 +39,8 @@ - - + + @@ -93,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    get_dictionary -Download ECH dictionaries from INE website

    +

    This function allows you to download ECH dictionaries from INE website

    get_dictionary(year = NULL, folder = tempdir())
    diff --git a/docs/reference/get_estimation_gini.html b/docs/reference/get_estimation_gini.html index 3fd23fc..1b5a940 100644 --- a/docs/reference/get_estimation_gini.html +++ b/docs/reference/get_estimation_gini.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    get_estimation_gini

    -

    get_estimation_gini

    +

    This function allows you to estimate the Gini coeficient

    get_estimation_gini(
    @@ -123,6 +135,10 @@ 

    get_estimation_gini

    variable = NULL, by = NULL, level = NULL, + ids = NULL, + numero = "numero", + estrato = NULL, + pesoano = "pesoano", name = "estimacion" )
    @@ -145,6 +161,22 @@

    Arg level

    household or individual

    + + ids +

    upm

    + + + numero +

    Variable name of household id

    + + + estrato +

    Variable name of strata

    + + + pesoano +

    Variable name of weights

    + name

    nombre

    @@ -161,15 +193,16 @@

    Details

    Examples

    # \donttest{ -df <- income_constant_prices(data = ech::toy_ech_2018, ipc = "R", +toy_ech_2018 <- income_constant_prices(data = ech::toy_ech_2018, ipc = "R", base_month = "01", base_year = "2005")
    #> Variables have been created: #> deflate_r (Deflactor regional) & #> y_pc (income per capita current prices / ingreso per capita a precios corrientes) #> y_pc_d_r (income per capita deflated / ingreso per capita deflactado); #> rv_d_r (rental value deflated / valor locativo deflactado); #> y_wrv_d_r (income without rental value deflated / ingreso sin valor locativo deflactado) & -#> y_wrv_pc_d_r (income without rental value per capita deflated / ingreso sin valor locativo per capita deflactado)
    get_estimation_gini(data = df, level = "h") -# }
    +#> y_wrv_pc_d_r (income without rental value per capita deflated / ingreso sin valor locativo per capita deflactado)
    get_estimation_gini(data = toy_ech_2018, level = "h")
    #> gini SE +#> y_wrv_pc_d_r 0.36685 0.0155
    # } +
    #> These confidence intervals are only an approximation of the correct confidence intervals #> that arise from fully defining the sample design
    #> # A tibble: 26 x 5 #> # Groups: dpto [19] -#> dpto pobre06 colname colname_low colname_upp -#> <fct> <fct> <dbl> <dbl> <dbl> -#> 1 Montevideo No pobre 0.940 0.903 0.976 -#> 2 Montevideo Pobre 0.0604 0.0241 0.0968 -#> 3 Artigas No pobre 0.739 0.488 0.991 -#> 4 Artigas Pobre 0.261 0.00873 0.512 -#> 5 Canelones No pobre 1 1 1 -#> 6 Cerro Largo No pobre 1 1 1 -#> 7 Colonia No pobre 1 1 1 -#> 8 Durazno No pobre 0.728 0.412 1.04 -#> 9 Durazno Pobre 0.272 -0.0429 0.588 -#> 10 Flores No pobre 1 1 1 +#> dpto pobre06 estimacion estimacion_low estimacion_upp +#> <fct> <fct> <dbl> <dbl> <dbl> +#> 1 Montevideo No pobre 0.940 0.903 0.976 +#> 2 Montevideo Pobre 0.0604 0.0241 0.0968 +#> 3 Artigas No pobre 0.739 0.488 0.991 +#> 4 Artigas Pobre 0.261 0.00873 0.512 +#> 5 Canelones No pobre 1 1 1 +#> 6 Cerro Largo No pobre 1 1 1 +#> 7 Colonia No pobre 1 1 1 +#> 8 Durazno No pobre 0.728 0.412 1.04 +#> 9 Durazno Pobre 0.272 -0.0429 0.588 +#> 10 Flores No pobre 1 1 1 #> # … with 16 more rows
    # }
    diff --git a/docs/reference/get_estimation_ratio.html b/docs/reference/get_estimation_ratio.html index 144bde0..b5a5900 100644 --- a/docs/reference/get_estimation_ratio.html +++ b/docs/reference/get_estimation_ratio.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    get_estimation_ratio

    -

    This function allows you to estimate ratio variable at universe level.

    +

    This function allows you to estimate ratio variables at universe level.

    get_estimation_ratio(
    @@ -202,9 +214,9 @@ 

    Examp #> po (Poblacion ocupada) & #> pd (Poblacion desocupada)
    get_estimation_ratio(data = toy_ech_2018, variable.x = "po", variable.y = "pea", level = "i")
    #> These confidence intervals are only an approximation of the correct confidence intervals #> that arise from fully defining the sample design
    #> # A tibble: 1 x 3 -#> colname colname_low colname_upp -#> <dbl> <dbl> <dbl> -#> 1 0.925 0.902 0.948
    # } +#> estimacion estimacion_low estimacion_upp +#> <dbl> <dbl> <dbl> +#> 1 0.925 0.902 0.948
    # }

    #> These confidence intervals are only an approximation of the correct confidence intervals #> that arise from fully defining the sample design
    #> # A tibble: 26 x 5 #> # Groups: dpto [19] -#> dpto pobre06 colname colname_low colname_upp -#> <fct> <fct> <dbl> <dbl> <dbl> -#> 1 Montevideo No pobre 5892 5207. 6577. -#> 2 Montevideo Pobre 379 145. 613. -#> 3 Artigas No pobre 244 90.9 397. -#> 4 Artigas Pobre 86 -12.0 184. -#> 5 Canelones No pobre 2287 1774. 2800. -#> 6 Cerro Largo No pobre 245 84.1 406. -#> 7 Colonia No pobre 380 172. 588. -#> 8 Durazno No pobre 163 39.3 287. -#> 9 Durazno Pobre 61 -23.9 146. -#> 10 Flores No pobre 42 -16.4 100. +#> dpto pobre06 estimacion estimacion_low estimacion_upp +#> <fct> <fct> <dbl> <dbl> <dbl> +#> 1 Montevideo No pobre 5892 5207. 6577. +#> 2 Montevideo Pobre 379 145. 613. +#> 3 Artigas No pobre 244 90.9 397. +#> 4 Artigas Pobre 86 -12.0 184. +#> 5 Canelones No pobre 2287 1774. 2800. +#> 6 Cerro Largo No pobre 245 84.1 406. +#> 7 Colonia No pobre 380 172. 588. +#> 8 Durazno No pobre 163 39.3 287. +#> 9 Durazno Pobre 61 -23.9 146. +#> 10 Flores No pobre 42 -16.4 100. #> # … with 16 more rows
    # }
    diff --git a/docs/reference/get_ipab.html b/docs/reference/get_ipab.html index 215f922..5a446d8 100644 --- a/docs/reference/get_ipab.html +++ b/docs/reference/get_ipab.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    get_ipab

    -

    IPAB (Indice de precios de alimentos y bebidas)

    +

    This function allows you to get the IPAB (Indice de precios de alimentos y bebidas) data

    get_ipab(folder = tempdir(), sheet = NULL)
    diff --git a/docs/reference/get_ipc.html b/docs/reference/get_ipc.html index 0ba20a6..295b1aa 100644 --- a/docs/reference/get_ipc.html +++ b/docs/reference/get_ipc.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    get_ipc

    -

    get_ipc

    +

    This function allows you to get the IPC data

    get_ipc(folder = tempdir())
    diff --git a/docs/reference/get_ipc_region.html b/docs/reference/get_ipc_region.html index e2a8ec3..3cfe796 100644 --- a/docs/reference/get_ipc_region.html +++ b/docs/reference/get_ipc_region.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    get_ipc_region

    -

    get_ipc_region

    +

    This function allows you to get the IPC data

    get_ipc_region(folder = tempdir(), region = "M", sheet = NULL)
    diff --git a/docs/reference/get_marco.html b/docs/reference/get_marco.html index f73a476..b9b102c 100644 --- a/docs/reference/get_marco.html +++ b/docs/reference/get_marco.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    get_marco

    -

    Download and read ECH from INE website

    +

    This unction allows you to download and read the sampling frame from INE website

    get_marco(year = NULL, folder = tempdir(), toR = TRUE)
    diff --git a/docs/reference/get_microdata.html b/docs/reference/get_microdata.html
    index 4b08897..30fe48f 100644
    --- a/docs/reference/get_microdata.html
    +++ b/docs/reference/get_microdata.html
    @@ -6,8 +6,7 @@
     
     
     
    -get_microdata
    -Download and read ECH from INE website — get_microdata • ech
    +get_microdata — get_microdata • ech
     
     
     
    @@ -40,10 +39,8 @@
     
     
     
    -
    -
    +
    +
     
     
     
    @@ -93,6 +90,18 @@
     
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    get_microdata -Download and read ECH from INE website

    +

    This function allows you to download and read ECH from INE website

    get_microdata(year = NULL, folder = tempdir(), toR = TRUE)
    diff --git a/docs/reference/household_type.html b/docs/reference/household_type.html index 39aaa4a..8d6dcf7 100644 --- a/docs/reference/household_type.html +++ b/docs/reference/household_type.html @@ -6,8 +6,7 @@ -household_type -This function allows you to calculate the household type for each household in the survey. A household is composed of one or more people who occupy a housing unit. — household_type • ech +household_type — household_type • ech @@ -40,10 +39,8 @@ - - + + @@ -93,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    household_type -This function allows you to calculate the household type for each household in the survey. A household is composed of one or more people who occupy a housing unit.

    +

    This function allows you to calculate the household type for each household in the survey. A household is composed of one or more people who occupy a housing unit.

    household_type(
    diff --git a/docs/reference/housing_conditions.html b/docs/reference/housing_conditions.html
    index 5bb5e0d..ab6f3d3 100644
    --- a/docs/reference/housing_conditions.html
    +++ b/docs/reference/housing_conditions.html
    @@ -6,8 +6,7 @@
     
     
     
    -housing_conditions
    -A function to calculate the housing conditions — housing_conditions • ech
    +housing_conditions — housing_conditions • ech
     
     
     
    @@ -40,10 +39,8 @@
     
     
     
    -
    -
    +
    +
     
     
     
    @@ -93,6 +90,18 @@
     
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    housing_conditions -A function to calculate the housing conditions

    +

    This function allows you to calculate the housing conditions

    housing_conditions(data = ech::toy_ech_2018, c2 = "c2", c3 = "c3", c4 = "c4")
    diff --git a/docs/reference/housing_deprivation.html b/docs/reference/housing_deprivation.html index db4539d..908080a 100644 --- a/docs/reference/housing_deprivation.html +++ b/docs/reference/housing_deprivation.html @@ -6,8 +6,7 @@ -housing_deprivation -This function allows you to calculate the housing status — housing_deprivation • ech +housing_deprivation — housing_deprivation • ech @@ -40,10 +39,8 @@ - - + + @@ -93,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    housing_deprivation -This function allows you to calculate the housing status

    +

    This function allows you to calculate the housing status

    housing_deprivation(
    diff --git a/docs/reference/housing_situation.html b/docs/reference/housing_situation.html
    index fcc8dff..100cb5f 100644
    --- a/docs/reference/housing_situation.html
    +++ b/docs/reference/housing_situation.html
    @@ -6,8 +6,7 @@
     
     
     
    -housing_situation
    -A function to calculate the housing situation — housing_situation • ech
    +housing_situation — housing_situation • ech
     
     
     
    @@ -40,10 +39,8 @@
     
     
     
    -
    -
    +
    +
     
     
     
    @@ -93,6 +90,18 @@
     
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    housing_situation -A function to calculate the housing situation

    +

    This function allows you to calculate the housing situation

    housing_situation(
    diff --git a/docs/reference/housing_tenure.html b/docs/reference/housing_tenure.html
    index 8b3ed6e..521991d 100644
    --- a/docs/reference/housing_tenure.html
    +++ b/docs/reference/housing_tenure.html
    @@ -6,8 +6,7 @@
     
     
     
    -housing_tenure
    -A function to calculate the housing tenure — housing_tenure • ech
    +housing_tenure — housing_tenure • ech
     
     
     
    @@ -40,10 +39,8 @@
     
     
     
    -
    -
    +
    +
     
     
     
    @@ -93,6 +90,18 @@
     
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    housing_tenure -A function to calculate the housing tenure

    +

    This function allows you to calculate the housing tenure

    housing_tenure(data = ech::toy_ech_2018, d8_1 = "d8_1")
    diff --git a/docs/reference/income_constant_prices.html b/docs/reference/income_constant_prices.html index df6fc87..1a13368 100644 --- a/docs/reference/income_constant_prices.html +++ b/docs/reference/income_constant_prices.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/income_quantiles.html b/docs/reference/income_quantiles.html index 4519ac0..f58939a 100644 --- a/docs/reference/income_quantiles.html +++ b/docs/reference/income_quantiles.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/index.html b/docs/reference/index.html index f921199..967cdce 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -89,6 +89,18 @@
  • Reference
  • +
  • Changelog
  • @@ -136,8 +148,7 @@

    add_geom()

    -

    add_geom -This function allows you to add geom variable to a with a code varible of "zona", "barrio", "localidad", "segmentos", "secciones" or "departamentos".

    +

    add_geom

    @@ -209,8 +220,7 @@

    employment()

    -

    employment -This function allows you to calculate the variables: PEA, PET, PO, PD

    +

    employment

    @@ -222,8 +232,7 @@

    enrolled_school()

    -

    enrolled_school -A function to calculate people enrolled in school

    +

    enrolled_school

    @@ -241,8 +250,7 @@

    get_dictionary()

    -

    get_dictionary -Download ECH dictionaries from INE website

    +

    get_dictionary

    @@ -296,43 +304,37 @@

    get_microdata()

    -

    get_microdata -Download and read ECH from INE website

    +

    get_microdata

    household_type()

    -

    household_type -This function allows you to calculate the household type for each household in the survey. A household is composed of one or more people who occupy a housing unit.

    +

    household_type

    housing_conditions()

    -

    housing_conditions -A function to calculate the housing conditions

    +

    housing_conditions

    housing_deprivation()

    -

    housing_deprivation -This function allows you to calculate the housing status

    +

    housing_deprivation

    housing_situation()

    -

    housing_situation -A function to calculate the housing situation

    +

    housing_situation

    housing_tenure()

    -

    housing_tenure -A function to calculate the housing tenure

    +

    housing_tenure

    @@ -386,29 +388,25 @@

    level_completion()

    -

    level_completion -A function to calculate the level of school completion

    +

    level_completion

    level_education()

    -

    level_education -A function to calculate the highest level of education achieved

    +

    level_education

    organize_names()

    -

    organize_names -A funtion to organize variables names of ECH with reference in 2017.

    +

    organize_names

    overcrowding()

    -

    overcrowding -A function to calculate overcrowding in the household

    +

    overcrowding

    @@ -420,15 +418,13 @@

    read_microdata()

    -

    read_microdata -Read ECH from a local folder

    +

    read_microdata

    set_design()

    -

    set_design -This function allows you to set the survey desing

    +

    set_design

    @@ -443,6 +439,12 @@

    underemployment()

    + +

    underemployment

    + +

    unlabelled()

    @@ -470,8 +472,7 @@

    years_of_schooling()

    -

    years_of_schooling -A function to calculate the years of schooling

    +

    years_of_schooling

    diff --git a/docs/reference/ipab_base2010.html b/docs/reference/ipab_base2010.html index 4fa169d..65d3701 100644 --- a/docs/reference/ipab_base2010.html +++ b/docs/reference/ipab_base2010.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/ipc_base2010.html b/docs/reference/ipc_base2010.html index b45a5e2..fa501af 100644 --- a/docs/reference/ipc_base2010.html +++ b/docs/reference/ipc_base2010.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/ipc_base2010_int.html b/docs/reference/ipc_base2010_int.html index 29e3fba..1675e9c 100644 --- a/docs/reference/ipc_base2010_int.html +++ b/docs/reference/ipc_base2010_int.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/ipc_base2010_mdeo.html b/docs/reference/ipc_base2010_mdeo.html index 6db5067..36f325e 100644 --- a/docs/reference/ipc_base2010_mdeo.html +++ b/docs/reference/ipc_base2010_mdeo.html @@ -91,6 +91,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/isWindows.html b/docs/reference/isWindows.html index dcdf341..8ddaa4d 100644 --- a/docs/reference/isWindows.html +++ b/docs/reference/isWindows.html @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • diff --git a/docs/reference/labor_income_per_capita.html b/docs/reference/labor_income_per_capita.html index b635923..a90ea9e 100644 --- a/docs/reference/labor_income_per_capita.html +++ b/docs/reference/labor_income_per_capita.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    labor_income_per_capita

    -

    labor_income_per_capita

    +

    This function allows you to calculate the labor income per capita

    labor_income_per_capita(
    @@ -334,7 +346,7 @@ 

    Examp toy_ech_2018 <- labor_income_per_capita(data = ech::toy_ech_2018)

    #> Variables have been created: #> labor_income (Ingresos laborales) & #> labor_income_h (Ingresos laborales del hogar) & -#> labor_income_h_percapita (Ingresos laborales del hogar per capita)
    # } +#> labor_income_h_percapita (Ingresos laborales per capita)
    # }
    diff --git a/docs/reference/labor_income_per_hour.html b/docs/reference/labor_income_per_hour.html index 2e653bc..9f7b003 100644 --- a/docs/reference/labor_income_per_hour.html +++ b/docs/reference/labor_income_per_hour.html @@ -40,7 +40,7 @@ - + @@ -90,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -115,7 +127,7 @@

    labor_income_per_hour

    -

    labor_income_per_hour

    +

    This function allows you to calculate the labor income per hour

    labor_income_per_hour(
    @@ -176,8 +188,8 @@ 

    Details

    Examples

    # \donttest{ -df <- ech::toy_ech_2018 -toy_ech_2018 <- labor_income_per_hour(data = df, base_month = "06", base_year = "2018")
    #> Variables have been created: +toy_ech_2018 <- ech::toy_ech_2018 +toy_ech_2018 <- labor_income_per_hour(data = toy_ech_2018, base_month = "06", base_year = "2018")
    #> Variables have been created: #> hours_per_month (Cantidad de horas trabajadas al mes en ocupacion principal) & #> total_income_per_hour (Total de ingresos por trabajo por hora)
    # } diff --git a/docs/reference/level_completion.html b/docs/reference/level_completion.html index 9db4a2a..ca2a5f5 100644 --- a/docs/reference/level_completion.html +++ b/docs/reference/level_completion.html @@ -6,8 +6,7 @@ -level_completion -A function to calculate the level of school completion — level_completion • ech +level_completion — level_completion • ech @@ -40,10 +39,8 @@ - - + + @@ -93,6 +90,18 @@
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    level_completion -A function to calculate the level of school completion

    +

    This function allows you to calculate the level of school completion

    level_completion(
    diff --git a/docs/reference/level_education.html b/docs/reference/level_education.html
    index 043a16d..98b1126 100644
    --- a/docs/reference/level_education.html
    +++ b/docs/reference/level_education.html
    @@ -6,8 +6,7 @@
     
     
     
    -level_education
    -A function to calculate the highest level of education achieved — level_education • ech
    +level_education — level_education • ech
     
     
     
    @@ -40,10 +39,8 @@
     
     
     
    -
    -
    +
    +
     
     
     
    @@ -93,6 +90,18 @@
     
  • Reference
  • +
  • Changelog
  • @@ -112,15 +121,13 @@
    -

    level_education -A function to calculate the highest level of education achieved

    +

    This function allows you to calculate the highest level of education achieved

    level_education(
    @@ -209,7 +216,7 @@ 

    Details

    Examples

    # \donttest{ toy_ech_2018 <- level_education(data = ech::toy_ech_2018)
    #> A variable has been created: -#> level_education (nivel educativo)
    # } +#> highest level_education achieved (maximo nivel educativo alcanzado)
    # }