Hi Guys:
i am new here.
I have a dataset that records two states and if they had militarized disputes in a certain year. so what i want to do is to calculate up till a single year, how many militarized disputes they have had in the previous ten years (including this year).
I find this thread: https://www.statalist.org/forums/for...year-intervals. However, the rangestat command gives somewhat weird result. here is my command: rangestat (sum) y, interval(year 0 10) by(id). and attach my weird result. if anyone could tell me what's going wrong or how to fix it, i would appreciate it greatly!
Array
Related Posts with how to calculate cumulative observation for a certain time interval, like 10 years?
Oaxaca Blinder Decomposition InsignificantHello, I have the results of oaxaca blinder decomposition like this. Code: Blinder-Oaxaca decomposi…
Using Interaction terms of independent variables and estimated values in fixed-effects regression using xtregGood evening, I am trying to estimate a fixed-effects model using xtreg command in stata 17.0. My …
Merge security daily data and fundamental anualDear Statalist members, I am using a dataset from the WRDS database. I have annual data for my firm …
Making foreach go through multiple variables but stops when one criteria is metHi, I am trying to program a code that goes through variables pr1-25 (procedure codes) to create a n…
Variable already Defined in a loopGoodmorning everyone, as reported by the title, when I start my code I get this "Variable already De…
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate cumulative observation for a certain time interval, like 10 years?
Post a Comment