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 #> 36.038924 -4.851752
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept) wt #> 34.312183 -4.635939
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept) wt #> 37.929467 -5.422511