Statalist The Stata Listserver


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

Re: st: time series graph xlab/tlab


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: time series graph xlab/tlab
Date   Sat, 11 Feb 2006 14:23:57 -0500

Ignoring the rest of the problem, look at what a nice informative
error message you got--why are you specifying the dates in the
tlabel() option as strings, rather than numbers?  You can get the
corresponding numbers easily enough:
. di mdy(9,1,1992)
11932

or you can figure them out on the fly:
. twoway (tsline pct) (scatter pct date, ms(Oh)), tlabel(`=mdy(9,1,1992)',`etc')

and you can figure out the whole set of dates you actually have with
the -levels- or -levelsof- command, and include the values.
. levelsof date, local(alldates)
. twoway (tsline pct) (scatter pct date, ms(Oh)), tlabel(`alldates')

On 2/11/06, Caleb Southworth <[email protected]> wrote:

> . twoway (tsline pct) (scatter pct date, ms(Oh)), tlabel(01sep1992
> 01oct2003)
> invalid ticklist, 01sep1992 must be number
> invalid syntax
> invalid syntax
> r(198);

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