Working Paper No. 1342

Testing Axioms of Revealed Preference in Stata

Published: June 15, 2020, revised November 2020Pages: 21Keywords: Rpaxioms; Checkax; Aei; Powerps; Afriat effciency index; GARP; Revealed preference; Power; Predictive successJEL-codes: C87; D12

Testing Axioms of Revealed Preference in Stata Marcos Demetry, Per Hjertstrand and Matthew Polisson

This paper introduces the Stata commands checkax, aei, and powers as a bundle within the package rpaxioms. The first command allows the user to test whether consumer demand data satisfy a number of revealed preference axioms at a given efficiency level, the second command calculates measures of goodness-of-fit when the data violate these axioms, and the third command calculates power against uniformly random behavior as well as predictive success for each axiom at any given efficiency level. The commands are illustrated using experimental individual-level data and aggregated household-level consumption data.


Demetry, Marcos, Per Hjertstrand and Matthew Polisson (2020), "Testing Axioms of Revealed Preference in Stata". IFN Working Paper No. 1342. Stockholm: Research Institute of Industrial Economics (IFN).

Interdisciplinary European Studies

The European Union and the Return of the Nation State


This book explores the complex and ever-changing relationship between the European Union and its member states. The recent surge in tension in this relationship has been prompted by the actions of some member state governments as they question fundamental EU values and principles and refuse to implement common decisions seemingly on the basis of narrowly defined national interests.

About the book


Seminars organized by IFN


To present ongoing research informal brown-bag seminars are held on Mondays at 11:30 am. This is an opportunity for IFN researchers to test ideas and results.

Academically oriented seminars are most of the time held on Wednesdays at 10 am. At these events researchers from IFN and other institutions present their research.

In addition, IFN organizes seminars open to the public. Topics for these are derived from the IFN research.

Research Institute of Industrial Economics, Grevgatan 34 - 2 fl, Box 55665, SE-102 15 Stockholm, Sweden | Phone: +46-(0)8-665 45 00 |