# NOT RUN {
options("lares.font" = NA) # Temporal
data(dft) # Titanic dataset
dft %>% corr_var(Survived, method = "spearman", plot = FALSE, top = 10)
# With plots, results are easier to compare:
# Correlate Survived with everything else and show only significant results
dft %>% corr_var(Survived_TRUE, max_pvalue = 0.05)
# Filter out variables with less than 50% of correlation
dft %>% corr_var(Survived_TRUE, ceiling = 50)
# Show only 10 values
dft %>% corr_var(Survived_TRUE, top = 10)
# Also calculate log(values)
dft %>% corr_var(Survived_TRUE, logs = TRUE, top = 15)
# }
Run the code above in your browser using DataLab