May 2019
Intermediate to advanced
664 pages
15h 41m
English
Follow these simple steps to train a logistic regression algorithm:
> library(magrittr)> install.packages("caret")> install.packages("classifierplots")> install.packages("earth")> install.packages("Information")> install.packages("InformationValue")> install.packages("Metrics")> install.packages("tidyverse")
> santander <- read.csv("~/santander_prepd.csv")> dim(santander)[1] 76020 143> table(santander$y) 0 1 73012 3008
We have 76,020 observations, but only 3,008 customers are labeled 1, which means ...