myboot2: The bootstrap function creates a confidence interval based on...

View source: R/myboot2.R

myboot2R Documentation

The bootstrap function creates a confidence interval based on a given data set.

Description

The bootstrap function creates a confidence interval based on a given data set.

Usage

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

Arguments

iter

Number of iterations

x

A dataframe or data set

fun

Which type of function you would like to apply to the data, ex. "mean"

alpha

A number, such that (1 - alpha) is the percentage confidence

cx

A number, for applying text size

...

Extra graphical parameters passed on to the hist() function

Value

Returns a histogram of the distribution of the sampled data from the population. On the histogram is a labeled confidence interval.

Examples

## Not run: myboot2(iter = 10000, x = ddt$DDT, fun = "var", alpha = 0.2)

treyhille/MATH4753.0231 documentation built on May 3, 2022, 8:25 p.m.