aggregated.index.number: Calculate an aggregate index number

Description Usage Arguments Value Author(s) References Examples

View source: R/aggregated.index.number.R

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

1
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 nrow(x) values of a magnitud for ncol(x) products.

base

Chain of characters that indicates the nature of the index number. If we introduce base="serie", we compare each value with respect to the initial one. In this case, it is said to be an index number in serie. Otherwise, if we introduce base="chain", we obtain the index number in chain, by comparing each value with the immediately previous value.

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 base="serie", if we introduce type="arithmetic", we obtain the Sauerbeck index number. If we introduce type="geometric", we obtain the Geometric index. If we choose type="harmonic", we obtain the Harmonic mean index. If we write type="BDutot", we will obtain the Bradstreet-Dutot index.

Otherwise, if we take base="chain" and type="Carli", we obtain the Carli index number. If we introduce type="Jevons", we obtain the Jevons index and if we choose type="Dutot", we obtain the Dutot index.

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 TRUE or FALSE.

opt.summary

Logical option to indicate if a statistical summary of the index number is required. It takes the value TRUE or FALSE.

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

1
2
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)

Example output

 

Aggregate index number

Geometric

 

Summary

Min.=100.428334742747

Stage=1

Max.=105.986859737908

Stage=4

$Summary
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
  100.4   102.7   104.2   103.8   105.9   106.0 

$`Agg. index number`
  Stages Price 1 Price 2 Price 3 Agg. index number
1      0      70      85      70          100.0000
2      1      75      75      75          100.4283
3      2      77      77      77          102.6667
4      3      77      87      77          104.1541
5      4      85      85      85          105.9869
6      5      90      90      90          105.8824

IndexNumber documentation built on March 15, 2021, 5:08 p.m.