myboot2: A bootstrapping function to take random samples and make...

Description Usage Arguments Value Examples

View source: R/myboot2.R

Description

A bootstrapping function to take random samples and make histograms

Usage

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

Arguments

iter

the number of iterations

x

the sample object of some distribution

fun

the function to perform on the same (mean, sd, etc)

alpha

variable for finding a certain confidence interval

cx

an expansion factor

...

Value

a histogram of the sample and a list of simulation statistics

Examples

1
## Not run: myboot2(10000,x=sam,fun=function(x) mean(x),alpha=0.05,xlab="mean(x)",col="Red",cx=1.5)

jndaniel12/MATH4753DANIEL documentation built on April 25, 2021, 1:47 a.m.