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]

Re: st: Moving Standard Deviation


From   Nick Cox <njcoxstata@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Moving Standard Deviation
Date   Thu, 31 Oct 2013 13:28:04 +0000

would be happy with a citation, but my guess is that most reviewers
would regard a citation as unnecessary for something of this kind.
Your notation m perhaps implies that you are using the number of
values as a divisor. If so, you would need to correct the results from
-mvsumm-, which, as documented, uses -summarize-, which, as
documented, uses that number minus 1 as divisor.


Nick
njcoxstata@gmail.com


On 31 October 2013 13:05, Browne, Alan <A.P.Browne@warwick.ac.uk> wrote:
> Hello, I am currently trying to generate the moving standard deviation for a measure of volatility. I have used the mvsumm command, however, I am not sure how to cite that in the paper I am writing. I am trying to reproduce the following formula used in the literature.
>                    Vol= [1/m*(sum(lne_t+i-1 - lne_t+i-2)^2)]^1/2
>
> where lne is the log of the exchange rate. Any help with this issue would be hugely appreciated.

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


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