build_D_mat {WH}R Documentation

Build Difference Matrix of Given Order

Description

Build Difference Matrix of Given Order

Usage

build_D_mat(n, q)

Arguments

n

Number of observations in the problem

q

Order of the penalization matrix

Value

The difference matrix of order q for a vector containing n observations.


[Package WH version 1.1.1 Index]