getD: Compute k+1-th order differencing matrix

Description Usage Arguments

View source: R/getD.R

Description

Compute k+1-th order differencing matrix

Usage

1
getD(k, n, x = NULL)

Arguments

k

order of the desired piecewise polynomial; 0 constant, 1 linear, 2 quadratic

n

length of signal we want to operate on

x

predictor (must be strictly increasing!)


qhengncsu/BNRPxMCMC documentation built on Dec. 31, 2020, 2:10 a.m.