Here is an example of my sample:
Code:
input double date long _ID float country_pdsi 4.733856e+11 9 1.5002956 4.76064e+11 9 1.7449586 4.784832e+11 9 1.6589595 4.811616e+11 9 1.4847733 4.837536e+11 9 1.0025214 4.86432e+11 9 .8517559 4.89024e+11 9 .7509255 4.917024e+11 9 .7988663 format %tc date
Code:
xtset _ID date rangestat (mean) country_pdsi, interval(date -36 -1) by(_ID)
0 Response to Help with rangestat calculating moving average results in all missing values
Post a Comment