Statalist The Stata Listserver


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

st: Recovery of name of dependent variable after estimation


From   "Schaffer, Mark E" <M.E.Schaffer@hw.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Recovery of name of dependent variable after estimation
Date   Wed, 11 Oct 2006 13:49:35 +0100

Hi everybody.  I'm writing a routine that needs the name of the
dependent variable used in the preceding estimation.

Unfortunately, the command, -ivprobit-, doesn't save the name in the
macro e(depvar) when it is called with the -twostep- option.  FYI, the
version I am using is

C:\Stata9\ado\updates\i\ivprobit.ado
*! version 1.1.8  14jul2006

The name of the dependent variable is stored in Stata somewhere, because
-estimates display- can get at it and it appears in the output of
-ivprobit-.  But I can't work out how my code can get at it.

Any ideas?

Cheers,
Mark

Prof. Mark Schaffer
Director, CERT
Department of Economics
School of Management & Languages
Heriot-Watt University, Edinburgh EH14 4AS
tel +44-131-451-3494 / fax +44-131-451-3296
email: m.e.schaffer@hw.ac.uk
web: http://www.sml.hw.ac.uk/ecomes

*
*   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