Obtain correlation table for all variables against target variable. Only numeric variables are analyzed (factor/character are skippted automatically).

correlation_table(data, target)

Arguments

data

data frame

target

string variable to predict

Value

Correlation index for all data input variable

Examples

correlation_table(data=heart_disease, target="has_heart_disease")
#> Variable has_heart_disease #> 1 has_heart_disease 1.00 #> 2 heart_disease_severity 0.83 #> 3 num_vessels_flour 0.46 #> 4 oldpeak 0.42 #> 5 slope 0.34 #> 6 age 0.23 #> 7 resting_blood_pressure 0.15 #> 8 serum_cholestoral 0.08 #> 9 max_heart_rate -0.42