Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: Calculating Moving Averages with Missing Values


From   <J.M.Chwieroth@lse.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Calculating Moving Averages with Missing Values
Date   Tue, 30 Mar 2010 09:45:56 +0100

When I use the tssmooth function to create 2 or 5 year moving averages, Stata calculates these moving averages until the end of the time-series rather than stopping 1 year (in the case of the 2 year moving average) or 4 years (in the case of the 5 year moving average) before the end of the time-series? It thus counts forward missing values as zero.    Would you know a possible strategy to fix  this problem?

[Apologies for posting twice, the subject line for the original post did not properly identify the content of the post]
 
Thanks, Jeff

Jeffrey Chwieroth
Senior Lecturer in International Political Economy
Department of International Relations
London School of Economics
Houghton Street
London WC2A 2AE
United Kingdom
Tel: +44 (0) 20 7955 7209
Fax: +44 (0) 20 7955 7446
Website: http://personal.lse.ac.uk/chwierot/




Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/planningAndCorporatePolicy/legalandComplianceTeam/legal/disclaimer.htm

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index