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

st: RE: RE:tsgraph


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE:tsgraph
Date   Fri, 20 Jun 2003 18:57:46 +0100

Rita Luk
> 
> Reproduce your syntax, I do fine.
> However, when I type (with and without firstly typing version 7):
> 
> clear
> set obs 52
> gen time = 457 + _n
> format time %tm
> tsset t, monthly
> gen y = uniform()
> tsgraph y
> tsgraph y if t > m(1999m12)
> 
> for the last command, Stata returns: m(2000.0m1) invalid.
> if last command changed to: tsgraph y if t>m(2000m12), 
> Stata returns:
> m(2001.0m1) invalid. 
> if last command changed to: tsgraph y if t>m(2001m12), 
> Stata returns: too
> many macros
> 
> but I type: list y if t>m(1999m12), it works.
> 
> It seems my time variable does not feed into tsgraph right. 
>  Any suggestion?

OK; that's helpful. There's a bug when the algorithm 
is copying with a time span just a few years long. 
I'll add fixing this to the to do list for 
-tsgraph- for Stata 8. 

Nick 
[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