Learn R Programming

revealedPrefs (version 0.4.1)

noGarp: revealedPrefs example datasets

Description

Toy examples to test for consistency with rationality axioms.

Usage

data(noGarp)
data(noWarp)
data(noSarp)
data(okSarp)
data(noAxiom)

Arguments

Format

Each dataset is a list of two matrices, named x and p, that contain quantities and prices, respectively. Each row is an observation, each column is a type of good.

Details

Data in noAxiom violate WARP, GARP and SARP.

Data in noWarp violate WARP and SARP, but not GARP.

Data in noGarp violate GARP and SARP, but not WARP.

Data in noSarp violate SARP, but not WARP or GARP.

Data in okSarp are consistent with WARP, SARP and GARP.

Examples

Run this code
# NOT RUN {
data(noWarp)
checkWarp(noWarp$x, noWarp$p)
# }

Run the code above in your browser using DataLab