myboot2: Bootstrap simulation for confidence interval

Description Usage Arguments Value Examples

View source: R/lab9.R

Description

predict a function output with (1-alpha) confidence interval from a sample. default value evaluates the input with 10,000 iterations to estimate the mean

Usage

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

Arguments

iter

number of iteration

x

sample to be bootstrapped

fun

function of interest to be estimated

alpha

alpha parameter of confidence interval

cx

point graphical variable for visual modification

...

Value

1-alpha CI for a particular function

Examples

1
myboot2(x = rnorm(20, mean = 10, sd = 2), alpha = 0.1, fun = "sd")

fraclad/math4753 documentation built on April 21, 2020, 2:21 p.m.