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

st: xline macro or scalars


From   Buzz Burhans <wsb2@cornell.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: xline macro or scalars
Date   Tue, 23 Sep 2003 14:14:11 -0400

Hi all,

I'm having trouble accomplishing the following:

In a dataset with multiple panels that is tsset, and I have three event variables containing integers in the same scale as the time variable (days); for any given panel either 1, 2 or all 3 of these variables may be missing. I have programmed a routine whereby I repeatedly generate xtline graphs to inspect these panels values, and would like to use the 1,2, or 3 values ( if not missing) in the three event variables as xline() values in those xtline graphs. I have been trying to get the three values into a macro which I could use inside the xline option, but have been unsuccessful. Can anyone suggest how to capture three values of three variables in a single macro? Or, alternatively, another way to get the xtline values I need in a manner that can be automated to reflect the unique values for each panel?

Thanks

Buzz Burhans


*
* 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–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index