powered by
It creates a matrix of first differences of order k.
dfm(k)
first difference matrix
size of the matrix
Francesco Bartolucci, Antonio Forcina
D = dfm(5) x = runif(5) (D%*%x)
Run the code above in your browser using DataLab