This function computes the fitted residuals and fitted innovations from an AR(p>0) bent-cable regression.
Fitted residuals correspond to the detrended time series, where the fitted bent cable is subtracted from the data. They retain the autocorrelation structure of the response time series.
Fitted innovations are the estimated residual noise after adjusting for the AR(p) structure, and should be approximately independent if the AR(p) fit successfully captures the actual autocorrelation in the data.
Both types of errors may be used for model diagnosis.
A numeric vector of fitted residuals; it has the same length as the response data.
A numeric vector of fitted innovations; the first value in the vector corresponds to the (p+1)st time point.
This function fails if
ar.p.fit is from a non-AR(p>0) fit.
The fitted innovations are only meaningful if
associated with equidistant time points with unit increments.
This function is intended for internal use by
bentcableAR package references.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.