A list with elements like, cov, pred, and sampleT. pred and sampleT are
as supplied (and are returned as this is a utility function called by
other functions and it is convenient to pass them along). cov is the
covariance of the residual and like is a vector of four elements
representing the total, constant, determinant and covariance
terms of the negative log likelihood function.
Details
Residuals are calculated as
pred[1:sampleT,,drop=FALSE] - data[1:sampleT,,drop=FALSE]
and then statistics are calculated based on these residuals. If pred
or data are NULL they are treated as zero.