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
Random slopes for categorical variable (3 groups)Dear Stata experts, I'm trying to fit a random slope model for longitudinal dataset. My dependent v…
Error when estimating dsge modelHello everyone, Can someone help me to handle this problem please, "The process is saddle-path stabl…
Problem with Fixed effects in Cross Sectional Data RegressionDear STATALIST participants, I am writing to you to ask about fixed effects in cross-sectional data…
Adding test statistic to a table for a first stage IV using esttab and ivreg2Hi, I am trying to get a table of my first stage using ivreg2 and esttab. I would like to add the o…
comparing the logit marginal effects to LPN coefficientDear Stata users, I am using a logit model to calculate the average marginal effect (AME) of my inde…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating Standard Deviation with Rangestat
Post a Comment