Generate a boostrap replicate

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 
#>   34.714847   -4.709394 
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept)          wt 
#>   35.032958   -4.710811 
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept)          wt 
#>   41.353743   -6.629187