From norbert@kuder @end|ng |rom gm@||@com  Thu Jan  2 15:04:57 2025
From: norbert@kuder @end|ng |rom gm@||@com (Norbert Kuder)
Date: Thu, 2 Jan 2025 15:04:57 +0100
Subject: [Rd] Possible issue in stats/arima.R package
Message-ID: <CAMUMQUSh5t2sazypdiAeOSJ2MQssNfb89jQJvvBwRbA1PwAqeA@mail.gmail.com>

Hello all,

I am running R version 4.4.2 (2024-10-31 ucrt) on Windows 10 x64, and
noticed something that might be a minor bug (or at least inconsistent code)
in the stats/arima.R package.
I have found:
1. A missing stop() call at line 69:
    if (length(order) == 3) seasonal <- list(order = seasonal) else
("\'seasonal\' is of the wrong length")
it should be rather:
    if (length(order) == 3) seasonal <- list(order = seasonal) else
stop("\'seasonal\' is of the wrong length")

2. An unused 'mod' variable assignment at line 190:

mod <- makeARIMA(trarma[[1]], trarma[[2]], Delta, kappa, SSinit)

I am trying to confirm whether this is intended behavior or possibly an
overlooked detail. Could someone please clarify if the current logic is
correct?

Thank you.

Best regards,
Norbert Kuder

	[[alternative HTML version deleted]]



[Rd] Possible issue in stats/arima.R package
Norbert Kuder