A Small Example Computing Bilateral Trade with a Gravity Model
October 24, 2025
According to USA Trade, Louisiana exported approximately $22 billion worth of soybeans in 2022, accounting for 42.6% of all soybeans exported from the United States that year. However, Louisiana only produced about $575 million of soybeans. This discrepancy is due to the United States recording exports as originating from the last port of exit, rather than the actual location of production. In Louisiana’s case, a significant portion of the soybeans exported through its ports are grown in other states, particularly in the Midwest, and then transported via the Mississippi to Louisiana for export. Our goal is trace this production back to its source using a gravity model. These methods can be extended to see the value soybeans traveling from Wisconsin to China. Read more
Developing a WiNDC Web Application to solve CGE Models
October 17, 2025
Since I stated at WiNDC I have had the vision of developing a web application to allow users to run CGE models built with WiNDC without needing to install any software locally. The past week I have made significant progress towards this goal and have a working prototype. Read more
Loading GTAP in Julia
October 10, 2025
I’ve been spending the past week formalizing the process of loading GTAP data into Julia. The first step was to create a Julia package to read GEMPACK HAR files. I’ve been working with Maros Ivanic, who has a package for reading these files in R, and we’ve been collaborating to ensure that the Julia package is efficient and user-friendly. Read more
Visualizing GTAP in Julia
October 03, 2025
I’ve spent the past week working on a package to load GTAP data from the provided HAR files. The good news is that I have working code to load the data into a Julia DataFrame. The bad news is that it will take a little more time to clean it up and make it user-friendly. Read more
Julia Developing Tips
September 26, 2025
Julia has many features that make developing packager easier, compared to Python or R. However, new comers to the language often miss out on some of these features. Here are some tips that I have found useful when developing packages in Julia. Read more