Covariance
An optimized, efficient implemntation for computing covariance.
covar(x, y, use = "everything", inplace = FALSE, inverse = FALSE) tcovar(x, y, use = "everything", inplace = FALSE, inverse = FALSE)
x |
A numeric dataframe/matrix or vector. |
y |
A vector (when |
use |
The NA handler, as in R's |
inplace |
Logical; if |
inverse |
Logical; should the inverse covariance matrix be returned? |
See ?coop-package for implementation details.
The covariance matrix.
Drew Schmidt
x <- matrix(rnorm(10*3), 10, 3) coop::pcor(x) coop::pcor(x[, 1], x[, 2])
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.