library(magrittr) # pipes library(dplyr) # data manipulation library(ggplot2) # plotting library(mice) # for boys data library(GGally) # correlation and distribution matrixplot library(mctest) # multicollinearity test library(DAAG) # now for vif() function
titanic <- read.csv(file = "titanic.csv", header = TRUE) %>% mutate(Pclass = factor(Pclass, levels = c(3, 2, 1), ordered = FALSE))