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 on April 23, and its replacement, is already up and running.

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

Re: st: Monthly format, by() option

From   Nick Cox <>
To   "" <>
Subject   Re: st: Monthly format, by() option
Date   Tue, 28 May 2013 10:06:29 +0100

One way to do it

. gen Month = string(month, "%tm")

. histogram foo, by(Month)


On 28 May 2013 09:54, Israel Arroyo <> 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:

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