covar: Covariance between a variable and a set of variables

View source: R/covariance_and_correlation_related_functions.R

Covariance between a variable and a set of variablesR 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

circ.cors1, bic.regs

Examples

y <- rnorm(40)
x <- matrix( rnorm(40 * 10), ncol = 10 )
covar(y, x)
cov(y, x)

Rfast2 documentation built on May 29, 2024, 8:45 a.m.