Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Time labels


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: Time labels
Date   Wed, 2 May 2007 16:49:52 -0400

Something like this, perhaps?

sysuse sp500, clear
keep in 1/45
su date
local min: di %tm mofd(r(min))
local max: di %tm mofd(r(max))
tw rarea hi lo d , ti(`min' to `max')


On 5/2/07, Ferry, Danielle (Exchange) <[email protected]> wrote:
Dear statalisters,
Is it possible to access the label associated w/ a time variable
formatted %tm? More specifically, I am generating a series of graphs
that use the most recent set of data (time period varies depending on
which variables I use), and I want to be able to display on the graph
the label that specifies which time the data refers to (i.e., "2007m2"
rather than "265").
Many thanks.

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