Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Trouble using - estimates store-


From   Federico Belotti <[email protected]>
To   [email protected]
Subject   Re: st: Trouble using - estimates store-
Date   Sun, 19 May 2013 18:22:38 +0200

Try to store the command name, that is include in your ado file

ereturn local cmd "thenameofyouradofile"

this should be enough to ensure that -estimates store- works.

HTH,
Federico

On May 19, 2013, at 12:01 AM, Benjamin Villena wrote:

> Dear Statalist members,
> 
> I wrote an ado file that does the following:
> (1) It transforms variables in a particular way, say compute X1=G(X) where X is the original variable
> (2) It estimates a model using a user-written package (cmp) with the transformed variables X1
> The code works fine. It stores coefficients and variance matrix into e(b) and e(V)... ereturn list shows the estimated values are preserved. But if I try -estimates store equation1- I get the following error
> 
> last estimation results not found, nothing to store
> r(301)
> 
> I do not get it, how does Stata recognize there are estimates in memory? I believed that having e(b) and e(V) would be enough, but apparently is not. What am I missing here?
> 
> Thanks
> 
> Benjamin 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

-- 
Federico Belotti, PhD
Research Fellow
Centre for Economics and International Studies
University of Rome Tor Vergata
tel/fax: +39 06 7259 5627
e-mail: [email protected]
web: http://www.econometrics.it


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index