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
Data in Stata format for Card & KruegerDoes anyone know where i can get the data of the famous Card& Krueger, 1994. AER paper on minimu…
Transforming survey results to numerical codes appropiately (Encoding help)Stata and Stata Forum Beginner here. Situation: Using Limesurvey data for a health-related QOL stud…
meta regression missing dataHi everybody, I have to do a meta-analysis. The aim of this meta-analysis (37 studies) is THE preva…
Coefplot with note() optionDear Ladies and Gentlemen, I would like to have a longer note comment under my graphs stretching ov…
Create Dataset in Stata using a LoopI'm having trouble finding guidance on this. I want to create a dataset that has a variable called "…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Generating Variable dependant on period
Post a Comment