For all the downloadable scripts on this page, change the .txt extension to the correct R extension (.R) before using in RStudio. This Logistic regression script contains the greatest collections of routines on my web page...
#  writes all graphs to a single pdf file.
#  Calculates frequency counts of all character variables.
#  Calculates basic statistics for all numeric variables.
#  Calculates percentiles for all numeric variables.
#  Draws Boxplots for all numeric variables.
#  Draws Histograms for all numeric variables.
#  Extracts column pairwise and bivariate correlations from correlation matrix.
#  Ability to Winsor data if needed to mitigate outliers.
#  Calculates weight of evidence (WOE) and Information value (IV) for all variables.
#  Can replace missing with means or medians.
#  Divides data into training and testing datasets.
#  Estimates Logit model  saves all related results in Excel tabs.
#  Calculates VIFs for all model variables.
#  Calculates fit statistics  leverage, Cooks D, etc.
#  Calculates Predicted probabilities for Logit model.
#  Calculates ROC and AUC for training and test data.
#  Calculates Lift chart and KS for training and test data.
#  Calculates Somers D, Misclassification table, Concordance metric  all for training and test data.
#  Calculates Marginal Effects of logistic regression.
