View source: R/e_plot_bs_one_samp_dist.R
e_plot_bs_one_samp_dist | R Documentation |
A function to compare the bootstrap sampling distribution with a normal distribution with mean and SEM estimated from the data
e_plot_bs_one_samp_dist(
dat,
N = 10000,
sw_graphics = c("ggplot", "base")[1],
sw_ggplot_print = c(TRUE, FALSE)[2],
conf_level = 0.95
)
dat |
a list of values |
N |
number of bootstrap iterations |
sw_graphics |
use either ggplot or R base graphics |
sw_ggplot_print |
if ggplot, print the plot or just return the grob |
conf_level |
0.95 for a 95% bootstrap CI |
invisible(NULL) or ggplot grob
e_plot_bs_one_samp_dist(dat = runif(15), sw_graphics = "base")
e_plot_bs_one_samp_dist(dat = runif(15), sw_graphics = "ggplot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.