• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in R Language by
Q:
correlation Summary

1 Answer

0 votes
by

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

Related questions

0 votes
asked Nov 14, 2019 in R Language by MBarbieri
0 votes
asked Nov 14, 2019 in R Language by MBarbieri
...