This page contains applied research results and/or python/stata/R code on various topics of interest to me. If you have feedback or want to continue exploring a particular topic, feel free to contact me! You can also visit my website in Notion.
February, 2024
This report presents trade statistics for Argentina over the past few decades. I used Dash in Python and Plotly dynamic graphs to create it, providing a clear overview. Despite the challenges I faced when deploying the app, I was able to do so using the free service of Render.
If you're interested in doing something similar, I wrote a mini-tutorial in Notion that you can refer to in here
January, 2024
Hi there! I've been listening to many analysts talking about equities' performance in 2023. So, I decided to take a look at how some companies have been doing and I wanted to share my thoughts with you. I wrote this in Spanish this time, but if you have any questions, don't hesitate to reach out!
July, 2023
Here I am in the middle of the winter holidays (for those of you in the southern hemisphere), and now that classes are over, I can spend some time playing with Python. Since February I started a three-module diplomatura on data science and artificial intelligence. I finished the second one and not to forget what I have just learned (and because my own experience says coding is a learning-by-doing process), I decided to develop this code in Python to get foreign trade data from the UN-COMTRADE API (comtradeapicall) and generate a visualization of trade flows for Argentina using Sankey plots (plotly and chart studio). You can see the script in the following button.
The figures below are horizontal Sankey plots with data on trade flow for Argentina in 2022 for the top 10 trade partners. On each flow, you can see the total amount in dollars of the bilateral exchange, and on the 'Argentina' label you can find the sum of total exports. The last part of the script is dedicated to this visualization and a helpful tool (chart studio) that I used to embed the plots as HTML code.
Abril, 2023
Hace unos días entregué el trabajo final del último seminario que tenia pendiente del doctorado, que trató sobre Desigualdad de la mano de dos grandes profesores como Dr. Facundo Alvaredo (PSE) y la Dra. Roxana Maurizio (ILO). Aprendimos sobre los debates actuales entorno a la medición de la distribución de la riqueza y los últimos avances en las dinámicas salariales de los mercados laborales latinoamericanos, con foco en el salario mínimo, la desigualdad salarial y las tareas automatizadas. En mi trabajo intenté estimar el efecto de la formalización laboral en la desigualdad salarial en Perú entre 2004 y 2014.
Para ello, utilicé la metodología de Oaxaca-Blinder con RIF para descomponer el impacto de la formalización laboral en la desigualdad salarial. La metodología permite identificar el efecto composición (cambios en la estructura de los asalariaados ya sea con la creación de puestos laborales formales o transición de la informalidad a la formalidad) y el retorno (cambios en los ingresos percibidos) sobre la distribución de ingresos salariales. Ya sea que tengamos mejoras por una mayor tasa de formalización o por un crecimiento en los retornos, ambos fenómenos afectan a la distribución. América Latina es una región que registró grandes cambios en esta materia en las primeras dos décadas del siglo XXI y Perú es un caso interesante porque su mercado laboral registra una alta tasa de informalidad. En mi trabajo encontré que la formalización no ha sido tan importante, sino más bien el efecto crecimiento de los ingresos a nivel agregado, por ejemplo, a través de mayores retornos a la educación.
Los datos provienen de la Encuesta Nacional de Hogares (ENAHO) realizada por el Instituto Nacional de Estadística e informática de Perú. La encuesta se presenta con periodicidad trimestral y la estructura de mi base de datos se compone de aprox. 1500 variables y más de 26746 observaciones.
Les dejo una infografía con algunos datos que me han llamado la atención sobre este mercado laboral, referidos a la informalidad, el empleo temporal y el cuentapropismo.
Si les interesa el tema acá les dejo un trabajo que incluye a otros países de la región, https://shorturl.net/LlLm