Resources
This page contains data sets and code for various papers and revealed preference tests.

Introductions to RP


This paper of Hal Varian gives a nice introduction into the theory of revealed preferences.

Laurens Cherchye, Ian Crawford, Bram De Rock and Frederic Vermeulen give another introduction into the theory of revealed preferences. The paper also discusses some recent extensions like the characteristics model, the habits model and the collective model.

Program codes


Julien Boelaert has written an R package to compute various revealed preference tests. It's called revealedPrefs and it is available on CRAN.

This short document explain how to install cplex and link it to Matlab or Python.

Date description code
July, 2015 matlab m-files to compute various revealed preference tests (GARP, WARP, SARP, HARP), the Bronars power index and the Afriat Critical Cost index. zip file
July, 2015 Python module to compute various revealed preference tests. zip file
August, 2015 Matlab and Python modules to test the cooperative and non-cooperative revealed preference restrictions. See our paper for more information on the model. zip file
June, 2016 Matlab, R code and data to produce bounds on mean treatment effects. See the paper: "Bounding average treatment effects: a linear programming approach", Economics Letters, 137, 75-77, for more information on the model. zip file
June, 2016 Matlab code for the paper: "Testing the homogeneos marginal utility of income assumption", Econometric Reviews, forthcoming. zip file
Feb, 2017 Code and data paper: "Nonparametric welfare and demand analysis with unobserved individual heterogeneity", Review of Economics and Statistics, forthcoming. zip file
Feb, 2017 Code and data paper: "Revealed preference with limited consideration", American Economic Journal: Microeconomics, forthcoming. zip file