myboot: Bootstrap Function

Description Usage Arguments Value Examples

View source: R/myboot.R

Description

Bootstrap Function

Usage

1
myboot(iter, df, alpha = 0.05)

Arguments

iter

# number of iterations for the bootstrap

df

# data grame with first column response, other columns are relevant independent variables

alpha

# significance level

Value

Summary statistics for the bootstrapped betas

Histograms of the bootstrapped betas

Confidence intervals for the boostrapped betas

Classical MLR method point estimates

Classical MLR confidence interval estimates based on alpha

Examples

1
2
3
4
5
6
y <- rnorm(100, 0, 1)
x1 <- rnorm(100, 1, 2)
x2 <- rnorm(100, 2, 3)
data <- cbind(y, x1, x2)
data <- data.frame(data)
myboot(iter=1000, df=data)

leahpom/F2020Projt3LP documentation built on Jan. 1, 2021, 8:17 a.m.