Hi all
I have a panel data set that lists the number of sales made by various companies across monthly time periods, from Q3 2007 to Q2 2014. The data set is unbalanced: not all companies have made sales in every time period.
The variables are respectively labelled Sales, Company and Quarter, and I have declared the data set as panel data using the command xtset Company Quarter.
I'm trying to create a variable (Company_experience) that depreciates the cumulative number of sales each company has made since the start of the data set, at a rate of 20% per quarter. I'd like to calculate the values of this variable for every quarterly time period.
Formally, Company_experience for company i in quarter t is given by:

Whereуi,τ is the number of sales made by company i within time period τ, and δ is the depreciation rate.
Does anyone know how this can be done?
Many thanks
Toby
I have a panel data set that lists the number of sales made by various companies across monthly time periods, from Q3 2007 to Q2 2014. The data set is unbalanced: not all companies have made sales in every time period.
The variables are respectively labelled Sales, Company and Quarter, and I have declared the data set as panel data using the command xtset Company Quarter.
I'm trying to create a variable (Company_experience) that depreciates the cumulative number of sales each company has made since the start of the data set, at a rate of 20% per quarter. I'd like to calculate the values of this variable for every quarterly time period.
Formally, Company_experience for company i in quarter t is given by:
Whereуi,τ is the number of sales made by company i within time period τ, and δ is the depreciation rate.
Does anyone know how this can be done?
Many thanks
Toby
Comment