Learn R Programming

WH (version 1.1.2)

build_D_mat: Build Difference Matrix of Given Order

Description

Build Difference Matrix of Given Order

Usage

build_D_mat(n, q)

Value

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

Arguments

n

Number of observations in the problem

q

Order of the penalization matrix