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 plot of linear time trend normalized to zero and one at the beginning and end of the sampleDear fellow stata users, After conducting a cross-sectional regression on the panel data, I collect…
If qualifier for n variables equal to zeroDear Stata community, dear Nick I am looking for a command which allows me to create an if-statement…
Panel Data - Which model to use? Fama macbeth or panel data another modelHello, I am currently writing my thesis in Finance. I want to compare the difference in Turnover ra…
question on matchingHello, I have a "CEO" variable for firms on panel data and the CEO names are not inputted the same …
tabm and percentagesHello, This is a question that has come up after my last couple posts on the Statalist and is now a…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Generating Variable dependant on period
Post a Comment