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]

st: Last estimates not found error


From   Jaime Laird <[email protected]>
To   StataList LP <[email protected]>
Subject   st: Last estimates not found error
Date   Thu, 16 Feb 2012 00:56:17 -0600

Hello,

I am new to Stata but I have encountered a strange problem. Last night I ran the following commands:

by twodigit, sort : regress rd95 a95 mv95 q95 int95 lagrd95, vce(robust)
predict resremRD95, residuals
by twodigit, sort : regress rd96 a96 mv96 q96 int96 lagrd96, vce(robust)
predict resremRD96, residuals
by twodigit, sort : regress rd97 a97 mv97 q97 int97 lagrd97, vce(robust)
predict resremRD97, residuals
by twodigit, sort : regress rd98 a98 mv98 q98 int98 lagrd98, vce(robust)
predict resremRD98, residuals
by twodigit, sort : regress rd99 a99 mv99 q99 int99 lagrd99, vce(robust)
predict resremRD99, residuals
by twodigit, sort : regress rd2000 a2000 mv2000 q2000 int2000 lagrd2000, vce(robust)
predict resremRD2000, residuals
by twodigit, sort : regress rd2001 a2001 mv2001 q2001 int2001 lagrd2001, vce(robust)
predict resremRD2001, residuals
by twodigit, sort : regress rd2002 a2002 mv2002 q2002 int2002 lagrd2002, vce(robust)
predict resremRD2002, residuals
by twodigit, sort : regress rd2003 a2003 mv2003 q2003 int2003 lagrd2003, vce(robust)
predict resremRD2003, residuals
by twodigit, sort : regress rd2004 a2004 mv2004 q2004 int2004 lagrd2004, vce(robust)
predict resremRD2004, residuals
by twodigit, sort : regress rd2005 a2005 mv2005 q2005 int2005 lagrd2005, vce(robust)
predict resremRD2005, residuals
by twodigit, sort : regress rd2006 a2006 mv2006 q2006 int2006 lagrd2006, vce(robust)
predict resremRD2006, residuals
by twodigit, sort : regress rd2007 a2007 mv2007 q2007 int2007 lagrd2007, vce(robust)
predict resremRD2007, residuals
by twodigit, sort : regress rd2008 a2008 mv2008 q2008 int2008 lagrd2008, vce(robust)
predict resremRD2008, residuals
by twodigit, sort : regress rd2009 a2009 mv2009 q2009 int2009 lagrd2009, vce(robust)
predict resremRD2009, residuals


When Stata got to the last two (2008 and 2009) it kept returning the error "last estimates not found"
I went to bed and when I got up this morning there was an update for Stata available. I installed the update and then re-ran the code. All worked fine. I had the same sets of code for 4 different sets of residuals I was trying to create and all ran until the last one and it is now stuck on 2008 and 2009 like the above code was. Here is the code that is stuck now:

by twodigit, sort : regress gain95 a95 mv95 q95 int95 asales95 isales95, vce(robust)
predict resremGAIN95, residuals
by twodigit, sort : regress gain96 a96 mv96 q96 int96 asales96 isales96, vce(robust)
predict resremGAIN96, residuals
by twodigit, sort : regress gain97 a97 mv97 q97 int97 asales97 isales97, vce(robust)
predict resremGAIN97, residuals
by twodigit, sort : regress gain98 a98 mv98 q98 int98 asales98 isales98, vce(robust)
predict resremGAIN98, residuals
by twodigit, sort : regress gain99 a99 mv99 q99 int99 asales99 isales99, vce(robust)
predict resremGAIN99, residuals
by twodigit, sort : regress gain2000 a2000 mv2000 q2000 int2000 asales2000 isales2000, vce(robust)
predict resremGAIN2000, residuals
by twodigit, sort : regress gain2001 a2001 mv2001 q2001 int2001 asales2001 isales2001, vce(robust)
predict resremGAIN2001, residuals
by twodigit, sort : regress gain2002 a2002 mv2002 q2002 int2002 asales2002 isales2002, vce(robust)
predict resremGAIN2002, residuals
by twodigit, sort : regress gain2003 a2003 mv2003 q2003 int2003 asales2003 isales2003, vce(robust)
predict resremGAIN2003, residuals
by twodigit, sort : regress gain2004 a2004 mv2004 q2004 int2004 asales2004 isales2004, vce(robust)
predict resremGAIN2004, residuals
by twodigit, sort : regress gain2005 a2005 mv2005 q2005 int2005 asales2005 isales2005, vce(robust)
predict resremGAIN2005, residuals
by twodigit, sort : regress gain2006 a2006 mv2006 q2006 int2006 asales2006 isales2006, vce(robust)
predict resremGAIN2006, residuals
by twodigit, sort : regress gain2007 a2007 mv2007 q2007 int2007 asales2007 isales2007, vce(robust)
predict resremGAIN2007, residuals
by twodigit, sort : regress gain2008 a2008 mv2008 q2008 int2008 asales2008 isales2008, vce(robust)
predict resremGAIN2008, residuals
by twodigit, sort : regress gain2009 a2009 mv2009 q2009 int2009 asales2009 isales2009, vce(robust)
predict resremGAIN2009, residuals

I don't think the code or my data is the problem because I didn't change anything other than the update before getting the "rd" set to finish.
I have also ran the regression and am able to see the results in the command window but when I try to predict and get the residuals it gives the error. 
I am wondering if anyone else has had this problem or may know of a solution.
Any feedback is appreciated.

Thank you!

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


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