firstOrderPartialCorrelation: Compute first order partial correlations

Description Usage Arguments Value Author(s) See Also Examples

View source: R/firstOrderPartialCorrelation.R

Description

This function computes the first order partial correlation given the k'th variable.

Usage

1

Arguments

S

A numeric correlation matrix

k

An integer. The index of the variable to condition on.

Value

A matrix of the same size as X with NaNs in the k row and column.

Author(s)

Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>

See Also

cor

Examples

1
2
3
X <- createData(4, 10)
S <- cor(X)
firstOrderPartialCorrelation(S, 2)

AEBilgrau/correlateR documentation built on Dec. 27, 2018, 2:32 a.m.