Skip to content

Place to stick code for other economists.

Notifications You must be signed in to change notification settings

kevinparrish1/EconScripts

 
 

Repository files navigation

Economics Scripts

My goal with this is repository is to provide some of my scripts that other economists might find useful. That said, these scripts come without warranty or support (but if you find a bug please let me know).

Thanks,

Ben Smith
Economist
University of Nebraska at Omaha

Optimization Scripts

The current optimization scripts are (all implemented in Python):

  • BFGS (Python)
  • Downhill Simplex (Python)
  • Newton's Method (Python)

All have example usage at the end of the respective file

Simulations

Current simulations are:

  • Gibbs Sampler from Multivariate Normal with Burn-In Feature (R Project)
  • EG Statistic which Simulates Critical Values for Geographic Clustering (Python - Current Research by Andrew Cassey and Ben Smith)

Calculate Distances

An extremely common problem in economics is finding the physical distances between the Cartesian product of a list of cities (all of the various combinations between each of those cities). This is important in particular in gravity models (which are common in trade). The included Mathematica code solves this problem.

Class

I've posted my slides for those who took my Python class. This explains the basics of programming and using NumPy and SciPy. Additionally, I've taught a class on LaTeX and Git. The handouts are under the "Git and Latex Handouts" folder. The handout source is posted, and I purposely only loaded packages that I used and noted in the comments why I loaded them.

Helpful Links

Optimization Methods (Wikipedia):

Software:

About

Place to stick code for other economists.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PostScript 64.1%
  • Python 15.7%
  • TeX 11.7%
  • Mathematica 4.9%
  • JavaScript 2.5%
  • Tcl 0.6%
  • R 0.5%