aggregated.index.number {IndexNumber} | R Documentation |
Calculate an aggregate index number
Description
This function determines index numbers without weights for those cases in which there exist more than an only product (in chain or in serie)
Usage
aggregated.index.number(x, base, type, name,opt.plot=FALSE, opt.summary=FALSE)
Arguments
x |
It is a matrix containing that magnitude to be studied. In each column, it contains the magnitud of a different product. Thus, we have |
base |
Chain of characters that indicates the nature of the index number. If we introduce |
type |
Chain of characters to indicate the type of non-weighted index number to evaluate the evolution of a set of magnitudes (even for different products). By considering Otherwise, if we take |
name |
Chain of characters to indicate the name of the variable under study. |
opt.plot |
Logical option to indicate if a graphical description of the index number along the different stages is required. It takes the value |
opt.summary |
Logical option to indicate if a statistical summary of the index number is required. It takes the value |
Value
Summary |
Statistical summary (optional) of the index number along the considered period. |
Agg. index number |
Table containing the values of the index number for the considered stages and the aggregate value. |
Graphical |
Graphical summary (optional) of the index number along the considered period. |
Author(s)
A. Saavedra-Nieves, P. Saavedra-Nieves
References
CPI Manual (2004). Consumer Price Index Manual: Theory and Practice. OECD, UN, Eurostat, and TheWorld Bank by ILO, Geneva.
Index Number (2008). In: The Concise Encyclopedia of Statistics. Springer, New York, NY. <doi:https://doi.org/10.1007/978-0-387-32833-1>
Examples
prices<-matrix(c(70,75,77,77,85,90,85,75,77,87,85,90,70,75,77,77,85,90),ncol=3)
aggregated.index.number(prices,"chain","geometric","Price",opt.plot=TRUE,opt.summary=TRUE)