blb4lm: Bag of Little Bootstrap for Linear Regression

Description Usage Arguments Details Value

View source: R/blb4lm.R

Description

Bag of Little Bootstrap for Linear Regression

Usage

1

Arguments

formula

The formula for linear regression, using ~ operator

s

Number of subsamples

r

Times of resampling performed on each subsample

data

A data frame

parallel

Logical indicating whether parallel computation should be used. See 'details'.

Details

Split the training data into s parts and resampling r times for each part; then fit lm model given the formula for each resamples. If you choose to use parallel computation, use "plan(multiprocess, workers = number of cores you want to use)" from furrr package first.

Value

A list of list of coefficients and sigma


yf-jiang/blb4RG documentation built on March 25, 2020, 1:28 a.m.