CCD (Caves, Christensen, and Diewert) index
Arguments
- P
An m x n matrix (or dataframe) of prices (row country, column goods).
- Q
An m x n matrix (or dataframe) of quantities (row country, column goods).
Value
An m-vector of income (relative to minimum income).
Examples
P <- matrix(1:6, ncol = 2)
Q <- matrix(2:7, ncol = 2)
ccd(P, Q)
#> [1] 1.000000 1.235456 1.479842