myBoot: Bootstrap From Scratch

Description Usage Arguments Value Examples

View source: R/myBoot.R

Description

Bootstrap From Scratch

Usage

1
myBoot(data, iter, alpha = 0.2)

Arguments

data

, a data frame where the first column has dependent variable and all other columns are independent

iter

, number of bootstrap iterations

alpha

, alpha level

Value

, histograms for each beta estimate, confidence intervals for each beta estimate, summary statistics the iter length list of beta estimates

Examples

1
2
3
4
5
6
7
8
9
clerical<-data.frame(Hours=c(128.5, 113.6, 146.6, 124.3, 100.4, 119.2, 109.5, 128.5, 131.2, 112.2),
Mail=c(7781,7004,7267,2129,4878,3999,11777,5764,7392,8100),
Gifts=c(100,110,61,102,45,144,123,78,172,126),
Charge=c(886,962,1342,1153,803,1127,627,748,876,685),
Returns=c(235,388,398,457,577,345,326,161,219,287),
Checks=c(644,589,1081,891,537,563,402,495,823,555)
)

myBoot(clerical, 1000)

s-huebler/regsisF20 documentation built on Oct. 15, 2020, 10:42 p.m.