Created
December 29, 2015 23:19
-
-
Save hilaryparker/6e6d3190eb3290263344 to your computer and use it in GitHub Desktop.
get bootstrap histogram quickly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
library(broom) | |
library(ggplot2) | |
dat <- data.frame(x = runif(50000)) %>% tbl_df() | |
res <- dat %>% bootstrap(100) %>% do(tidy(lm(x ~ 1, .))) | |
ggplot(res, aes(x = estimate)) + geom_histogram() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment