Learn R Programming

sstvars (version 1.1.0)

create_J_matrix: Create a special matrix J

Description

create_J_matrix generates a d x dp matrix J, where the first d x d block is the identity matrix I_d, and the rest is filled with zeros.

Usage

create_J_matrix(d, p)

Value

A \(d x dp\) matrix \(J\) where the first \(d x d\) block is the identity matrix \(I_d\), and the rest is filled with zeros.

Arguments

d

An integer representing the dimension of the identity matrix.

p

An integer representing the factor by which to extend the matrix with zeros.