powered by
Returns suitably lagged and iterated differences.
# diff.spam(x, lag = 1, differences = 1, ...) # S4 method for spam diff(x, lag = 1, differences = 1, ...)
A spam matrix with elements similar to
spam
as.spam(diff(as.matrix(x), ...)).
as.spam(diff(as.matrix(x), ...))
a spam matrix containing the values to be differenced.
an integer indicating which lag to use.
an integer indicating the order of the difference.
further arguments to be passed to or from methods.
Reinhard Furrer
diff in base, precmat.
diff
base
precmat
# incidence matrix for a RW(3) model D <- diff.spam(diag.spam(10), lag=1, differences=3) t(D)%*%D
Run the code above in your browser using DataLab