R/bootstrap.R
resample_bootstrap.Rd
Generate a boostrap replicate
resample_bootstrap(data)
A data frame
Other resampling techniques: bootstrap(), resample_partition(), resample()
bootstrap()
resample_partition()
resample()
coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars))) #> (Intercept) wt #> 36.505295 -5.165256 coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars))) #> (Intercept) wt #> 35.050591 -4.725489 coef(lm(mpg ~ wt, data = resample_bootstrap(mtcars))) #> (Intercept) wt #> 38.394262 -5.683444