The Scale Command

The scale command uses proportional scaling (or optionally, right-direction scaling) to control a vector, or part of a vector, or a row or column of a matrix to a given control total. The command is:

scale <control> <vectorname> [(<group>)] [<year>] [rdscale]
scale <control> <matrixname> <r rnum> [(<colgroup>)] [year] [rdscale]
scale <control> <matrixname> <c cnum> [(<rowgroup>)] [year] [rdscale]
The <control> may be a series from any bank (e.g. a.ctrl), or from any vector (e.g. b.vec2), or from any matrix (e.g. c.mat1.1) that contains the values to which the vector is to be scaled.
vectorname:

A vector whose elements are to be scaled.

group:

Optionally specifies which elements of the vector are to be scaled.

year:

Specifies a single year for which the elements of the vector are to be scaled. If year is not specified, the control is imposed over each period covered by the current fdates. :”rdscale”: Specifies that right direction scaling is to be used.

matrixname:

The name of a matrix with a rows or columns that is to be scaled.

r rnum:

c cnum:

Specifies that a row or column is to be scaled and provides the number of the row or column.

colgroup:

rowgroup:

Optionally specifies which elements of the column or row are to be scaled.

To scale a group of time series that have a common root name (such as exp1, exp2, …, expn), us the ctrl command.