I have a problem with my panel data ( which is organised by month and municipality) were I want to take the difference between a pair of month from two different years, ex the observation for jan 2020 would be jan2020-jan2019 and the year before would imply jan2019-jan2018. This will be done for all month in my sample starting from May 2018 and going on to May 2020. I have played around with "egen" but don't really see how I can solve it. Any ideas how I could fix it?
Related Posts with Subtract over a particular pair of months
Group Variables by Percentile and RegressI am trying to group a set of x variables by 10th percentiles, and then I have 11 numbers for the pe…
Help ppmlHi, I have been trying to use the ppml command using Stata 15 but I always have the same error: --…
Handling weekly dataHello statalist members, with reference to my last post on https://www.statalist.org/forums/for...gr…
Overlaying survival curve graphs: Time to secondary infection then time to tertiary infectionhi i have survival data where we are looking at patients and time to secondary infection and the sub…
Identify specific words within String VariablesHello everyone! I'm working with data (string) that works with medical diagnoses. I have a variable…
Subscribe to:
Post Comments (Atom)
0 Response to Subtract over a particular pair of months
Post a Comment