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: Re: rolling standard deviation [was: ""]
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: Re: rolling standard deviation [was: ""]
Date
Wed, 29 Jun 2011 13:25:57 +0100
Stata 12 supports business calendars:
http://www.stata.com/stata12/business-calendars/
Nick
[email protected]
Maarten Buis
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-.
*
* 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/