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