Description Usage Arguments Details Value Author(s) References See Also Examples
Methods for objects of class "arrob"
as it is returned by a call to the function arrob
. There are methods to extract (robustly filtered) residuals, fitted values or the robustly filtered observations themselves. There is also a method for (robust) prediction.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## S3 method for class 'arrob'
residuals(object, x = object$x,
method = c("recursive", "statespace", "nonrobust"),
na.action = na.fail, ...)
## S3 method for class 'arrob'
fitted(object, x = object$x,
method = c("recursive", "statespace", "nonrobust"),
na.action = na.fail, ...)
filtered(object, ...)
## S3 method for class 'arrob'
filtered(object, x = object$x,
method = c("recursive", "statespace", "nonrobust"), na.action, ...)
## S3 method for class 'arrob'
predict(object, newdata, n.ahead = 1, se.fit = TRUE,
method = c("recursive", "statespace", "nonrobust"), ...)
|
object |
an object of class |
x |
numeric vector of a univariate time series. |
method |
character string denoting the robust filtering method to be used, see Details. |
newdata |
numeric vector of a univariate time series of which future values sould be predicted. |
n.ahead |
integer value giving the number of steps ahead at which to predict. |
se.fit |
logical value. Should the estimated standard errors of the prediction be returned? |
na.action |
function to be called to handle missing values. |
... |
additional arguments passed to the function |
If method = "recursive"
or method = "statespace"
, the observations in argument x
(respectively newdata
) are robustly filtered. See the function filterrob
for details.
Numeric vector of residuals, fitted values or filtered observations.
For predict.arrob
, a time series of predictions, or if se.fit = TRUE
, a list with components pred
, the predictions, and se
, the estimated standard errors.
Alexander Dürre and Tobias Liboschik
Maronna, R. A., Martin, R. D., and Yohai, V. J. (2006): Robust Statistics: Theory and Methods, Wiley, chapter 8, doi: 10.1002/0470010940.
Robust fitting of autoregressive models with arrob
.
Plotting method plot.arrob
for fitted autoregressive models.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.