revealedPrefs-package {revealedPrefs} | R Documentation |
Revealed Preferences and Microeconomic Rationality
Description
Computation of (direct and indirect) revealed preferences, fast non-parametric tests of rationality axioms (WARP, SARP, GARP), simulation of axiom-consistent data, and detection of axiom-consistent subpopulations. Rationality tests follow Varian (1982) <doi:10.2307/1912771>, axiom-consistent subpopulations follow Crawford and Pendakur (2012) <doi:10.1111/j.1468-0297.2012.02545.x>.
Details
This package is meant for the analysis of (quantity, price) data, eg. of bundles of goods and corresponding prices. It features fast algorithms that make the analysis of large datasets feasible.
Functions directPrefs
and indirectPrefs
compute revealed preferences.
Functions checkWarp
, checkSarp
, checkGarp
perform fast non-parametric tests of rationality using the corresponding rationality axioms.
Functions simWarp
, simSarp
, simGarp
and simPrefs
generate simulated data consistent with a rationality axiom or with a given preference matrix.
Functions cpLower
and cpUpper
generate Crawford-Pendakur type bounds on the number of subpopulations and provide the corresponding clusterings.
Author(s)
Julien Boelaert <jubo.stats@gmail.com>
Maintainer: Julien Boelaert <jubo.stats@gmail.com>
References
Varian, H. R. (1982) The Nonparametric Approach to Demand Analysis, Econometrica, 50(4):945-973.
Varian, H. R. (1984) Microeconomic Analysis. New York/London: Norton, 2nd edition, pp 141-143.
Crawford, I. and Pendakur, K. (2013). How many types are there? The Economic Journal, 123(567):77-95.
See Also
See directPrefs for computation of preferences, checkGarp for rationality tests, simGarp
for data generation, and cpUpper for clustering of data into non-violating subsets.
Examples
# Compute preferences and check rationality on a GARP-violating dataset:
data(noGarp)
indirectPrefs(noGarp$x, noGarp$p)
checkGarp(noGarp$x, noGarp$p)
# Cluster dataset into GARP-consistent subpopulations:
cpUpper(noGarp$x, noGarp$p)