Skip to content
Prev 25480 / 398502 Next

boot and coefficients

Your error is based on a misunderstanding of what the 'statistic' should
look like for the boot() function.  The statistic needs to take the data
as an argument and a vector of indices -- it is the indicies which get
resampled.  

I wrote a very simple package for bootstrapping in a few classical
situations, including linear models.  You can resample rows and residuals.
It's available at http://department.stat.ucla.edu/~rpeng/uclaboot.  The
interface is (in my opinion, of course!) a little easier to use than the
boot library.  

-roger
_______________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu
http://www.stat.ucla.edu/~rpeng
On Wed, 20 Nov 2002, Andrew Beckerman wrote:

            
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._