myboot2: myboot2

Description Usage Arguments Value Examples

View source: R/myboot.R

Description

Use bootstrapping to produce a sampling distribution for a given sample

Usage

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

Arguments

iter

number of times to resample the provided sample

x

the original sample you wish to bootstrap

fun

either a string for an r function or a function pointer to a user-defined function to examine the samples

alpha

the cutoff for the tails in the returned confidence interval

...

Value

a list of the confidence interval, your chosen function, and the sample

Examples

1
2
3
myboot2(x=c(1,2,3,4,5,6,7))

myboot2(x=c(1,2,3,4,5,6,7), alpha=0.25)

Tom-bomb/glowup documentation built on Dec. 31, 2020, 5:32 p.m.