myboot2: Lab 9 function: myboot2()

Description Usage Arguments Value Examples

View source: R/myboot2_lab9.R

Description

Lab 9 function: myboot2()

Usage

1
myboot2(iter = 10000, x, fun = "mean", alpha = 0.05, cx = 1.5, ...)

Arguments

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

Value

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.

Examples

1
2
## Not run: myboot2(iter = 10000, x, fun = "mean", alpha = 0.05)
## Not run: myboot2(iter = 5000, x, fun = "var", alpha = 0.20)

theo-frantz/MATH4753fran0107 documentation built on Nov. 23, 2020, 11:21 a.m.