Statalist


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

st: RE: Moving averages in panel data


From   Darian Woods <Darian.Woods@motu.org.nz>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Moving averages in panel data
Date   Tue, 22 Dec 2009 12:26:31 +1300

Thanks. Although 'tssmooth ma' doesn't seem to work because my data is not time-series data. In fact, it's not even panel data. It's product by country by year. So each year in each country has multiple observations due to the different products. That means that 'tsset year' or 'tsset year country' doesn't work, which makes tssmooth not work either.
Help with either moving averages or tips on working with this two-cross-sections-and-time data would be appreciated (without reshaping).

Cheers,

Darian

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss
Sent: Tuesday, 22 December 2009 12:05 p.m.
To: statalist@hsphsun2.harvard.edu
Subject: st: Moving averages in panel data


<>

*******
help tssmooth ma
*******

http://www.stata.com/statalist/archive/2009-08/msg00853.html


HTH
Martin


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Darian Woods
Sent: Dienstag, 22. Dezember 2009 00:04
To: statalist@hsphsun2.harvard.edu
Subject: st: Moving averages in panel data

Hi,

Is there an intrinsic function to generate a 5-year moving-average variable in Stata 10?

Thanks,

Darian

*
*   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/


*
*   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/

*
*   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   |   What's new   |   Site index