Statalist


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

st: How to identify different versions of the a program within other program


From   tiago.pereira@incor.usp.br
To   statalist@hsphsun2.harvard.edu
Subject   st: How to identify different versions of the a program within other program
Date   Fri, 21 Mar 2008 13:23:46 -0300 (BRT)

Thanks, Nick!

Brainy guys like you think faster than me!

Thanks again.


Tiago


-----------------------------------------
Well, flip it round then.

if e(tau2) == . local myresult $S_2
else local myresult = e(tau2)

The spirit is the same: If one result cannot be found, use the other.

Nick
n.j.cox@durham.ac.uk

tiago.pereira@incor.usp.br

Thank you, Nick.

Yes, my first guess was exactly that. Nevertheless, I forgot of
mentioning
that version 2 also has also a global called S_2, which, unfortunately,
provides different results.

----------------------------------------------
I don't think so. But you needn't check that way.

Your branch might as well be

if "$S_2" != "" local myresult $S_2
else local myresult = e(tau2)

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