# NOT RUN {
data('mtcars')
corrMatrix(mtcars, vars = vars(mpg, cyl, disp, hp))
#
# CORRELATION MATRIX
#
# Correlation Matrix
# --------------------------------------------------------------
# mpg cyl disp hp
# --------------------------------------------------------------
# mpg Pearson's r <U+2014> -0.852 -0.848 -0.776
# p-value <U+2014> < .001 < .001 < .001
#
# cyl Pearson's r <U+2014> 0.902 0.832
# p-value <U+2014> < .001 < .001
#
# disp Pearson's r <U+2014> 0.791
# p-value <U+2014> < .001
#
# hp Pearson's r <U+2014>
# p-value <U+2014>
# --------------------------------------------------------------
#
# }
Run the code above in your browser using DataLab