Skip to content

Commit

Permalink
new parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
caropradier committed Sep 14, 2023
1 parent 742c8e2 commit 3d817fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions vignettes/eph.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Obtengamos la base de microdatos de individuos para el tercer trimestre de 2018:
```{r}
ind_3_18 <- get_microdata(
year = 2018,
trimester = 3,
period = 3,
type = "individual"
)
```
Expand All @@ -77,7 +77,7 @@ Descarguemos y etiquetemos la base de hogares del 3 trimestre de 2018. Podemos h
```{r}
hog_3_18 <- get_microdata(
year = 2018,
trimester = 3,
period = 3,
type = "hogar"
) %>%
organize_labels(.,
Expand Down Expand Up @@ -132,13 +132,13 @@ variables <- c(
### Descargo la base individual para el 2018_t1
base_2018t1 <- get_microdata(
year = 2018, trimester = 1, type = "individual",
year = 2018, period = 1, type = "individual",
vars = variables
)
### Descargo la base individual para el 2018_t2
base_2018t2 <- get_microdata(
year = 2018, trimester = 2, type = "individual",
year = 2018, period = 2, type = "individual",
vars = variables
)
Expand Down Expand Up @@ -181,7 +181,7 @@ Dado que levantar muchas bases al mismo tiempo puede superar el espacio disponib
```{r message=FALSE, warning=FALSE}
df <- get_microdata(
year = 2017:2019,
trimester = 1:4,
period = 1:4,
type = "individual",
vars = c("ANO4", "TRIMESTRE", "PONDERA", "ESTADO", "CAT_OCUP")
)
Expand Down
2 changes: 1 addition & 1 deletion vignettes/estimacion_pobreza.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Además, con la función `get_microdata()` descargamos las bases de todos los tr
canastas_regionales <- get_poverty_lines(regional = TRUE)
bases <- get_microdata(
year = 2016:2019,
trimester = 1:4,
period = 1:4,
type = "individual",
vars = c("ANO4", "TRIMESTRE", "REGION", "CODUSU", "NRO_HOGAR", "CH04", "CH06", "ITF", "PONDIH", "PP07H", "PP04D_COD")
# ,destfile = 'bases_eph.rds'
Expand Down

0 comments on commit 3d817fc

Please sign in to comment.