Skip to content
Prev 32689 / 398526 Next

bootstrapping data.frame and matrix

The help page for `bootstrap' says that to bootstrap more complex 
statistics (it gives an example for the correlation), you need to 
bootstrap the (row) indices of the data frame and not the data frame 
itself.  By the way, you appear to have the order of the arguments to 
bootstrap() incorrect but I guess this is a typo?

In general, I would suggest using the `boot' package from CRAN (along 
with the Davison & Hinckley book) instead of the `bootstrap' package. 
`boot' can work neatly on more general data structures and also uses the 
trick of bootstrapping the indices of the data rather than the data 
themselves.

Also, it appears you are using an old version of R because the the "_" 
operator is deprecated in the current version (1.7.0).

-roger
cp133 wrote: