Categories

Nov 14, 2019 in R Language
Q: correlation Summary

1 Answer

Nov 14, 2019

library

Objective

method

code

Base

bivariate correlation

Pearson

cor(dfx2, method = "pearson")

Base

bivariate correlation

Spearman

cor(dfx2, method = "spearman")

Base

Multivariate correlation

pearson

cor(df, method = "pearson")

Base

Multivariate correlation

Spearman

cor(df, method = "spearman")

Hmisc

P value

rcorr(as.matrix(data[,1:9]))[["P"]]

Ggally

heat map

ggcorr(df)

Multivariate plots

cf code below
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Nov 14, 2019 in R Language
Nov 14, 2019 in R Language
Nov 14, 2019 in R Language
...