Description Usage Arguments Details Value Author(s)
This function takes training data, tesing data, target variable and predict target variable of the training data
1 |
train |
Training Data as a dataframe. |
test |
Testing Data as a dataframe. |
vif |
Cut off value of VIF |
p |
Cut off of p-value |
target |
Name of the variable that needs to predict |
drop |
Name of the variable that needs to be dropped before building the model. |
This is a custom function for linear regression, it builds a linear model first on the training data.
The argument 'drop' removes the variables not needed to build the model.
The argument 'vif' set the cut off of VIF and drop the variable with highest vif one by one till the maximum value of vif is less than cut-off.
The argument 'p' set the cut off of p-value and drop the variable with highest p-value one by one till the maximum value of p-value is less than cut-off.
The remaining variables are used to make the final linear model and predict the target variable on the training data.
The value returns from this function is a numeric vector.
ABIR CHAKRABORTY < mail2abirchakraborty@gmail.com >
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.