The Coef, Flow, Getsum, Load, and Store Commands

coef <matrix> <vec> [year]

Convert the named flow matrix to a coefficient matrix by dividing each column of the matrix by the corresponding element of the named vector. If no year is named, the command works over the fdates range.

flow <matrix> <vec> [year]

Multiply each column of the matrix by the corresponding element of the named vector. If no year is named, the command works over the fdates range. This command is the opposite of coef command.

getsum <matrix> <r|c> [<group>] <vector>

Get the sum of the rows or columns of a given matrix for the range of periods specified by the fdates. The first argument must be the matrix or vector for which we want to obtain the sums. The matrix is assumed to be stored in the default vam file unless a bank letter is provided. The second argument must be ‘r’ or ‘c’ (to obtain the sum by rows or by columns). If only a partial sum is desired, then the columns or rows are specified next. The last argument is the vector where the result is to be stored; this vector must be located in the default vam file. The sum is calculated and stored for all years, so that we cannot have mixed information in the target vector.

load <vector_name>

When G7 is working on a vector in a Vam file, it pulls the whole time series for the vector into a sort of vector workspace. Usually, this is done automatically simply by referring to the vector or one of its elements. The load command enables the user to do this loading explicitly. It is used principally in connection with the index command.

For example:

load pce
store

Store the currently loaded vector back to the Vam file with the modifications that have been made. This store is automatic when a new load or implicit load is encountered. When a quit command is given with an unstored, loaded vector, the program will store the vector automatically.