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?
Stop dofile if drop did not make changeDear Statalists, for error-checking in many replace commands, I have found it useful to use the pro…
Value ReplacementDear all, I am quite new with stata, and after a couple of days trying to fix a problem without any…
Origin Dest Airline DataMy airline data looks like this: input str3(origin dest) str41 unique_carrier_name int departures_p…
Quarterly GDP disaggregation to monthly levels - Gravity model estimationDear Forum, I am currently working on a gravity model to estimate the effects on trade of an exogen…
Wilcoxon test for (in)equality of mediansHello everyone, For my univariate analyses I am running a number one-sample t-tests. However, I woul…
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate cumulative observation for a certain time interval, like 10 years?
Post a Comment