It creates a matrix of first differences of order k.
dfm(k)
k
size of the matrix
D
first difference matrix
Francesco Bartolucci, Antonio Forcina
D = dfm(5) x = runif(5) (D%*%x)