Statalist The Stata Listserver


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

Re: st: Recovery of name of dependent variable after estimation


From   "Brian P. Poi" <[email protected]>
To   [email protected]
Subject   Re: st: Recovery of name of dependent variable after estimation
Date   Wed, 11 Oct 2006 09:24:44 -0500 (CDT)

On Wed, 11 Oct 2006, Schaffer, Mark E wrote:

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

This is a bug in -ivprobit- that will be fixed in the next adofile update. e(depvar) should be set regardless of whether the "twostep" option was specified.

-- Brian Poi
-- [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