Prices: Data for computing price indices.

PricesR Documentation

Data for computing price indices.

Description

Data on the sold quantity and sale price of several products through some years.

It is used as an example for the use of the Price index window of the RcmdrPlugin.TeachStat package

Usage

data("Prices")

Format

A data frame with 15 observations on the following 4 variables.

year

a factor representing the year

prodID

a factor with the ID of the products

price

the sale price

quantity

the sold quantity

Examples

data(Prices)
priceIndexNum (Prices, prodID ="prodID", pervar ="year", pvar="price", 
               qvar ="quantity", base="2001", indexMethod =c("laspeyres", "paasche", "fisher"))

RcmdrPlugin.TeachStat documentation built on Nov. 14, 2023, 5:08 p.m.