I have a question in rangestat
why do I always get the result that never calculates?
My mean is the result that is always the same with original
I want to compute MA5
rangestat (mean) v_debt v_roe v_Cdebt, interval(time -5 0) by(id time)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(time id v_debt v_roe v_Cdebt) double(v_debt_mean v_roe_mean v_Cdebt_mean) 19328 1 . . . . . . 19693 1 .18179545 . .9389104 .18179544806480408 . .9389104247093201 20058 1 .6492594 -.7089842 2.163649 .6492593884468079 -.7089841961860657 2.163649082183838 20423 1 .04369804 -.7517949 .008138238 .043698038905858994 -.7517948746681213 .008138238452374935 20606 1 .2233313 1.0564739 .3494784 .2233312875032425 1.0564738512039185 .34947842359542847 20789 1 .028437067 2.5170796 .04255668 .028437066823244095 2.5170795917510986 .042556677013635635 20971 1 .2298042 -.21633975 .353778 .22980420291423798 -.21633975207805634 .35377803444862366 21154 1 -.04178981 .818469 -.28660178 -.041789811104536057 .8184689879417419 -.2866017818450928 21336 1 .3777859 -.24989977 .7478976 .37778589129447937 -.24989977478981018 .7478975653648377 21428 1 .4533736 .3821486 .4520029 .45337361097335815 .3821485936641693 .4520029127597809 21519 1 -.326355 -.024748646 -.4122111 -.3263550102710724 -.02474864572286606 -.4122111201286316 21609 1 .7289726 -.7508591 .622786 .7289725542068481 -.7508590817451477 .6227859854698181 21701 1 .9563724 1.2806365 .8218676 .9563724398612976 1.2806365489959717 .8218675851821899 21793 1 .2532618 .04117237 .4774139 .2532618045806885 .041172366589307785 .47741392254829407 21884 1 -.4537844 .2989276 -.53304607 -.45378437638282776 .2989276051521301 -.5330460667610169 21975 1 -.02242019 -.8486412 -.063347004 -.022420192137360573 -.8486412167549133 -.06334700435400009 22067 1 -.07704715 .7840909 -.22435866 -.07704714685678482 .7840909361839294 -.2243586629629135 22159 1 .07434082 .20955414 .29531816 .0743408203125 .20955413579940796 .2953181564807892 22250 1 -.23197924 -.325961 -.26288265 -.23197923600673676 -.32596102356910706 -.26288264989852905 22340 1 -.03853066 -.8265625 -.02780134 -.038530658930540085 -.8265625238418579 -.02780134230852127 end format %dCY/N/D time
0 Response to rangestat question
Post a Comment