Skip to contents

The Törnqvist quantity index is an alternative to the Fisher ideal index.

Usage

q_tornqvist(P, Q)

Arguments

P

An m x n matrix of prices (row country, column goods).

Q

An m x n matrix of quantities (row country, column goods).

Value

an m x m matrix of country pair comparisons.

Examples

Pt <- matrix(1:6, ncol = 2)
Qt <- matrix(2:7, ncol = 2)
q_tornqvist(Pt,Qt)
#>          [,1]      [,2]      [,3]
#> [1,] 1.000000 0.8097257 0.6754911
#> [2,] 1.234986 1.0000000 0.8351741
#> [3,] 1.480404 1.1973552 1.0000000