CESData: Generate data assuming CES preferences

View source: R/CESData.R

CESDataR Documentation

Generate data assuming CES preferences

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

CESData(sigma)

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

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

## End(Not run)

IndexNumR documentation built on Nov. 11, 2023, 1:07 a.m.