View source: R/f_bilateral_indicators.R
bennet | R Documentation |
This function returns the Bennet price and quantity indicators and optionally also the price and quantity contributions of individual products.
bennet(
data,
start,
end,
interval = FALSE,
matched = FALSE,
contributions = FALSE,
prec = 2
)
data |
The user's data frame with information about sold products. It must contain columns: |
start |
The base period (as character) limited to the year and month, e.g. "2020-03". |
end |
The research period (as character) limited to the year and month, e.g. "2020-04". |
interval |
A logical parameter indicating whether calculations are to be made for the whole time interval (TRUE) or no (FALSE). |
matched |
A logical parameter indicating whether the matched sample approach is to be used (if yes, the parameter has the value TRUE). |
contributions |
A logical parameter indicating whether contributions of individual products are to be displayed. If it is |
prec |
A numeric vector indicating precision, i.e. the number of decimal places for presenting results. |
This function returns the Bennet price and quantity indicators and optionally also the price and quantity contributions of individual products.
Bennet, T. L. (1920). The Theory of Measurement of Changes in Cost of Living. Journal of the Royal Statistical Society, 83, 455-462.
BiaĆek, J. (2024). The use of the Bennet indicators and their transitive versions for scanner data analysis. Statistics in Transition new series, 25(3), 155-173.
bennet(milk, "2018-12", "2019-12", matched=TRUE, contributions=TRUE)
bennet(coffee, start="2018-12", end="2019-03", interval=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.