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 on April 23, and its replacement, 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   <>
To   <>
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

Please access the attached hyperlink for an important electronic communications disclaimer:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index