Skip to content

Generate a boostrap replicate

Usage

resample_bootstrap(data)

Arguments

data

A data frame

See also

Other resampling techniques: bootstrap(), resample_partition(), resample()

Examples

coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept)          wt 
#>   32.119621   -3.805733 
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept)          wt 
#>   33.751976   -4.257565 
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept)          wt 
#>   41.191323   -6.609486