Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: tslist (yet again!)


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: tslist (yet again!)
Date   Fri, 30 Jul 2004 11:12:02 -0400

I have incorporated various elements of Michael Hanson's posting of an improved tslist and made him a coauthor of the routine, as well as tested it. The solution he proposed for daily data did not work, for a strange reason: Stata counts weeks as starting on the day of Jan 1, rather than from Sun to Sat (or Mon to Sun). The revised version does that properly.

To test all sorts of frequencies without having the datasets, just use auto:

webuse auto,clear
tsmktim t, start(1999w3)
tslist price mpg

tsmktim tt, start(1947h2)
tslist price mpg

tsmktim ttt, start(1jun2004)
tslist price mpg


The latest version of tslist is available via ssc install tslist, replace.

Kit

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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