correlation_table: Get correlation against target variable

Description Usage Arguments Value Examples

View source: R/exploratory_data_analysis.R

Description

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

Usage

1

Arguments

data

data frame

target

string variable to predict

Value

Correlation index for all data input variable

Examples

1
correlation_table(data=heart_disease, target="has_heart_disease")

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, units

funModeling v.1.7 :)
Examples and tutorials at livebook.datascienceheroes.com

                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

funModeling documentation built on July 1, 2020, 5:40 p.m.