Object Reference : Object View and Procedure Reference : Vector
  
 
vector
Declare a vector object.
The vector command declares and optionally initializes a (column) vector object.
Syntax
vector(size) vector_name [=assignment]
The keyword vector should be followed by the name you wish to give the vector. You may also provide an optional argument specifying the size of the vector. If you do not provide a size, EViews will create a single element vector. Once declared, vectors may be resized by repeating the command with a new size.
You may combine vector declaration and assignment. If there is no assignment statement, the vector will initially be filled with zeros.
Examples
vector vec1
vector(10) col3 = 3
rowvector(10) row3 = 3
vector vec3 = row3
VEC1 is declared as a single element vector initialized to 0. COL3 is a 10 element column vector containing the value 3. ROW3 is declared as a row vector of size 10 containing the value 3. Although declared as a column vector, VEC3 is reassigned as a row vector of size 10 with all elements equal to 3.
Cross-references
See “Matrix Language” for a discussion of matrices and vectors in EViews.
See also Coef::coef and Rowvector::rowvector.