R Programming/Bootstrap

Quick how-to

Do a boostrap of some data for some function (here, mean):

 b <- boot(data, function(data, id) { mean(data[id]) }, 1000)

Use this to compute a 90%-confidence interval:

 boot.ci(b, .9, type="norm")
↑Jump back a section
Last modified on 9 December 2012, at 20:30