Message-ID: <111060c20911160038p6d75b72dif16664652d215558@mail.gmail.com>
Date: 2009-11-16T08:38:13Z
From: Matthieu Stigler
Subject: Residuals with Elliot-Rothenberg-Stock Unit Root Test
In-Reply-To: <C9328F0EEDC3BC439FDABD12060E9109AF163C@erini1.ERINI.local>
Dear Jos?
At best always provide code, even if trivial, as in:
library(urca)
ers<-ur.ers(sunspots)
For your question, I think:
res<-residuals(ers at testreg)
you could have found it using:
str(ers)
and then looking for the differents slots shown.
Hope this helps
Matthieu
2009/11/13 Jose Iparraguirre D'Elia <Jose at erini.ac.uk>:
> Does anyone know how to retrieve the residuals after running an Elliot-Rothenberg-Stock (ERS) unit root test on a time series (urca package)? There are no 'residuals' or 'res' (or similar) slots in the ur.ers-class, but a plot instruction - ie plot(ur.ers(....)) renders amongst other things a residual plot.
>
> If an augmented Dickey-Fuller test is run, an object of ur.df-class is generated which does contain a 'res' slot vector of residuals, but with the ur.ers-class, I couldn't figure out how to send the residuals that are plotted to an object as I can't find the vector with the values that are automatically plotted.
>
> Regards,
>
> Jose
>
>
> Mr Jos? Luis Iparraguirre
> Senior Research Economist
> Economic Research Institute of Northern Ireland
> 2 -14 East Bridge Street
> Belfast BT1 3NQ
> Northern Ireland
> United Kingdom
>
> Tel: +44 (0)28 9072 7365
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>