priceIndexFood | R Documentation |
calcluates price indicies based on a MAgPIE gdx file
priceIndexFood(
gdx,
file = NULL,
level = "reg",
index = "lasp",
chain = FALSE,
baseyear = "y2005",
round = TRUE,
product_aggr = TRUE
)
gdx |
GDX file |
file |
a file name the output should be written to using write.magpie |
level |
Level of regional aggregation; "reg" (regional), "glo" (global), "regglo" (regional and global) or any other aggregation level defined in superAggregate |
index |
"lasp" (Laspeyres-Index: baseyear weighting), "paas" (Paasche-Index: current weighting), "fish" (Fisher-Index: geometric mean of "lasp" and "paas") |
chain |
Chain Index: if true, the base period for each time period is the immediately preceding time period. Can be combined with all of the above indices |
baseyear |
baseyear of the price index. type model to take baseyear 2010 with literature prices |
round |
shall the results be rounded? |
product_aggr |
aggregate over products or not (boolean) |
A MAgPIE object containing price indices for consumers or producers (depending on type)
Jan Philipp Dietrich, Florian Humpenoeder, Benjamin Bodirsky
## Not run:
x <- priceIndexFood(gdx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.