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 on April 23, and its replacement, 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 <>
To   "" <>
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

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

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

Thanks a lot!


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index