| partial.cor | R Documentation |
Partial Correlations
partial.cor(X, tests = FALSE, use = c("complete.obs", "pairwise.complete.obs"))
## S3 method for class 'partial.cor'
print(x, digits = max(3, getOption("digits") - 2), ...)
X |
data matrix. |
tests |
show two-sided p-value and p-value adjusted for multiple testing by Holm's method for each partial correlation. |
use |
observations to use to compute partial correlations, default is |
x |
data matrix. |
digits |
minimal number of _significant_ digits, see |
... |
arguments to pass down from the print method. |
Computes a matrix of partial correlations between each pair of variables controlling for the others.
Returns the matrix of partial correlations, optionally with adjusted and unadjusted p-values.
John Fox
cor
data(DavisThin, package="car")
partial.cor(DavisThin)
partial.cor(DavisThin, tests=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.