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: error message about bootstrp


From   Wu Zhang <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index