# NOT RUN {
library(IndexNumR)
data(Prices, package = "RcmdrPlugin.TeachStat")
priceIndexNum(Prices, prodID = "prodID", pervar = "year", pvar = "price",
qvar = "quantity", base = "2003",
indexMethod = c("laspeyres", "paasche", "fisher"))
# }
Run the code above in your browser using DataLab