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, statalist.org is already up and running.


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

st: clustering in bootstrap


From   Marcella Nicolini <archivio.marcella@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: clustering in bootstrap
Date   Wed, 27 Apr 2011 18:07:20 +0200

Hello, I try to do a cluster in a bootstrap, but I get the following error:

"repeated time values within panel
the most likely cause for this error is misspecifying the cluster(),
idcluster(), or group() option
r(451);"

Hower, if I tsset my data as:

tsset panel_id booking_day
       panel variable:  panel_id (strongly balanced)
        time variable:  booking_day, 1 to 70, but with gaps
                delta:  1 unit

and I have no duplicates:

. duplicates list panel_id booking_day

Duplicates in terms of panel_id booking_day

(0 observations are duplicates)

How come that there are repeated time values with cluster(panel_id)??
How can I detect the problem in my data?
Thank you
Marcella
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index