powered by
# diff.spam(x, lag = 1, differences = 1, ...) ## S3 method for class 'spam': diff(x, lag = 1, differences = 1, ...)
spam
as.spam(diff(as.matrix(x), ...))
diff
base
precmat
# incidence matrix for a RW(3) model D <- diff.spam(diag.spam(10), lag=1, differences=3) t(D)
Run the code above in your browser using DataLab