Learn R Programming

RcmdrMisc (version 1.0-0)

partial.cor: Partial Correlations

Description

Computes a matrix of partial correlations between each pair of variables controlling for the others.

Usage

partial.cor(X, ...)

Arguments

X
data matrix.
...
arguments to be passed to cor.

Value

  • Returns a matrix of partial correlations.

See Also

cor

Examples

Run this code
if (require("car")){
    data(DavisThin)
    partial.cor(DavisThin)
}

Run the code above in your browser using DataLab