Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Re: rolling standard deviation [was: ""]


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   st: Re: rolling standard deviation [was: ""]
Date   Wed, 29 Jun 2011 13:42:54 +0200

On Wed, Jun 29, 2011 at 1:29 PM,  wrote:
> I'm having a hard time trying to calculate the standard deviation of the first difference of logarithms of daily exchange rates for the past 6 month (or 180 days).
>
> As I'm using a huge dataset with daily data, I have gaps (or missings, if I use the fillin command before).

Such gaps are often the result of the fact that the data is not
generated by a daily process, e.g. no data for weekends and holidays.
In that case the calender time is not the appropriate time axis when
doing your analysis. For solutions see: Christopher F. Baum (2007)
"Stata tip 40: Taking care of business" The Stata Journal, 7(1):
137--139. <http://www.stata-journal.com/article.html?article=dm0028>

For computing the standard deviation of the past six months I would
use -rolling-, see: -help rolling-.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index