Compute a lagged version of a time series, shifting the time base back by a given number of observations.
lag is a generic function; this page documents its default
1 2 3 4
A vector or matrix or univariate or multivariate time series
The number of lags (in units of observations).
further arguments to be passed to or from methods.
Vector or matrix arguments
x are given a
A time series object with the same class as
Note the sign of
k: a series lagged by a positive
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.