partial.cor: Partial Correlations

Description Usage Arguments Value Author(s) See Also Examples

Description

Computes a matrix of partial correlations between each pair of variables controlling for the others.

Usage

1
partial.cor(X, tests=FALSE, use=c("complete.obs", "pairwise.complete.obs"))

Arguments

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 "complete.obs".

Value

Returns the matrix of partial correlations, optionally with adjusted and unadjusted p-values.

Author(s)

John Fox jfox@mcmaster.ca

See Also

cor

Examples

1
2
3
4
    library(car)
    data(DavisThin)
    partial.cor(DavisThin)
    partial.cor(DavisThin, tests=TRUE)


Search within the Rcmdr2 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.