I would like to graph a percentage over unequal intervals in tsset data
and have the xlabels be (1) quarterly and (2) only for the actual points
where I have data. The data are
. list date pct
+----------------------+
| date pct |
|----------------------|
1. | 01sep1992 47.72202 |
2. | 01feb1993 42.63358 |
3. | 01jul1993 . |
4. | 01nov1993 . |
5. | 01dec1994 52.20667 |
|----------------------|
6. | 01oct1995 54.14469 |
7. | 01oct1996 53.6959 |
8. | 01nov1998 52.43304 |
9. | 01oct2000 51.35333 |
10. | 01oct2001 46.25935 |
|----------------------|
11. | 01oct2002 44.9297 |
12. | 01oct2003 41.97494 |
+----------------------+
The following gives me the default labels which do not mark the
observations:
tsset date
tsline pct
twoway (tsline pct) (scatter pct date, ms(Oh))
Michael Mitchell's fine book suggests adding tlabel()
. twoway (tsline pct) (scatter pct date, ms(Oh)), tlabel(01sep1992
01oct2003)
invalid ticklist, 01sep1992 must be number
invalid syntax
invalid syntax
r(198);
and the result is the same if tlabel is only used with tsline. If I had my
way the labels would be 1992Q4 ... 2004Q4.
Thanks!
Caleb
[email protected]
University of Oregon Sociology
*
* 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/