Re: [R] "statistic" term in boot function

2010-09-24 Thread alfredo
Hi and thanks for your replies (I'm sorry to be a bit late..), I think I might be being a bit thick on this, but I truly would not be asking if I had not already gone through the manuals and examples in the web. I just want to be sure I got Jorge's example. the function is a generic functio

Re: [R] "statistic" term in boot function

2010-09-22 Thread David Winsemius
On Sep 22, 2010, at 12:24 PM, alfredo wrote: Hi There, Just a question regarding the function that is specified to boot (I have read the help, the manual and online examples.). The description of boot says that the second argument of "statistic" (non parametric bootstrap) must

Re: [R] "statistic" term in boot function

2010-09-22 Thread Jorge Ivan Velez
Hi Alfredo, Short answer is no. As en example, consider the following: # example require(boot) x <- c(4, 4, 4, 3, 2, 4, 4, 3, 6, 2) res <- boot(x, function(v, index) mean(v[index]), R = 1000) res str(res) More information can be found under ?boot (after loaging the boot package) as well a

[R] "statistic" term in boot function

2010-09-22 Thread alfredo
Hi There, Just a question regarding the function that is specified to boot (I have read the help, the manual and online examples.). The description of boot says that the second argument of "statistic" (non parametric bootstrap) must be a vector of indices, frequencies or weights which def