myboot2 | R Documentation |
Standard bootstrap function
myboot2(iter = 10000, x, fun = "mean", alpha = 0.05, cx = 1.5, ...)
iter |
the number of iterations of sampling desired. i.e. iter =100, 100 samples collected |
x |
it a vector of random variables to be studied |
fun |
the function that is to be applied to the materix of n*iter |
alpha |
1-alpha is the confidence interval desired. i.e. if 95% interval desired, alpha is 0.05 |
cx |
size of the data points on the graph |
... |
allows for more arguments to be put in the function |
returns a histogram for a chosen statistic, i.e. mean, chi-squared
## Not run: myboot2(x, fun="sd", alpha =0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.