year combination price
2015 1 0.5
2016 1 1
2015 2 2
2016 2 2.5
2015 3 1
2016 3 1.5
Hey guys, i need help creating a new variable in which i need to find the difference in price from 2015 to 2016 for each combination. for example, the first row of the new variable would be (0.5-1) . second would be (2-2.5) and so on..
would really appreciate some help on this
Related Posts with difference in combinations
system limit exceededOkay, so I have Stata version 16.0 and is running a firm-level innovation data of Zimbabwe. I have t…
R-sqaured in multilevel analysisHi! For multilevel analysis, do you recommend to use AIC instead of mltrsq (Snijders-Bosker R-Square…
Very high numbers when holding time fixed in regressionHi everyone, I am not sure if this is a coding question or not, but maybe I do something wrong when…
Using replace produces wrong resultDear all, I have this simplified dataset Code: * Example generated by -dataex-. To install: ssc in…
DateI am trying to generate a date in my work. I am only working with year intermissions between dates f…
Subscribe to:
Post Comments (Atom)
0 Response to difference in combinations
Post a Comment