2 parents 0316a04 + 6b9f824 commit 3d08a22Copy full SHA for 3d08a22
1 file changed
R/arima.R
@@ -226,11 +226,7 @@ SD.test <- function(wts, s = frequency(wts)) {
226
for (i in seq_len(s - 1)) {
227
Fhataux[, i] <- R1[, i] * residuals(lmch)
228
}
229
- for (i in seq_len(N)) {
230
- for (n in seq_len(s - 1)) {
231
- Fhat[i, n] <- sum(Fhataux[1:i, n])
232
- }
233
+ Fhat[] <- apply(Fhataux, 2, cumsum)
234
wnw <- 1 - seq_len(ltrunc) / (ltrunc + 1)
235
Ne <- nrow(Fhataux)
236
Omnw <- 0
0 commit comments