q_fisher: Fisher ideal quantity index.

View source: R/building_blocks.R

q_fisherR Documentation

Fisher ideal quantity index.

Description

The Fisher ideal index takes the geometric mean of the Paasche and the Laspeyre indices. If there are m countries and n goods, the data are (m x n) matrices.

Usage

q_fisher(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_fisher(Pt,Qt)

ErikOSorensen/pppindexr documentation built on Jan. 7, 2023, 4:11 p.m.