Description Usage Arguments Value Author(s) References Examples
View source: R/laspeyres.index.number.R
This function determines the Laspeyres index number for those cases in which there exist more than an only product.
1 | laspeyres.index.number(x, y, name, opt.plot = FALSE, opt.summary = FALSE)
|
x |
Matrix that contains the magnitude(s) under study. In each column, it contains the magnitude of a different product considered. Thus, we have |
y |
Matrix that contains that magnitude used as weight. In each column, it contains another magnitude associated to each different product along the time. Thus, we have |
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 |
opt.summary |
Logical option to indicate if a statistical summary of the index number is required. It takes the 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. |
A. Saavedra-Nieves, P. Saavedra-Nieves
Laspeyres, E. (1864) Hamburger Warenpreise 1850–1863 und die kalifornisch-australischen Geldentdeckung seit. Jahrb. Natl. Stat. 3, 81–118, 209–236.
Laspeyres, E. (1871) Die Berechnung einer mittleren Waarenpreissteigerung. Jahrb. Natl. Stat. 16, 296–314.
1 2 3 |
Laspeyres index number
Summary
Min.=101.503759398496
Stage=1
Max.=121.804511278195
Stage=5
$Summary
Min. 1st Qu. Median Mean 3rd Qu. Max.
101.5 104.2 107.7 110.1 115.0 121.8
$`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.5038
3 2 77 77 77 104.2105
4 3 77 87 77 107.7193
5 4 85 85 85 115.0376
6 5 90 90 90 121.8045
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.