Covariance between a variable and a set of variables {Rfast2} | R Documentation |
Covariance between a variable and a set of variables
Description
Covariance between a variable and a set of variables.
Usage
covar(y, x)
Arguments
y |
A numerical vector. |
x |
A numerical matrix. |
Details
The function calculates the covariance between a variable and many others.
Value
A vector with the covariances.
Author(s)
Michail Tsagris and Manos Papadakis.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Manos Papadakis papadakm95@gmail.com.
See Also
Examples
y <- rnorm(40)
x <- matrix( rnorm(40 * 10), ncol = 10 )
covar(y, x)
cov(y, x)
[Package Rfast2 version 0.1.5.2 Index]