blb.pred.ci: Bag of Little Bootstrap Confidence Interval for Prediction...

Description Usage Arguments Value Examples

View source: R/blbLM.R

Description

Bag of Little Bootstrap Confidence Interval for Prediction (Linear Model)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
blb.pred.ci(
  data,
  pred_df,
  y,
  x,
  m,
  r = 50,
  alpha = 0.05,
  parallel = FALSE,
  n_cores = 4
)

Arguments

data

a dataframe or tibble object

pred_df

a dataframe or tibble object with corresponding names for indepedent variables

y

the name of the response variable

x

the name(s) 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
pred_df <- dplyr::tibble(Sepal.Length = c(1,2,3,4,5), Sepal.Width = c(1,2,3,4,5))
blb.pred.ci(iris, pred_df, "Petal.Width", c("Sepal.Length", "Sepal.Width"), 10, 15, 0.05)

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