Description Usage Arguments Details Value Note Author(s)
This function takes training data, tesing data, target variable and predict the probability score of target variable = 1.Target varibale of training data should contain 1 and 0 only.
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 where probability score needs to be predicted |
drop |
Name of the variable that needs to be dropped before building the model. |
This is a custom function for logistic regression, it builds a logistic 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 logistic model and predict the target variable on the training data.
The value returns is the probability score of target variable = 1 as a numeric vector.
The target variable column of training data should contain in 1 or 0 only.
ABIR CHAKRABORTY < mail2abirchakraborty@gmail.com >
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.