Correlation in R | Pearson, Spearman, Robust, Bayesian | How to conduct, visualise and interpret

Published: 03 January 2022
on channel: yuzaR Data Science
29,806
468

Having two numeric variables, we often wanna know whether they are correlated and how. One simple command can answer both questions by visualizing the data and conducting frequentists and bayesian correlation analysis at the same time. So, let’s learn how to do that, how to interpret all these results and how to choose the right correlation method in the first place.

Here is a quick R code:

install.packages("ggstatsplot")
library(ggstatsplot)

ggscatterstats(
data = mtcars,
x = mpg,
y = hp,
type = "p") # or "np" or "r"

?ggscatterstats

If you only want more code (or want to support me), consider join the channel (join button below any of the videos), because I provide the code upon members requests.

Enjoy! 🥳


Watch video Correlation in R | Pearson, Spearman, Robust, Bayesian | How to conduct, visualise and interpret online without registration, duration hours minute second in high quality. This video was added by user yuzaR Data Science 03 January 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 29,806 once and liked it 468 people.