Hey all,
I have the following problem. I would like to calculate rolling standard deviation of the past returns of the 36 months in a panel data.I tried using he following code:
rangestat (sd) ret, interval (datem -36 -2) by (permno)
However, when looking at the output that Stata has generated, I can see that the standard deviation is calculated even if the number of observations equals two.
I would like to ask for your recommendation how to indicate that I would like Stata to generate the standard deviation when the number of observations equals one.
Thank you in advance!
Nick Cox
Related Posts with Calculating Standard Deviation with Rangestat
Inverse hyperbolic sinc transformationHi, I have been suggested to use hyperbolic sine transformation instead of log(0+1) I have tried '…
Test endogenity of instrumentsGoodmorning everyone, I am trying to use the command esttab in the following way: ivreg2 l_vkt_IH …
Newey ErrorI am getting the following error when I run the newey command. My dates start from 22nd Jan all the …
First step regressionGood morning everyone, I have been asked to try to visualize a first step regression. Anyway, in or…
What is the T-Test in ARDL ECM used for?Hi, I am new to using STATA. For my Bachelors thesis I am analyzing the effect of income, own price…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating Standard Deviation with Rangestat
Post a Comment