Partial correlation matrix | R Documentation |
Partial correlation matrix.
pcormat(x, type = "pearson")
x |
A numerical matrix with two columns. |
type |
The type of the partial correlation matrix to compute, "pearson" or "spearman". |
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.
The partial correlation matrix.
Michail Tsagris
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
partialcor, partialcor2
pcormat( iris[, 1:4] )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.