parcor_ijk: Generalized partial correlation coefficients between Xi and...

Description Usage Arguments Value Note Examples

View source: R/parcor_ijk.R

Description

This function uses data on two column vectors, xi, xj and xk which can be a vector or a matrix usually of the remaining control variables.

Usage

1
parcor_ijk(xi, xj, xk)

Arguments

xi

Input vector of data for variable xi

xj

Input vector of data for variable xj

xk

Input data for variables in xk, usually control variables

Value

ouij

Generalized partial correlation Xi with Xj (=cause) after removing xk

ouji

Generalized partial correlation Xj with Xi (=cause) after removing xk

Note

This function calls kern,

Examples

1
2
3
4
5
6
## Not run: 
set.seed(34);x=matrix(sample(1:600)[1:99],ncol=3)
colnames(x)=c('V1', 'v2', 'V3')
parcor_ijk(gm1, 2,3)

## End(Not run)#' 

generalCorr documentation built on Sept. 11, 2017, 5:04 p.m.