myboot2: Bootstrap

Description Usage Arguments Examples

View source: R/myboot2.R

Description

Runs a bootstrap analysis of the given data based on the function you would like to run. Provides a histogram of the bootstrap analysis with confidence interval labels

Usage

1
myboot2(iter, x, fun, alpha, cx, ...)

Arguments

iter

number of iterations

x

the vector of data

fun

the function to be used (e.g. "mean")

alpha

alpha value; for the confidence interval

cx

font size of histogram labels

...

other formatting options

Examples

1
2
3
4
5
myboot2(iter=10000,x,fun="mean",alpha=0.05,cx=1.5,...)
With 10000 iterations of the data stored in x with the function
performing a bootstrap for the mean of the data stored in x.
This example uses an alpha level of 0.05, so it has a 95%
confidence interval. It has a font size setting of 1.5.

casspants/MATH4753kran1018 documentation built on Nov. 26, 2020, 1:12 p.m.