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
intraclass correlation error messageI am trying to calculate intraclass correlation using a two way random effects model for a test reteโฆ
Discrete choice labour supply: lslogitI use the user-written Stata package lslogit (available at https://github.com/mloeffler/lslogit) to โฆ
New variable with mrtabHello, I have created a table of multiple-choice questions and I want to generate a variable of a siโฆ
entropyHi. I have a dataset which shows the share of low, high and middle educated in each neighborhood. noโฆ
Calculating standard errors using margins after npregressDear Statalist, I'm examining the relationship between the number of common stocks in a portfolio (โฆ
Subscribe to:
Post Comments (Atom)
0 Response to capture the trend in variable construction
Post a Comment