a regular time series ('rts' under S+ and 'ts' under R)
type
the type of model, either type="additive" (by default), or type="multiplicative"
lag
The lag between the two observations used to calculate differences. By default, lag=1
order
The order of the difference corresponds to the number of times it is applied, by default order=1
ends
either "NAs" (fill first values that are not calculable with NAs), or "fill" (fill them with the average of following observations before applying the filter, by default), or "drop" (do not fill them). If ends="drop", the filtered series will
Value
a 'tsd' object
Details
This function is a wrapper around the diff() function to create a 'tsd' object. It also manages initial values through the ends argument.
References
Kendall, M., 1976. Time-series. Charles Griffin & Co Ltd. 197 pp.
Laloire, J.C., 1972. M�thodes du traitement des chroniques. Dunod, Paris, 194 pp.
Philips, L. & R. Blomme, 1973. Analyse chronologique. Universit� Catholique de Louvain. Vander ed. 339 pp.