Partial correlations
Finds the matrix of the partial correlations between pairs of variables given the rest.
parcor(S)
S
: a symmetric positive definite matrix, representing a covariance matrix.The algorithm computes c("", "") where the are concentrations, i.e. elements of the inverse covariance matrix.
A symmetric matrix with ones along the diagonal and in position the partial correlation between variables
and given all the remaining variables.
Cox, D. R. & Wermuth, N. (1996). Multivariate dependencies. London: Chapman & Hall.
Giovanni M. Marchetti
var
, cor
, correlations
## for the mathematics marks data data(marks) S <- var(marks) parcor(S)