Skip to main content

Creating Julia Packages

Mitch Phillipson October 31, 2025


It is entirely possible to write all your Julia code in a single script file. However, as your projects grow in size and complexity, organizing your code into packages can provide significant benefits. Today I’ll discuss how to create and manage Julia packages effectively. Read more

A Small Example Computing Bilateral Trade with a Gravity Model

Mitch Phillipson 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

Mitch Phillipson 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

Mitch Phillipson 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

Mitch Phillipson 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

Filter