I'm looking for a way to use bootstrapper() to split a bootstrapped dataset into .draws, fit a model and return a data.frame or list of the coefficients (or other statistics). This should be a common enough task to warrant a documentation example.
Your RStudio2019 presentation mentions a function bootstrapify, but this doesn't exist in the package. I've tried a variety of things, but can't quite get my head around a solution.
library(dplyr)
library(broom)
library(ungeviz)
bsr <- bootstrapper(25)
models <- bsr(mtcars) %>%
group_by(.draw) %>%
summarise(b0 = coef(lm(mpg ~ hp, data = .))[1],
b1 = coef(lm(mpg ~ hp, data = .))[2]) %>%
ungroup()