pcor: Partial correlation

View source: R/pcor.R

pcorR Documentation

Partial correlation

Description

Partial correlation between x and y, after having adjusted both for z.

Usage

pcor(x, y, z, alpha = 0.05)

Arguments

x

A numeric vector.

y

A numeric vector.

z

A data frame, which can contain characters or factors.

alpha

Type-I error for the confidence interval (CI). Default is 0.05, corresponding to a 95% CI.

Value

The partial correlation, and the lower and upper bounds of its CI.

Examples

pcor(iris[[1]], iris[[2]], iris[-(1:2)])


bigstatsr documentation built on Sept. 11, 2024, 7:08 p.m.