Command Reference : Matrix Language Reference
Syntax: @cor(v1, v2)
Argument 1: vector, rowvector, or series, v1
Argument 2: vector, rowvector, or series, v2
Return: scalar
Syntax: @cor(o)
Argument: matrix object or group, o
Return: sym
If used with two vector or series objects, v1 and v2, @cor returns the correlation between the two vectors or series. Examples:
scalar sc1 = @cor(v1,v2)
s1(1,2) = @cor(v1,r1)
If used with a matrix object or group, o, @cor calculates the correlation matrix between the columns of the matrix object.
scalar sc2 = @cor(v1,v2)
mat3(4,2) = 100*@cor(r1,v1)
For series and group calculations, EViews will use the current workfile sample. See also @cov. See Group::cor for more general computation of correlations.