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

st: -cycleplot- updated on SSC


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: -cycleplot- updated on SSC
Date   Wed, 31 Aug 2005 13:33:37 +0100

Thanks to Kit Baum, the -cycleplot- package 
has been updated on SSC. This requires Stata 8
at least. 

-cycleplot- is for showing time series data
with seasonal structure, typically when reporting 
is monthly or quarterly. The conventional graph 
naturally shows January 2004 next to February 2004, 
but a reordering such that January 2004 is next 
to January 2005, and more generally such that 
all the Januaries, Februaries, ..., Decembers 
are plotted in batches can be useful for looking 
at seasonality. What is true for months can be
true of quarters or other coarse subdivisions. 

With variables 

response month year 

you can get there in a single line of official Stata 

twoway line response year, by(month, row(1)) 

and the purpose of -cycleplot- is just to add 
some bells and whistles to, and to remove some 
awkward details from, that one-liner. 

The update adds an option -mylabels()- to ease 
labelling of the time (really time of year) axis 
in -cycleplot-. A question from Aurelio Tobias 
stimulated this: thanks to him for the question and 
for feedback on an initial implementation (meaning, 
he tripped over a silly bug of mine). 

For users of Stata 6 and Stata 7 the predecessor 
of -cycleplot- remains on SSC as -sssplot-. 

Nick 
n.j.cox@durham.ac.uk 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index