Learn R Programming

Price level comparisons

The pricelevels-package provides index number methods for price comparisons within or between countries. As price comparisons over time usually rely on the same index number methods, the package has been denoted more generally as pricelevels, though its primary focus is on spatial price comparisons. Currently, the following index number methods (or price indices) are implemented.

  1. Bilateral price indices:
    • Elementary (unweighted) indices:
      • Jevons: jevons()
      • Dutot: dutot()
      • Carli: carli()
      • Harmonic: harmonic()
      • BMW: bmw()
      • CSWD: cswd()
    • Unit value related indices:
      • Unit value index: uvalue()
      • Banerjee: banerjee()
      • Davies: davies()
      • Lehr: lehr()
    • Quantity or expenditure share weighted indices:
      • (Geometric) Laspeyres: laspeyres() and geolaspeyres()
      • (Geometric) Paasche: paasche() and geopaasche()
      • Fisher: fisher()
      • Törnqvist: toernqvist()
      • (Geometric) Walsh: walsh() and geowalsh()
      • Theil: theil()
      • Marshall-Edgeworth: medgeworth()
      • Palgrave: palgrave()
      • Sato-Vartia: svartia()
      • Drobisch: drobisch()
      • Lowe: lowe()
      • (Geometric) Young: young() and geoyoung()
  2. Multilateral price indices:
    • (Nonlinear) CPD method: cpd() and nlcpd()
    • GEKS method: geks()
    • Multilateral systems of equations:
      • Geary-Khamis: gkhamis()
      • Iklé: ikle()
      • Rao system: rao()
      • Rao-Hajargasht: rhajargasht()
    • Gerardi index: gerardi()

Moreover, the package offers functions for sampling and characterizing price data. Details can be found in the package vignette.

The pricelevels-functions are designed based on R's data.table-package.

Copy Link

Version

Install

install.packages('pricelevels')

Monthly Downloads

279

Version

1.4.0

License

EUPL

Issues

Pull Requests

Stars

Forks

Maintainer

Sebastian Weinand

Last Published

July 22nd, 2025

Functions in pricelevels (1.4.0)

gerardi

Gerardi index
ratios

Calculation of price ratios
bilateral.index

Bilateral price indices
pricelevels

Spatial price indices
rdata

Simulate random price and quantity data
pricedata

Price data characteristics
cpd

CPD and NLCPD methods
geks

GEKS method
gkhamis

Multilateral systems of equations