index.number.chain {IndexNumber}R Documentation

Calculate an index number in chain

Description

This function determines index numbers “in chain” for those cases with an only product.

Usage

index.number.chain(x, name, opt.plot = FALSE, opt.summary = FALSE)

Arguments

x

It is a vector containing that magnitude to be studied for a product. Thus, we have length(x) values of it.

name

Chain of characters to indicate the name of the variable under study.

opt.plot

Logical option to indicate if a graphical descriptiony 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.

Index number

Table containing the values of the index number for the considered stages.

Graphical

Graphical summary (optional) of the index number along the considered period.

Author(s)

A. Saavedra-Nieves, P. Saavedra-Nieves

References

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<-c(70,75,77,77,85,90,85,75,77,87,85,90,70,75,77,77,85,90)
index.number.chain(prices,"Prices",opt.plot=TRUE,opt.summary=TRUE)

[Package IndexNumber version 1.3.2 Index]