Skip to contents

Simplified interface to boot package for basic statistics

Usage

Boot(data, statistic, R, ...)

Arguments

data

Data to bootstrap; can be a vector or something matrix-like

statistic

Statistic to be applied to data

R

Number of bootstrap replicates

...

Additional arguments to boot()

Examples

x <- rexp(100)
Boot(x, mean, 999)
#> 
#> ORDINARY NONPARAMETRIC BOOTSTRAP
#> 
#> 
#> Call:
#> boot::boot(data = data, statistic = f, R = R)
#> 
#> 
#> Bootstrap Statistics :
#>      original      bias    std. error
#> t1* 0.8736847 0.003204029  0.08546844