Description Usage Arguments Value
View source: R/random_selection_regression.R
select randomly the covariates to include in a regression and returns the names, indices of the covariates and an 'lm' object
1 | random_selection_regression(y, names, dataset, n, reg_method)
|
y |
Name of the response variable in the dataset |
names |
Names of the covariates in the dataset |
dataset |
a dataset |
n |
Number of covariates to include in the regression |
reg_method |
Regression method |
A list with :
variable |
the name of the covariates selected in the regression |
indices |
their indices in the original vector names |
linear_model |
the 'lm' object resulting from the regression |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.