myboot2: bootstrap function

Description Usage Arguments Value Examples

View source: R/bootstrap.R

Description

Function from lab 9 that bootstraps samples and calculates confidence intervals

Usage

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

Arguments

iter

number of iterations performed

x

sample size

fun

Type of calculation performed

alpha

Confidence interval wanted

Value

Plot of the bootstrapped sample with labled bounds of the specified confidence interval

Examples

1
## Not run: set.seed(68); sam=rnorm(20,mean=10,sd=4); myboot2(x=sam,col="yellow")

TylerPardun/MATH4753pard0003 documentation built on Dec. 31, 2020, 5:34 p.m.