New answers tagged


Below are two functions using my favorite packages: The first one shows a scatterplot of every column against the target column The second one shows the correlation of every column with the target column, with confidence intervals (I found how to do that with ggplot here). Code: library(ggplot2) library(reshape2) library(plyr) scatterplot <- function(...


You want to be using a chisq test instead of looking at correlation. Correlation isn't well defined for categorical variables, since it relies on variance and covariance, which doesn't really make intuitive sense in the categorical (binary) case

Top 50 recent answers are included