create_Fi_matrix function

Create Matrix F_i

Create Matrix F_i

create_Fi_matrix function generates a (Tobs×Tobs)(T_obs \times T_obs) matrix with 1's on the (i+1)-th sub-diagonal and 0's elsewhere.

create_Fi_matrix(i, T_obs)

Arguments

  • i: Integer, the lag for which the matrix is constructed, corresponding to the sub-diagonal filled with 1's.
  • T_obs: Integer, the number of time periods or observations in the dataset, corresponding to the dimensions of the matrix.

Returns

A (Tobs×Tobs)(T_obs \times T_obs) matrix with 1's on the (i+1)-th sub-diagonal and 0's elsewhere.

Details

Used in Portmanteau_test. The matrix FiF_i in Lütkepohl (2005), p.158.

References

  • Lütkepohl, H. (2005). New Introduction to Multiple Time Series Analysis. Springer.
  • Maintainer: Savi Virolainen
  • License: GPL-3
  • Last published: 2025-02-27