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:
- 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.