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: Calculating Moving Averages with Missing Values
From
<[email protected]>
To
<[email protected]>
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/