[Rd] Fix for bug in arima function
pdalgd at gmail.com
Tue Apr 21 13:34:43 CEST 2015
The bug repository is like an elephant: It doesn't forget, but the gestation period is long.
In the present case, it is clear that something is not right, but someone needs to have sufficient recall and insight to check that your proposed fix is not unfixing a deliberate change. We should get to it eventually. (For some value of "we" not including "me"...)
On 20 Apr 2015, at 18:34 , Patrick Perry <pperry at stern.nyu.edu> wrote:
> There is currently a bug in the arima function. Namely, for arima models with differencing or seasonal differencing, the innovation variance estimator uses the wrong denominator whenever xreg is non-null. This is the case, for example, when fitting an ARIMA(p,1,q) model with a drift term (common in financial applications). I reported the bug (and a fix) at https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16278 , but my report may have fallen through the cracks due to the timing around the 3.2.0 release.
> The bug was introduced in the patch displayed here:
> The fix is very simple:
> I’ve posted a script that demonstrates the bug at
> Please let me know if there’s anything I can do to help get this fix incorporated.
> Patrick Perry
> Assistant Professor
> Stern School of Business
> New York University
> R-devel at r-project.org mailing list
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Office: A 4.23
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-devel