Command Reference : Function Reference : Function Reference: C
  
 
@cov
Compute population (non-d.f. corrected) covariance between two vectors, or between the columns of a matrix.
Syntax: @cov(v1, v2)
v1: vector, rowvector, or series
v2: vector, rowvector, or series
Return: scalar
 
Syntax: @cov(o)
o: matrix object or group
Return: sym
Compute covariances using as the divisor in the moment calculation.
For series and group calculations, EViews will use the current workfile sample.
Examples
If used with two vector or series objects, @cov returns the population covariance between the two vectors or series.
scalar sc1 = @cov(v1, v2)
If used with a matrix object or group, @cov calculates the population covariance matrix between the columns of the matrix object or the series in the group object.
sym s1 = @cov(mat1)
Cross-references
See also @cor, @covp, and @covs.