Tag: STATA Code
-
Drawing maps at different regional levels
1 Introduction This short note aims to demonstrate the drawing of choropleth maps at different regional levels thanks to Natural Earth Data and GADM data. Drawing…
-
Computing the number of months to reach peak depreciation during a monetary cycle
In the following working paper, we assess the relative resilience of emerging countries during US monetary cycles. One possible measure of resilience is the number of…
-
Customizing LP impulse response functions after LOCPROJ
Alfonso Ugarte Ruiz from BBVA research introduced the locproj package: s459204. The package is very useful, and I will show you how to customize the LP…
-
Panelview with Stata
A good way to visualize panel data with Stata is to rely on the package panelview created and maintained by Yiqing Xu: Other possibilities include Ben…
-
Drawing bivariate maps with Stata for the NUTS regions (removing Turkey)
A small update of the following blog if you want to remove Turkey:
-
Drawing bivariate maps with Stata for the NUTS regions
After three blogs on how to draw maps with Stata for the NUTS regions and on how to download data from DBnomics, this time I will…
-
Drawing maps with Stata for the NUTS regions (Hourly Wages)
After two blogs on how to draw maps with Stata for the NUTS regions and on how to download data from DBnomics, this time I will…
-
Drawing Maps for East Asia and Pacific Region
After a series of blogs on maps, today, I will show how to draw a map for the East Asian and Pacific Region, following the World…
-
Bivariate Maps for Chinese Regional Data
Asjad Naqvi released a new version of the bimap package, let me show a small example of how this package works with some regional data for…
-
Feeling the Heat: Heatmaps for Vulnerability Scores
After a series of blogs where I explained the functioning of the DBnomics package: https://www.jamelsaadaoui.com/?s=dbnomics I will show how to directly download the Vulnerability Index built…
-
Measuring friendliness and like-mindedness
In his last post, Cullen S. Hendrix from the PIIE proposed to measure friendliness and like-mindedness using mean absolute distance with the US for two variables,…
-
Create a variable with a reference to a specific country
After a previous post on mapping the Political Ties with Stata, let me show how to compute how to create an idea point relatively a specific…
-
Using a loop to select countries in a panel
Sometimes, you need to extract some countries when you are using a panel. The most simple way to proceed is to use a loop after the…
-
The Effect of Corruption on Foreign Direct Investment at the Regional Level: A Positive or Negative Relationship?
in BookNEW BOOK CHAPTER: This chapter looks at the effect of corruption on foreign direct investment (FDI) at the world and regional levels, with a focus on…
-
Visualizing quantile regressions with Stata
When I wanted to make some simple graphs on quantile regressions, I was quite surprised to not find a nice blog where each step is clearly…
-
The best of EconMacro on Medium
Happy to announce that I now have a Medium page: https://medium.com/@jamelsaadaoui, where I will make a selection of my best blogs on EconMacro. These blogs will…
-
NUTS Data with DBnomics
Let me show you how to use DBnomics to build databases at the NUTS 0, NUTS 1, NUTS 2 levels. I recommend you to consult my…
-
Panel Data with DBnomics
What if I told you that you can build a panel dataset of 3 variables for almost 200 countries and around 60 years in less than…
-
Some wisdom about supervised machine learning
During the 4th Italian Workshop of Econometrics and Empirical Economics: “Climate and Energy Econometrics”, I had the chance to attend to the presentation of Giovanni Cerulli’s…
-
Reshape faster… much faster
As mentioned in the last Stata News 39-1, the reshape command is now faster, much faster. For an ongoing project, I had to reshape daily data…
-
Leçon doctorale à l’école doctorale Augustin Cournot (ED 221) — Université de Strasbourg
Le lundi 12 février prochain, j’aurai le grand plaisir d’animer une leçon doctorale à l’école doctorale Augustin Cournot (ED 221) — Université de Strasbourg. Risques géopolitiques,…
-
Using labmask for better graphs in Stata
In his last book, La Défaite de l’Occident, Emmanuel Todd, a French historian and demographer, argues that the infant morality rate is higher in the US…
-
Drawing Maps with GADM data
After a series of blogs on Maps, I will show how to use GADM data to draw maps for Austria at 4 different administrative levels. I…
-
Drawing Maps for Political Ties with Stata
Today, I will build on my previous blogs to show you how to draw a map of United Nations General Assembly Voting Data with Stata (see…
-
Descriptive Statistics by Country in Panel Data with Stata
In this blog, I will show you how to compute descriptive statistics by country in a panel data thanks to the Stata command putexcel in a…
-
From panel data to time series with Stata [Updated]
In this blog, I will show you that it is simple to switch back and forth between panel data and time series with the Stata command…
-
Dates and Times in Excel and in Stata
Usually in Statistics, time is a continuous quantitative variable that uses the interval scale when we are looking at dates (the ratio scale when we elaborate…
-
Drawing Maps for the Chinese regions with Stata [Updated with Geoplot]
The most complete blog of mine on maps with Stata. I used spmap, grmap, geoplot with one frame and multiple frames. Other examples are given for…
-
Drawing Maps with Stata… Again and Again!
Today, I will build on my two previous blogs to show you how to use an alternative projection for the maps. Indeed, you need a projection…
-
Drawing Maps with Stata… Again!
Today, I will build on my previous blog to show you how to merge two macroeconomic series, draw maps and think about some correlations in three…
-
Drawing Maps with Stata for Africa
Using maps can be a good way to visualize the spatial dispersion of the data. I made a series of blogs on drawing maps on Stata…
-
Buffer effects of international reserves holding in Africa
NEW WORKING PAPER: The paper adds to the literature on the issue of public debt in African economies, by investigating the role foreign exchange reserves play…
-
Illustrating the consequences of modeling common factors with Stata [Updated with xtdcce2]
This post has been inspired by a fascinating discussion with Hiro Ito, Eric Clower and Kamila Kuziemska-Pawlak. In an old paper of mine (j.econmod.2015.02.007) written in…
-
Denton’s method with Stata
In this blog, you will learn to use the Denton method with Stata to interpolate a series to a higher frequency. I will show you a…
-
Introduction gratuite à Stata
Stata 18 est sorti en avril, j’aurai le plaisir d’animer un webinaire pour Timberlake. Ce webinaire présentera trois nouvelles commandes très prisées des utilisateurs : Nous…
-
Built a website using GitHub pages
Thanks to the wonderful guidance of Hashir Shoaib (hashirshoaeb), I finally manage to use GitHub pages to built a portfolio for my recent projects jamelsaadaoui.github.io/ Feel…
-
Heterogeneous Difference-in-Differences with Stata
A few days ago, I assisted to wonderful presentation by Di Liu of StataCorp LLC. His explanations were crystal clear about the difference-in-difference commands introduced in…
-
Data Visualisation and Causal Analysis with SVAR and LP models
I will give my first training session for Timberlake, the 26th October 2023 at 9 – 11 am BST / 10 – 12 pm CEST: www.timberlake.co.uk…
-
Macroeconomic Research, Present and Past
Today, let me draw your attention to this very interesting JEL article. It provides a superb overview of macroeconomic research during the last 40 years. As…
-
Estimating a nonlinear DSGE model with Stata
Today, I will show how to estimate a DSGE model with Stata in a few steps. The model consists of 8 equations and is a variant…
-
Sign and Narrative Restrictions in SVAR with Stata
Today I will present you VAR_NR, a Stata module to estimate set identified Structural VAR. This toolbox has been provided by Abigail Kuchek, Jonah Danziger and Christoffer Koch.…
-
Guest Contribution in Econbrowser: “How Political Tensions and Geopolitical Risks Impact Oil Prices”
Very honored to contribute my first guest blog post on Econbrowser. I am deeply grateful to Menzie Chinn. Remarks and comments are welcome, as always: https://econbrowser.com/
-
Visualizing high-frequency data using a Jupyter Notebook and Stata 18
After two first blogs (here and here) on how to launch Stata in a Jupyter Notebook. In the following file, you will see that Stata can…
-
Jupyter Notebook with Stata 18 [Updated]
You want to launch Stata in a Jupyter Notebook? In the following file, you will see how to launch and use Stata from a Jupyter notebook…
-
Illustrating the new LPIRF Stata 18’s command
Good news! In the new version of Stata 18, we have a new command that produces local-projection impulse–response functions. You can find the complete description of…
-
Size and Power using Stata: a Simple Example
During my seminars of Applied Econometric with Stata in the Faculty of Economics and Management at the University of Strasbourg, I always tell to my students…
-
Producing a Stata code for a simple Monte Carlo simulation with an AI programming assistant
Great news! Wolfram Research has launched a new function that could help to write a code in various languages: resources.wolframcloud.com/ This function requires that you have…
-
Panel Data Econometrics: Common Factor Analysis for Empirical Researchers [Update]
in BookEdit: It is an honor to be included on the companion website of Professor Sul: https://personal.utdallas.edu/ During this summer, I decided to explore and to understand…
-
Panel Data Econometrics: Common Factor Analysis for Empirical Researchers
in BookDuring this summer, I decided to explore and to understand the concept of common factors in panel data econometrics, which are a very important thing, in…