imputeQuantities: Impute quantities when only prices are available

Description Usage Arguments

View source: R/imputation.R

Description

This procedure calculates quantities in such a way that the expenditure shares on all products are equal in each period. It is used to compute quantities for the predicted share measure of relative price dissimilarity when there are none available.

Usage

1
imputeQuantities(x, pvar, pervar, prodID)

Arguments

x

A dataframe containing price, quantity, a time period identifier and a product identifier. It must have column names.

pvar

A character string for the name of the price 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


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