chaining: Generate chained index numbers

Description Usage Arguments Value Author(s) References Examples

View source: R/funcs_multilateral.R

Description

This function computes chained index numbers using the Laspyeres, Paasche, Fisher and Tornqvist formulas. It also provides the Paasche-Laspeyres spreads.

Usage

1
chaining(data.x, data.y)

Arguments

data.x

A data frame containing data on prices or quantites. To get a quantity index, data.x should contain information on quantities. To get a price index, data.x should contain info on prices. Each column should represent an item of the basket. Temporal and spatial dimensions are represented by row, as in 'long' formats. Neither id nor time variables should be included among the columns.

data.y

A data frame containing data on prices or quantites. It represents the weights to be used in weighting data contained in data.x. To get a quantity index, data.y should contain information on prices. To get a price index, data.y should contain info on quantities. Each column should represent an item of the basket. Temporal and spatial dimensions are represented by row, as in 'long' formats. Neither id nor time variables should be included among the columns.

Value

It returns the data frame containing the chained indexes and the Paasche-Laspeyres spreads.

Author(s)

Edoardo Baldoni

References

T. J. Coelli, D. S. Prasada Rao, C. J. O'Donnell, and G. E. Battese. An introduction to Efficiency and Productivity Analysis, 2nd edition. Springer Science + Business Media, New York, 2005.

Examples

1
2
3
# From An Introduction to Efficiency and Productivity Analysis (Coelli et al., 2005), pag. 127-130
data('multil_data')
chaining(rail_out_q,rail_out_p)

multilaterals documentation built on May 2, 2019, 4:02 p.m.