Array
Above is a picture of a subset of my data. hs10 refers to a specific product being sold and m_val is a value the product takes on. What I need to do is generaet a variable that is the log difference of m_val for period 1 and 2. The problem however is that there are a number of products that don't have m_val for both periods. For those products, I want the generated value to simply be the log of m_val.
I am lost with where to start!
Related Posts with Trouble Generating Variable dependant on period
How to run marginal effect for multinomial probit in STATAMy dependent variable has four categories, including 1) working & studying; 2) working but not s…
random numbers to groups of random sizeHi Statalisters! I have the following problem. I have N individuals and I would like to assign to t…
HELP!! Interpreting logged dependant varaible, when its a ratio.Hi Guys, I apologise if this question is hard to read. I'm currently analysing a regression in whic…
How to detect sources of variations in coefficients obtained from a panel data regression?Is it possible to identify whether and how cross-sectional variation and/or time-series variation co…
Transforming VariablesHI! if i want to (using data from January 1971 to December 2020) transform the the month and year va…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Generating Variable dependant on period
Post a Comment