Partial correlation matrix {corrfuns}R Documentation

Partial correlation matrix

Description

Partial correlation matrix.

Usage

pcormat(x, type = "pearson")

Arguments

x

A numerical matrix with two columns.

type

The type of the partial correlation matrix to compute, "pearson" or "spearman".

Details

The function computes the partial correlation matrix. Given a correlation matrix, it will return the partial correlation matrix. Each entry in the final matrix, is the partial correlation matrix between a pair of variables given all the rest variables.

Value

The partial correlation matrix.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

See Also

partialcor, partialcor2

Examples

pcormat( iris[, 1:4] )

[Package corrfuns version 1.0 Index]