blb.coef.ci: Bag of Little Bootstrap Confidence Interval for Linear...

Description Usage Arguments Value Examples

View source: R/blbLM.R

Description

blb.ceof.ci is used to calculate the bag of little bootstrap confidence interval for the linear model

Usage

1
blb.coef.ci(data, y, x, m, r = 50, alpha = 0.05, parallel = FALSE, n_cores = 4)

Arguments

data

a dataframe or tibble object

y

the name of the response variable

x

the name of the indepedent variables

m

the number of group to split

r

the number of iteration for each boot

alpha

the significance level

parallel

parallel compute the confidence interval

n_cores

the number of processor to work on each task

Value

returns a matrix of the bootstrap ci

Examples

1
2
blb.coef.ci(iris, "Sepal.Length",  "Petal.Width", 10, 15, 0.05)
blb.coef.ci(iris, "Sepal.Length", c("Sepal.Width", "Petal.Width"), 10, 15, 0.05)

nguyenbi724/blbLM documentation built on March 23, 2020, 5:27 a.m.