I am trying to create mean value excluding current observation, however, rangestat generate missing values. What is incorrect in my command
clear
input float(mofd x1)
-9312 .7068015 .
-9311 .08698988 .
-9310 .023200603 .
-9309 .29240757 .
-9308 .7488267 .
-9307 .06730355 .
-9306 .88472 .
-9305 .5991507 .
-9304 .8053482 .
-9303 .8577727 .
end
rangestat x1, interval(mofd 0 0) excludeself
clear
input float(mofd x1)
-9312 .7068015 .
-9311 .08698988 .
-9310 .023200603 .
-9309 .29240757 .
-9308 .7488267 .
-9307 .06730355 .
-9306 .88472 .
-9305 .5991507 .
-9304 .8053482 .
-9303 .8577727 .
end
rangestat x1, interval(mofd 0 0) excludeself
Comment