Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Bootstrapping panel data


From   "Wrede" <wrede@wiso.uni-koeln.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Bootstrapping panel data
Date   Sat, 21 May 2005 23:26:07 +0200

Hi statalisters,
I am using panel data, which are tsset. I am using some xt commands like
xtabond etc.
Now I want to bootstrap the sample and re-run the tests.

My problem: 
STATA complains that my data are not tsset.

My code is:
bootstrap "xtabond vardep varexp, robust" _b[ld.vardep] _b[d.varexp]
_b[_cons], trace reps(100) cluster(id)

The trace gives back:
...
local tmax = r(tmax)
capture local id "`r(panelvar)'"
=capture local id ""
if "`id'"=="" {
= if ""=="" {
di as err "must tsset data and specify panelvar"
must tsset data and specify panelvar

However, I did tsset my data again and again. Any suggestions?

Thanks in advance 
Niko

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index