Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Monthly format, by() option


From   Israel Arroyo <hypmod@hotmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Monthly format, by() option
Date   Tue, 28 May 2013 11:25:26 +0200

Thanks, Nick. That worked like a charm.



El 28/05/2013, a las 11:07, "Nick Cox" <njcoxstata@gmail.com> escribió:

> One way to do it
> 
> . gen Month = string(month, "%tm")
> 
> . histogram foo, by(Month)
> 
> Nick
> njcoxstata@gmail.com
> 
> 
> On 28 May 2013 09:54, Israel Arroyo <hypmod@hotmail.com> wrote:
> 
>> I've drawn a histogram with the by(t) option where t is a monthly date. The title of every subchart is the integer corresponding to the t series and I don't know how to change their format to %tm
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index