Index Number Calculation

Computes bilateral and multilateral index numbers. It has support for many standard bilateral indexes as well as multilateral index number methods such as GEKS, GEKS-Tornqvist (or CCDI), Geary-Khamis and the weighted time product dummy (for details on these methods see Diewert and Fox (2020) ). It also supports updating of multilateral indexes using several splicing methods.

Build Status


An R package for computation of index numbers

IndexNumR provides a set of functions for computing various bilateral and multilateral indices. It is designed to compute price or quantity indices over time. Bilateral indices include Laspeyres, Paasche, Fisher, Tornqvist, Sato-Vartia, Walsh and CES, as well as elementary indices Dutot, Carli, Harmonic mean, CSWD and Jevons. All of these bilateral indices can be computed as period-on-period, fixed-base or chained.

Multilateral indices can be computed in the time series context using the GEKS methodology, and updating is provided via the window, movement or mean splice methods. The GEKS method is computed using either the Fisher or Tornqvist superlative index number methods.

The package also provides functions to compute measures of dissimilarity between time periods, which can be used to choose the linking period for chained indices.

To install the latest Github version of the package, you will first need devtools installed,


then use the following R commands,


Or to include the vignette,

devtools::install_github("grahamjwhite/IndexNumR", build_vignettes = TRUE)  


To estimate a simple chained Laspeyres price index using the CES_sigma_2 dataset,

priceIndex(CES_sigma_2,pvar = "prices",qvar = "quantities",pervar = "time",prodID = "prodID", indexMethod = "laspeyres", output = "chained")

A GEKS index with mean splicing and an 11 period window is estimated as follows,

GEKSIndex(CES_sigma_2, pvar = "prices", qvar = "quantities", pervar = "time", prodID = "prodID", indexMethod = "tornqvist", window=11, splice = "mean")

More examples are contained in the package vignette.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.4.0 by Graham White, 4 months ago

Browse source code at

Authors: Graham White

Documentation:   PDF Manual  

GPL-2 license

Imports utils

Suggests testthat, knitr, rmarkdown, covr

Imported by RcmdrPlugin.TeachStat.

Suggested by gpindex.

See at CRAN