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 
#>   38.669661   -5.681999 
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept)          wt 
#>   37.796206   -5.452933 
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept)          wt 
#>   35.763073   -4.991174