Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: error message about bootstrp


From   Wu Zhang <wuzhang50@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: error message about bootstrp
Date   Sun, 3 Mar 2013 16:40:39 -0800 (PST)

Hi folks,

  I did  a very simple bootstrap and get the following error:

time-series operators are not allowed with bootstrap without panels, see tsset
r(198);


The BS code is as follows:

cap program drop apese
program apese, rclass
version 12.0
capture drop   xalphat ehat 
reg y  x1 x2 x3
return scalar alphaj=_b[x3]
predict xalphat
predict ehat, residual
gen sdhat=exp(xalphat+ehat)/(1+exp(xalphat+ehat))^2
sum sdhat
return scalar ape=r(mean)
scalar apej=alphaj*ape
end


The running code is:  bootstrap apej=r(apej): do apese_bs.do


Thanks a lot!

Wu 


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index