A list with three elements: sigma (the average elasticity
over all time periods); allsigma (a T-1 by 1 matrix of the estimated
elasticities for each time period, except period one); and diff
(the value of the difference between the two indexes, check this is zero
for all time periods).
Arguments
x
A dataframe
pvar
A character string for the name of the price variable
qvar
A character string for the name of the quantity variable
pervar
A character string for the name of the time variable. This variable
must contain integers starting at period 1 and increasing in increments of 1 period.
There may be observations on multiple products for each time period.
prodID
A character string for the name of the product identifier
compIndex
The index number with which the CES index will be equated
to calculate the elasticity. Acceptable options are lloydmoulton, fisher
or satovartia. The lloydmoulton option equates the 'base period' lloyd-moulton
index with the 'current period' lloyd-moulton index.