myboot: My CI bootstrap function Bootstraps a (100 displays a...

View source: R/myboot.R

mybootR Documentation

My CI bootstrap function Bootstraps a (100 displays a histogram with confidence intervals and the mean.

Description

My CI bootstrap function Bootstraps a (100 displays a histogram with confidence intervals and the mean.

Usage

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

Arguments

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()

Value

A list consisting of confidence intervals, the sample, the statistic, and the provided function

Examples

## Not run: 
sam <- rnorm(20, mean=4, sd=2)
myboot(iter=10000, x=sam, fun="mean", alpha=0.05)

## End(Not run)

sam-irl/MATH4753bird0023 documentation built on May 3, 2022, 6:29 p.m.