I would like to write the code to construct the following variable.
Cost stickiness it = ๐๐๐(ฮCost / ฮ๐๐๐๐)๐,๐1โ๐๐๐(ฮCos t / ฮ๐๐๐๐)๐,๐2
๐1,๐2 โ {๐กโ1,โฆ,๐กโ5} where ๐1 is the most recent of the last five years with an increase in sales and ๐2 is the most recent of the last five years with a decrease in sales;
Does anyone know how to write this code?
Thank you in advance!!
Related Posts with capture the trend in variable construction
Question On Extracting Value Label and assign them as the column name of coefficient matrixHi, My question is about row names in matrix. Below are my code and its output. Code: version โฆ
Clustering under few treated clustersSome general advice sought from the Stata community. Say I'm doing a Difference in Differences exerโฆ
World Health Organisation Cardio vasulcar risk chartWe are conducting research that involves thousands of population Data from country wide survey, the โฆ
Read yaml fileDoes anyone know of a way to read a .yaml file in Stata? Thank you! โฆ
Assumptions linear regressionsHi everyone, I was wondering what assumptions should absolutely been tested before doing a linear rโฆ
Subscribe to:
Post Comments (Atom)
0 Response to capture the trend in variable construction
Post a Comment