bootreg: Validating a bootstrap linear regression model

View source: R/bootreg.R

bootregR Documentation

Validating a bootstrap linear regression model

Description

Validating a bootstrap linear regression model

Usage

bootreg(
  reg,
  data = c(),
  plot = TRUE,
  verbose = TRUE,
  conf.level = 0.95,
  alpha = 0.05,
  iter = 1000
)

Arguments

reg

linear model.

data

a data.frame of values if formula is complex with I() function (Optional).

plot

enable or disable the display of graphical analysis.

verbose

enable or disable the display of the commented analysis.

conf.level

confidence level for validation of the model.

alpha

minimal value accepted for validation of the model and his coefficients.

iter

number of iterations.

Details

bootreg allows to validate a model by bootstrap.

It will draw several times in the values of the model in order to test its robustness.

As an output, we can have a validation or not of the model (analysis=F), or we can have a table expressing the variability of the coefficients, their p-values and their maximum fluctuation values.

Value

A graph of analysis.

Examples

data(mtcars);
corrigraph(mtcars);
reg<- lm(cyl~disp+hp,data=mtcars);
bootreg(reg, verbose=TRUE, plot=TRUE)

Antoine-Masse/KefiR documentation built on Feb. 22, 2024, 5:54 a.m.