This function is useful for generating datasets that can be used for testing where the 'true' price index is known. The data are constructed using assumed prices and total expenditure in each period. Expenditure shares and quantities are then computed assuming CES preferences. For further details, see the references.
the elasticity of substitution parameter
a dataframe containing time period, prices, quantities and product identifier.
W.E. Diewert and K.J. Fox (2017), "Substitution Bias in Multilateral Methods for CPI Construction Using Scanner Data", Discussion Paper 17-02, Vancouver School of Economics, The University of British Columbia.
1 2 3 4 5
## Not run: # generate data assuming the elasticity of substitution is 2 CESData(2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.