fisher.index.number: Calculate the Fisher index number

Description Usage Arguments Value Author(s) References Examples

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

Description

This function determines the Fisher index number for those cases in which there exist more than an only product.

Usage

1
fisher.index.number(x, y, 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.

y

It is a matrix containing that magnitude used as weight. In each column, it contains another magnitud of the different products along the time. Thus, we have nrow(x) values of a magnitud for ncol(x) products.

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.

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

Fisher, I. (1922) The making of index numbers: a study of their varieties, tests, and reliability, volume 1. Houghton Mifflin.

Lapedes, Daniel N. (1978) Dictionary of Physics and Mathematics. McGrow–Hill. p. 367. ISBN 0-07-045480-9.

Examples

1
2
3
prices<-matrix(c(70,75,77,77,85,90,85,75,77,87,85,90,70,75,77,77,85,90),ncol=3)
weights<-matrix(c(1,1.5,0.8,1.1,1,0.9,0.7,0.8,0.6,1,1.1,0.9,1,1,0.9,1.1,0.6,0.8),ncol=3)
fisher.index.number(prices,weights,name="Price",opt.plot=TRUE,opt.summary=TRUE)

Example output

 

Laspeyres index number

 

 

Paasche index number

 

 

Fisher index number

 

Summary

Min.=101.677656663899

Stage=1

Max.=120.744187829805

Stage=5

$Summary
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
  101.7   104.2   107.5   109.5   113.3   120.7 

$`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          101.6777
3      2      77      77      77          104.1935
4      3      77      87      77          107.4996
5      4      85      85      85          113.3458
6      5      90      90      90          120.7442

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