# Category: Codes and Datasets

## 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 few simple…

## 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 reshape. I…

## 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 on duration,…

## 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 regions of…

## 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 when you…

## 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 simple steps:…

## 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 available in…

## How do political tensions and geopolitical risks impact oil prices? (Energy Economics)

NEW PUBLICATION: This paper assesses the effect of US–China political relationships and geopolitical risks on oil prices. To this end, we consider two quantitative measures, the Political Relationship Index (PRI)…

## Some basic economics of AI

After a first blog presenting our paper on Artificial Intelligence and a second one presenting the Mathematica notebook that explains step-by-step the calculations. Let me draw your attention…

## 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 simple example…