pcor: Partial correlation

View source: R/utils.R

pcorR Documentation

Partial correlation

Description

Robust partial correlation of column variables of a numeric matrix

Usage

pcor(x, g = NULL, adjustment_type = "parents", ...)

Arguments

x

matrix

g

related graph as adjacency matrix (optional)

adjustment_type

character string for the method to define the adjustment set Z for the regression

...

additional arguments for function 'cor'

Value

matrix of partial correlations

Examples

x <- matrix(rnorm(100),10,10)
pcor(x)

kpj/dce documentation built on Oct. 29, 2022, 1:40 a.m.