Covariance between a variable and a matrix of variables
Covariance between a variable and a matrix of variables.
covar(y, x)
y |
A numerical vector. |
x |
A numerical matrix. |
The function calculates the covariance between a variable and many others.
A vector with the covariances.
Michail Tsagris and Manos Papadakis
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr>
y <- rnorm(40) x <- matrix( rnorm(40 * 10), ncol = 10 ) covar(y, x) cov(y, x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.