Usage
tsd(x, specs=NULL, method="loess", type="additive", ...)
## S3 method for class 'tsd':
summary(tsdobj)
## S3 method for class 'tsd':
plot(tsdobj, series=1, stack=TRUE, resid=TRUE,
labels, leg=TRUE, lpos=c(0, 0), ...)
## S3 method for class 'tsd':
extract(tsdobj, n, series=NULL, components=NULL)
## S3 method for class 'tsd':
specs(tsdobj)Arguments
x
an univariate or multivariate regular time series ('rts' in Splus or 'ts' in R) to be decomposed
specs
specifications are collected from a 'tsd' object, using the specs method. This allows for reusing parameters issued from a previous similar analysis
method
the method to use to decompose the time series. Currently, possible values are: "diff", "average", "median", "evf", "reg" or "loess" (by default). The corresponding function
type
the type of model to use: either "additive" (by default) or "multiplicative". In the additive model, all components must be added to reconstruct the initial series. In the multiplicative model, they must be multiplied (one compon
...
(1) for tsd(): further arguments to pass to the corresponding decXXXX() function. (2) for plot(): further graphical arguments
tsdobj
a 'tsd' object as returned by the function tsd(), or any of the decXXXX() functions
series
(1) for plot(): the series to plot. By default, series=1, the first (or possibly unique) series in the 'tsd' object is plotted. (2) for extract: the name or the index of the series to extract. If series
stack
graphs of each component are either stacked (stack=TRUE, by default), or superposed on the same graph stack=FALSE
resid
do we have to plot also the "residuals" components (resid=TRUE, by default) or not? Usually, in a stacked graph, you would like to plot the residuals, while in a superposed graph, you would not
labels
the labels to use for all y-axes in a stacked graph, or in the legend for a superposed graph. By default, the names of the components ("trend", "seasonal", "deseasoned", "filtered", "residuals", ...) are used
leg
only used when stack=FALSE. Do we plot a legend (leg=TRUE or not?
lpos
position of the upper-left corner of the legend box in the graph coordinates (x,y). By default, leg=c(0,0)
n
the number of series to extract (from series 1 to series n). By default, n equals the number of series in the 'tsd' object. If both series and components arguments are NULL, all series and components are extracted and this method
components
the names or indices of the components to extract. If components=NULL (by default), then all components of the selected series are extracted. It is also possible to specify negative indices. In this case, all components are extracted, except
synopsis
tsd(x, specs=NULL, method="loess", type=if (method == "census") "multiplicative" else "additive", lag=1, axes=1:5, order=1, times=1, sides=2, ends="fill", weights=NULL, s.window=NULL, s.degree=0, t.window=NULL, t.degree=2, robust=FALSE, trend=FALSE, xreg=NULL)
extract.tsd(e, n, series=NULL, components=NULL, ...)
plot.tsd(x, series=1, stack=TRUE, resid=TRUE, col=par("col"), lty=par("lty"), labels=dimnames(X)[[2]], leg=TRUE, lpos=c(0, 0), xlab="time", ylab="series", main=paste("Series decomposition by", x$specs$method, "-", x$specs$type), ...)
print.specs.tsd(x, ...)
print.summary.tsd(x, ...)
print.tsd(x, ...)
specs.tsd(x, ...)
summary.tsd(object, ...)