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

st: RE:tsgraph


From   Rita Luk <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE:tsgraph
Date   Fri, 20 Jun 2003 13:41:40 -0400

Hi Nick,

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?

Thanks for your help.

Rita Luk

----------------
Rita Luk

> I am a frequent user of the command TSGRAPH provided by
> professor Cox.
> However, I have problem implementing it even after type
> version 7 (I am
> using version 8).
>
> I tsset my data, type tsgraph X if tsmth>m(1999m12), Stata returns
> 'm(2000.0m1) invalid'. What is the problem ?
> If there any chance that Professor Cox will update the
> command to Stata 8.

-tsgraph- was written by Kit Baum (he's a Professor) and
myself (I'm not).

The version of -tsgraph- on SSC is 1.3.2 for Stata 7.

With this version, I can't reproduce Rita's problem. I
did this:

clear
set obs 120
gen time = 440 + _n
format time %tm
tsset t, monthly
gen y = uniform()
tsgraph y
tsgraph y if t > m(1999m12)

and it all worked OK for me.

Looking in my files I find a -tsgraph- for 8.0 dated 27 Feb 2003.
I seem to have stopped there. I was under the impression
that -tsgraph-
was not at all a big deal in Stata 8. The main thing it retains
is some logic to get more sensible time labels with Stata dates.

Kit may have some thoughts on whether it is worth polishing up the
port to 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