## S3 method for class 'SS':
l(obj1, obj2, sampleT=NULL, predictT=NULL, error.weights=0,
return.state=FALSE, return.track=FALSE, result=NULL,
compiled=.DSECOMPILED,
warn=TRUE, return.debug.info=FALSE, ...)
filter$state
containing E[z(t)|y(t-1), u(t)] is returned as part of the
result. This can be a fairly large matrix.filter$track
containing
the expectation of the tracking error given y(t-1) and u(t) is
returned as part of the result. This can be an very large array.TSestModel$estimates
is returned.Output data must be at least as long as sampleT. If sampleT is not supplied it is taken to be periods(data).
Input data must be at least as long as predictT. predictT must be at least as large as sampleT. If predictT is not supplied it is taken to be sampleT.
If error.weights
is greater than zero then weighted prediction
errors are calculated up to the horizon indicated
by the length of error.weights. The weights are applied to the squared
error at each period ahead.
l
l.ARMA
TSmodel
TSestModel.object
smoother
if(is.R()) data("eg1.DSE.data.diff", package="dse1")
model <- toSS(TSmodel(estVARXls(eg1.DSE.data.diff)))
lmodel <- l.SS(model,eg1.DSE.data.diff)
Run the code above in your browser using DataLab