correlations | R Documentation |
Computes a correlation matrix with ones along the diagonal, marginal correlations in the lower triangle and partial correlations given all remaining variables in the upper triangle.
correlations(x)
x |
a square symmetric matrix, a covariance matrix, or a data.frame for n observations and p variables. |
a square correlation matrix with marginal correlations (lower triangle) and partial correlations (upper triangle).
Giovanni M. Marchetti
Cox, D. R. & Wermuth, N. (1996). Multivariate dependencies. London: Chapman & Hall.
parcor
, cor
## See Table 6.1 in Cox & Wermuth (1996)
data(glucose)
correlations(glucose)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.