# NOT RUN {
data('mtcars')
corrPart(mtcars, vars = vars(mpg, cyl, disp), controls = vars(hp))
#
# PARTIAL CORRELATION
#
# Partial Correlation
# ----------------------------------------------------
# mpg cyl disp
# ----------------------------------------------------
# mpg Pearson's r <U+2014>
# p-value <U+2014>
#
# cyl Pearson's r -0.590 <U+2014>
# p-value < .001 <U+2014>
#
# disp Pearson's r -0.606 0.719 <U+2014>
# p-value < .001 < .001 <U+2014>
# ----------------------------------------------------
# Note. controlling for 'hp'
#
# }
Run the code above in your browser using DataLab