Description Usage Arguments Value Examples
Lab 9 function: myboot2()
1 |
iter |
number of iterations |
x |
data being sampled |
fun |
a function that will give a statistic for the data |
alpha |
alpha for the confidence interval |
cx |
font size of the numbers on the histogram |
... |
for adding more customization to the histogram |
Returns a histogram of the statistic in "fun". Also can return the values for the confidence interval, the values for all the data used, and the function that was used to find the statistic.
1 2 | ## Not run: myboot2(iter = 10000, x, fun = "mean", alpha = 0.05)
## Not run: myboot2(iter = 5000, x, fun = "var", alpha = 0.20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.