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
Create consecutive days with unequal number of obs per dayDear Stata folks, I have a dataset with patient_ids, days and a measurement(outcome). Patients may …
Calculating month between two datesDear All, May data set contains a variable named month1 for the first month and year1 for the first …
Modelling longitudinal dataHello members, pleaseRegression for follow-up studies i have a data on follow up study, data was col…
Modelling dose with multiple balancing score. Imbens (2000)Good day statlisters , please I am interested in applying propensity using modelling dose of treatme…
couting unique observation id sales profit year size_group a 36 9 1991 1 a 48 17 1992 1 a 25 7 1993 2 b 65 18 19…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Generating Variable dependant on period
Post a Comment