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?
Estimating adjusted mean difference by treatment group, following -regress-I am looking to calculate the adjusted mean difference in heart rate by treatment groups (alloc) - t…
How to remove last 3 digits from a numerical variable in STATAHello Everyone! I have a variable HHPBASE, from which I need to chop off last 3 digits, How do I do …
How do I check goodness of fit when using "xtmlogit"?Hello, I'm trying to use "xtmlogit", a newly introduced command in stata17. How do I check the goodn…
Absent confidence intervals when using twoway lfitciHello, I'm generating some graphs for data illustration purposes. As a brief background, the projec…
Predicting values using Simple Linear Regression on Categorical DataHi everyone, I have student scores for two test components (Component1 & Component2) from 485 s…
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate cumulative observation for a certain time interval, like 10 years?
Post a Comment