Object Reference : Object View and Procedure Reference : Vector
Fill a vector with the specified values.
vector_name.fill(options) n1[, n2, n3 …]
Follow the keyword with a list of values to place in the specified object. Each value should be separated by a comma.
Running out of values before the object is completely filled is not an error; the remaining cells or observations will be unaffected, unless the “l” (loop) option is specified. If, however, you list more values than the vector can hold, EViews will not modify any observations and will return an error message.
Loop repeatedly over the list of values as many times as it takes to fill the vector.
o=integer (default=1)
Fill the vector starting from the specified element. Default is the first element.
The following example declares a four element vector MC, initially filled with zeros. The second line fills MC with the specified values and the third line replaces from row 3 to the last row with –1.
vector(4) mc
mc.fill 0.1, 0.2, 0.5, 0.5
mc.fill(o=3, l) -1
See “Matrix Language” for a detailed discussion of vector and matrix manipulation in EViews.