ygk | R Documentation |
This is a convenience function, which returns only the quantity
index vector. Calls gk
and returns only the index.
ygk(P, Q, pop = NULL, min_scale = FALSE)
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). |
pop |
Optional m-vector of population numbers (if Q is per capita). |
min_scale |
Should real income be scaled in units relative to least income country? |
An m-vector of quantities.
P <- matrix(1:6, ncol = 2) Q <- matrix(2:7, ncol = 2) ygk(P, Q) ygk(P, Q, min_scale=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.