partial.cor: Partial correlation Compute the correlation between x and y...

View source: R/cortools.R

partial.corR Documentation

Partial correlation Compute the correlation between x and y while controlling for z.

Description

Partial correlation Compute the correlation between x and y while controlling for z.

Usage

partial.cor(x, y, z, use = c("complete.obs", "everything"))

Arguments

x, y, z

x and y will be correlated while controlling for z

use

optional character indicating how to handle missing values (see cor)

Examples

partial.cor(mtcars$mpg,mtcars$cyl,mtcars$disp)

AATtools documentation built on Aug. 12, 2022, 5:05 p.m.