View source: R/covariance_and_correlation_related_functions.R
Covariance between a variable and a set of variables | R Documentation |
Covariance between a variable and a set 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 and Manos Papadakis papadakm95@gmail.com.
circ.cors1, bic.regs
y <- rnorm(40)
x <- matrix( rnorm(40 * 10), ncol = 10 )
covar(y, x)
cov(y, x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.