Great video! I'm wondering - is there a way to automate this correlation calculation for several variables? For example if you have 10 variables and you are interested in the correlation of each variable with each of the other variables - would you then have to repeat the cor.test command for each combination of variables or does a shortcut exist?
Hi Trine, So, sounds like you want to do a correlation matrix. Check out the rcorr function in the Hmisc package cran.r-project.org/web/packages/Hmisc/Hmisc.pdf. This performs a correlation matrix and reports p values as well as coefficient values. Thanks Steven
Simple, to the point, well explained. Thank you!
You're amazing, you've saved me so much time. THANK YOU THANK YOU THANK YOU
This helped me so much. Thanks
Great video! I'm wondering - is there a way to automate this correlation calculation for several variables? For example if you have 10 variables and you are interested in the correlation of each variable with each of the other variables - would you then have to repeat the cor.test command for each combination of variables or does a shortcut exist?
Hi Trine,
So, sounds like you want to do a correlation matrix. Check out the rcorr function in the Hmisc package cran.r-project.org/web/packages/Hmisc/Hmisc.pdf. This performs a correlation matrix and reports p values as well as coefficient values.
Thanks
Steven
How can i make it with My own data table?
So helpful thank you!!
do you have any videos on how to plot my pearsons data onto a scatter graph?
Very helpful ty
Analysis made easy with one command of R
DataCamp Course
datacamp.pxf.io/Gjb9Qr
Great ,our lecturers Don't bother to show is these