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
Calculation of frequency and ratiosHi Everyone, Bellow in the -dataex- example, I have a zipcode, date (month_year) and name of an ins…
Obtaining relative excess risk due to interaction (RERI) with weighted dataHi all, I am familiar with using the ic command in STATA to obtain RERI. However, I need to obtain …
Using r() with recodeI am trying to recode a variable using the values from the return list but from the error message I …
Problem with predicting survival probabilities from stpm2 model with TVC in external dataI have built a prognostic model using stpm2 which includes a tvc (all covariates in model are center…
Creating variable out of conditional values in another one (GDELT)Hello everyone. Let me first describe my data and purpose of analysis for the sake of context. I hav…
Subscribe to:
Post Comments (Atom)
0 Response to difference in combinations
Post a Comment