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
Creating a three way graph with an unbalanced panelHi there, I am trying to create a graph that looks at a total firm value (y-axis), year (x-axis), w…
Mixed effects repeated measures model - not all variables measured at each time point.Hi everyone, hope you're all well. First post - so please let me know if I have missed anything fro…
Shorten x axisHi everybody. Apologies for any newbie mistakes in my post, I'm new both to Stata and this forum. I…
foreach loopHello there, I have two variables, income of individuals from year 1968 to 2017 and their ages for t…
New version of parmest on SSCThanks once again to Kit Baum, new version of the parmest package (superseding last week's version) …
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Generating Variable dependant on period
Post a Comment