Language Reference |
HANKEL Function |
The HANKEL function generates a Hankel matrix from a vector or a block Hankel matrix from a matrix. A block Hankel matrix has the property that all matrices on the reverse diagonals are the same. The argument matrix is an or matrix; the value returned is the result.
The Hankel function uses the first submatrix of the argument matrix as the blocks of the first reverse diagonal. The second submatrix of the argument matrix forms the second reverse diagonal. The remaining reverse diagonals are formed accordingly. After the values in the argument matrix have all been placed, the rest of the matrix is filled in with 0. If is , then the first columns of the returned matrix, , are the same as . If is , then the first rows of are the same as .
The HANKEL function is especially useful in time series applications that involve a set of variables that represent the present and past and a set of variables that represent the present and future. In this situation, the covariance matrix between the sets of variables is often assumed to be a block Hankel matrix. If
and if is the matrix formed by the HANKEL function, then
If
and if is the matrix formed by the HANKEL function, then
For example, the following statements produce Hankel matrices, as shown in Figure 23.123:
r1 = hankel({1 2 3 4 5}); r2 = hankel({1 2 , 3 4 , 5 6 , 7 8}); r3 = hankel({1 2 3 4 , 5 6 7 8}); print r1, r2, r3;
Copyright © SAS Institute, Inc. All Rights Reserved.