Updated 13/12/2013

This section of the webpage is desiged to dump all the numerical ressources/methods I use in my research and my teaching, in case it might come in handy, or in case somebody wants to replicate my work. As such, it is permanently under construction ... Feel free to use the material in this section if it proves useful for your own work, but please don't forget to cite! I would also be extremely grateful if such users could report problems in the code if they find them.

These are the m-files I use to carry out my simulations/estimations, as well as some of the files used to generate the above animations. Please note that my (spatial) econometric work is done with Matlab, using James LeSage's spatial econometrics toolbox, and some of these files will require the toolbox to function.

- Schelling_files.zip - Package used to simulate the Schelling model of urban segregation and to obtain the maximum entropy prediction of the final state. Contains the simulation/prediction data required to replicate the results in the paper. NEW: Now also contains the files required to produce a Monte-Carlo analysis of the Schelling simulation.
- QL_log.zip - Package used to compute entrepreneur income in the phase space of the quasi-linear logarithmic model of New Economic Geography. Contains a file to calculate entrepreneur income in the phase space (including countour figures and a check of the specification used in the lower bound proof in appendix) and a file to calculate the table of critical points.
- VES_NEG.zip - Package used to generate the diagrams of the VES-NEG model I developped. These make use of the same implicit function methodology as above to identify the equilibrium solutions. Use F5 on each file to generate the diagram.
- Venables_extnd.m - M-file used to replicate the Venables (1996) phase diagrams, extended to general equilibrium with richer spillover linkages.
- Venables.m - M-file used to replicate the Venables (1996) phase diagrams. Uses an implicit function methodology to identify the solutions in the space of possibles (partial equilibrum). Also integrates the knowledge spillover extension I developped.
- Fingleton.zip - Package used to estimate the Fingleton (2003) model on French wages. Requires the spatial econometrics toolbox. To run, use F5 on the relevant estimation procedure.
- Cournot.zip - Package used to simulate the spatial Cournot model. Requires the optimisation toolbox. To run, use F5 on the call function.
- Puga.zip - Package used to simulate the Puga (1999) model. Requires the optimisation toolbox. To run, use F5 on the call function.
- Utility.m - M-file used to generate the utility animation below.

These are typically animations that I have generated with Matlab, to illustrate particular points of my lectures. For certain students, these are worth more than the proverbial thousand words...

Caution: these are zipped .avi files, in the 5-10 Mb range, so they might take a while to download.

- Utility - Deriving indifference curves from a utility surface (see M-file below)
- Krugman - 3d bifurcation diagram of the Krugman (1991) model
- Puga - 3d bifurcation diagram of the Puga (1999) model, with migration (essentially the same as above)
- Puga2 - 3d bifurcation diagram of the Puga (1999) model, without migration