myboot | R Documentation |
My CI bootstrap function Bootstraps a (100 displays a histogram with confidence intervals and the mean.
myboot(iter = 10000, x, fun = "mean", alpha = 0.05, cx = 1.5, ...)
iter |
The number of iterations to run. |
x |
A numeric vector of the sample. |
fun |
The function to produce the statistic to be tested. |
alpha |
1-(percent confidence interval) |
cx |
Numeric character expansion factor to be passed to text() |
... |
Additional parameters passed to hist() |
A list consisting of confidence intervals, the sample, the statistic, and the provided function
## Not run: sam <- rnorm(20, mean=4, sd=2) myboot(iter=10000, x=sam, fun="mean", alpha=0.05) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.