random_selection_regression: random_selection_regression

Description Usage Arguments Value

View source: R/random_selection_regression.R

Description

select randomly the covariates to include in a regression and returns the names, indices of the covariates and an 'lm' object

Usage

1
random_selection_regression(y, names, dataset, n, reg_method)

Arguments

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

Value

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


Skjemaa/GA documentation built on May 3, 2019, 6:42 p.m.