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

st: -cycleplot- updated on SSC

From   "Nick Cox" <>
To   <>
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-. 


*   For searches and help try:

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