March 2018
Beginner to intermediate
570 pages
13h 42m
English
One of the beautiful things about the bootstrap technique is that it can be performed easily using only the level of R programming that we reached by the conclusion of Chapter 1, RefresheR however, there is, and as you might imagine, a more automated way of doing this in R. We will be using the boot package for this, so make sure you install it:
btobj <- boot(our.sample, function(x, i){mean(x[i])}, 10000, parallel="multicore", ncpus=3)
That looks simple enough, but let's take a closer look at this code: