myboot2: Standard bootstrap function

View source: R/myboot2.R

myboot2R Documentation

Standard bootstrap function

Description

Standard bootstrap function

Usage

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

Arguments

iter

the number of iterations of sampling desired. i.e. iter =100, 100 samples collected

x

it a vector of random variables to be studied

fun

the function that is to be applied to the materix of n*iter

alpha

1-alpha is the confidence interval desired. i.e. if 95% interval desired, alpha is 0.05

cx

size of the data points on the graph

...

allows for more arguments to be put in the function

Value

returns a histogram for a chosen statistic, i.e. mean, chi-squared

Examples

  ## Not run: myboot2(x, fun="sd", alpha =0.3)

aanahitajm/math4753 documentation built on May 3, 2022, 7:25 p.m.