Description Usage Arguments Value Examples
Bag of Little Bootstrap Confidence Interval for Prediction (Linear Model)
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
)
|
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 |
returns a matrix of the bootstrap ci
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.