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

st: histogramm and dates


From   "Grote, Veit Dr." <[email protected]>
To   <[email protected]>
Subject   st: histogramm and dates
Date   Thu, 7 Aug 2003 16:34:34 +0200

Hello all,
I have cases that were detetcted between the 1st May 1997 and the 19th June 2001 (d_onset). I like to have a histogram of the distribution of the number of cases by month, showing also the months with missing values, i.e. I like to have a true time scale. I could not find out how I could accomplish this. I tried (arbitrarily choosing 50 bins):

histogram d_onset, bin(50) frequency xlabel(#50, angle(vertical) format(%dmy))

This gives me an idea of the general distribution, but the bins are not months. If I create a new variable grouping all cases per month and year, I could have a bar graph with correct numbers per month, but time gaps would not show. How could I accomplish this? 
Thanks a lot
Veit Grote


----------------------------------------
Dr. Veit Grote, MSc
Klinikum der Universit�t M�nchen
Dr. v. Haunersches Kinderspital
Lindwurmstr. 4
D-80337 M�nchen
Tel.: +49 (89) 5160-7798
Fax: +49 (89) 5160-2951
[email protected]
----------------------------------------


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