productChanges: Product ID's for appearing/disappearing products
Description
This function will give the product ID's of products that appear
or disappear in each period.
Usage
productChanges(x, pervar, prodID)
Value
a list containing one element for each time period, each element of
which contains two vectors (one for appearing products, and one for disappearing products)
Arguments
x
A dataframe containing price, quantity, a time period identifier
and a product identifier. It must have column names.
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