Statalist The Stata Listserver


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

Re: st: problems with the -ereturn repost- command


From   "Zurab Sajaia" <[email protected]>
To   <[email protected]>
Subject   Re: st: problems with the -ereturn repost- command
Date   Fri, 12 Jan 2007 17:22:34 -0500

Thanks alot, that seems to be the issue indeed.

although -glm- works fine, I'm afraid it doesn't solve my problem, I'm writing some 'pre'postestimation command, it does some modifications of the estimated b matrix and saves back to e(b) for any postestimation commands to follow afterwards. So it might mean that it won't work with -probit- and -logit- this way...



----- Original Message ----- From: "Maarten buis" <[email protected]>
To: <[email protected]>
Sent: Friday, January 12, 2007 3:35 PM
Subject: Re: st: problems with the -ereturn repost- command



--- Zurab Sajaia <[email protected]> wrote:
I'm getting the "last estimates not found" message after trying to
repost b matrix for probit, dprobit or logit (but it works fine for
regress) I failed to find the reason.
Here is my guess:
The help file for -ereturn- states that -ereturn repost- is only
"allowed only after estimation commands that posted their results using
ereturn post." This got me thinking. A lot of the work done by -probit-
and -logit- isn't done in ado files. So it might be that some of the
results aren't posted throuh -ereturn post-. This hunge is supported by
the fact that the program works if you use -glm- to estimate the same
models:

*---------- begin example ---------
capture program drop tt
program define tt, eclass
ereturn repost b=c
end

sysuse auto, clear
glm foreign weight mpg trunk, family(binomial) link(probit)
matrix b=e(b)
matrix c=b*2
tt
*---------- end example -------------

Hope this helps,
Maarten


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------



___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
*
* 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/

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