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 
#>   33.761116   -4.267821 
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept)          wt 
#>   36.837227   -5.125097 
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars)))
#> (Intercept)          wt 
#>    35.29868    -4.74287