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
Creating new var w/ multiple values of another varHello, I have two variables, IS and Code. I would like IS to take on different values depending on wโฆ
multivariate analysis from a scoreDear friends, I am trying to analyze the effect of this three variables (ml, mms, mic) in the outcoโฆ
Problems combining multiple responses according to age ranges Hi everyone , I have difficulties to find the right command with conditions that make it possible tโฆ
Deleting the letter part of a string variable and keep only the numeric partHello you all, I`m very glad to be part of this forum that has already helped me a lot these recent โฆ
Time Fixed Effects with Interaction: What is the reference?Hi everyone, hope you having a great week. I'm having trouble reading the following xtreg output. Iโฆ
Subscribe to:
Post Comments (Atom)
0 Response to capture the trend in variable construction
Post a Comment