Learn R Programming

DEMOVA (version 1.0)

select_MLR: Development of the model (multi linear regression)

Description

From a list of descriptors and responses values, this function choose the best compromise between correlation and robustness to select the best model.

Usage

select_MLR(y, desc, n, method = "forward")

Arguments

y
Vector with values of the property/response
desc
Dataframe containing the names of desciptors and their values
n
Maximal number (integer) of desciptors for the final equation
method
Determine the method used to build the regression. Can be: "backward", "forward" (by default) or "seqrep". For more info see leaps package.

Value

Return the list of selected variables for the choosen MLR.

Examples

Run this code
# First run Select_variables to remove descriptors with missing or constant values.
# MLR<-select_MLR(y,desc,5)

Run the code above in your browser using DataLab