CESData: Generate data assuming CES preferences

Description Usage Arguments Value References Examples

View source: R/CESData.R

Description

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.

Usage

1

Arguments

sigma

the elasticity of substitution parameter

Value

a dataframe containing time period, prices, quantities and product identifier.

References

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.

Examples

1
2
3
4
5
## Not run: 
# generate data assuming the elasticity of substitution is 2
CESData(2)

## End(Not run)

IndexNumR documentation built on Feb. 7, 2022, 5:09 p.m.