bootreg | R Documentation |
Validating a bootstrap linear regression model
bootreg(
reg,
data = c(),
plot = TRUE,
verbose = TRUE,
conf.level = 0.95,
alpha = 0.05,
iter = 1000
)
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. |
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.
A graph of analysis.
data(mtcars);
corrigraph(mtcars);
reg<- lm(cyl~disp+hp,data=mtcars);
bootreg(reg, verbose=TRUE, plot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.