R/e_plot_bs_two_samp_diff_dist.R
e_plot_bs_two_samp_diff_dist.Rd
A function to compare the bootstrap sampling distribution of the difference of means from two samples with a normal distribution with mean and SEM estimated from the data
a list of values from Sample 1
a list of values from Sample 2
number of bootstrap iterations
use either ggplot or R base graphics
if ggplot, print the plot or just return the grob
0.95 for a 95% bootstrap CI
invisible(NULL)
e_plot_bs_two_samp_diff_dist(dat1 = runif(15), dat2 = runif(15) - 2, sw_graphics = "base")
e_plot_bs_two_samp_diff_dist(dat1 = runif(15), dat2 = runif(15) - 2, sw_graphics = "ggplot")
#> Warning: Removed 2 rows containing missing values (`geom_bar()`).
#> Warning: Removed 2 rows containing missing values (`geom_bar()`).