myboot: My boot function (bootstrap simulation technique)

Description Usage Arguments Value Examples

View source: R/myboot.R

Description

My boot function (bootstrap simulation technique)

Usage

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

Arguments

iter

Number of iterations of the simulation

x

population sample

fun

function for the bootstrap intervals (ex mean, variance, etc)

alpha

alpha level (1-alpha is equal to the confidence interval)

Value

Returns a histogram of the sample statistic which also shows the confidence interval for the mean at the established 1-alpha confidence level

Examples

1
For a basic sample s=c(3,4,5,6) use myboot(x=s) and you will get a 95% confidence interval for the mean

sergiogarcia29/MATH4753PROJ1 documentation built on Nov. 22, 2020, 12:39 a.m.