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
How to create new variable with month and year since May, 2011 as n°1Dear Statalister, I'm trying to create a new variable derived from one date (DateACR_num) which inc…
Splines after Cox-modelDear Stata users, I am trying to draw splines using Stata after Cox-model as shown in the below fig…
How to deal with unbalanced panel data for Hedonic Price Method?I currently have a micro (5 years) panel data of house price transaction. There are a total of 800 d…
How to make a point estimate in a mixed model with continuous variablesDear Stata users, I have a mixed model (see the syntax below) with main effects of group (two dicho…
-egen, xtile- works in Stata 11, 12, 13, but generates an error message in Stata 15... Is this situation supposed to not occur?Good afternoon, The -egen, xtile- command/function from the egenmore package by Nick Cox is exhibit…
Subscribe to:
Post Comments (Atom)
0 Response to difference in combinations
Post a Comment