[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: filters in stata

From   "Juliusz =?utf-8?B?SmFixYJlY2tp?=" <[email protected]>
To   [email protected]
Subject   st: filters in stata
Date   Tue, 04 Dec 2007 09:45:56 +0100

Hi everyone,
I was wondering if you could help me with constructing a moving-average type of filter in Stata. Say I have a time series X_t and I want to smooth it in the following way:
X_t(b)=[1-b/1+b]*[\sum(k=-inf/inf)b^|k|*X_(t+k)], 0<b<1
That is, X_t(b) is supposed to be a moving average with weights declining as we move away from the center (the idea is borrowed from Robert Lucas's paper "Two Illustrations of the Quantity Theory of Money"). How do I go about this problem?
* For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index