an object of class TSmodel which gives the structure
of the model for which coefficients are used. coef(model) should
be the same length as coefficients.
data
an object of class TSdata which gives the data with
which the model is to be evaluated.
error.weights
a vector of weights to be applied to the
squared prediction errors.
Value
The value of the sum squared errors for a prediction horizon given by the
length of error.weights. Each period ahead is weighted by the corresponding
weight in error.weights.
concept
DSE
Details
This function is primarily for use in parameter optimization,
which requires that an objective function be specified by a vector
of parameters.It returns only the sum of the weighted squared
errors (eg.for optimization).
The sample size is determined by TobsOutput(data).