Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-04 Thread ismael ismael via R-devel
I does help! Thank you for clarifications! Sent from my iPhone > On Feb 4, 2020, at 9:36 AM, Rui Barradas wrote: > > Hello, > > Don't worry, we've seen worst questions :). > Inline. > > Às 13:20 de 04/02/20, ismael ismael escreveu: >> I am now aware that I should not post this type of quest

Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-04 Thread Rui Barradas
Hello, Don't worry, we've seen worst questions :). Inline. Às 13:20 de 04/02/20, ismael ismael escreveu: I am now aware that I should not post this type of questions on this group. However, I would like to have some clarifications related to the response you've already provided. The code you p

Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-04 Thread ismael ismael via R-devel
I am nowaware that I should not post this type of questions on this group. However, Iwould like to have some clarifications related to the response you've  alreadyprovided. The code you provided yields accurate results, however I still haveissues grasping the loop process in case 1 & 2. In ca

Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-03 Thread Rui Barradas
Hello, Inline. Às 11:04 de 03/02/20, Martin Maechler escreveu: ismael ismael via R-devel on Mon, 3 Feb 2020 04:09:24 -0600 writes: > It works!!! > Thank you so much for your help! and it was an "R help" question which Rui so generously answered. But this is the R-devel mail

Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-03 Thread Martin Maechler
> ismael ismael via R-devel > on Mon, 3 Feb 2020 04:09:24 -0600 writes: > It works!!! > Thank you so much for your help! and it was an "R help" question which Rui so generously answered. But this is the R-devel mailing list. Please do *NOT* misuse it for R-help questions

Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-03 Thread ismael ismael via R-devel
It works!!! Thank you so much for your help! Sent from my iPhone > On Feb 3, 2020, at 3:47 AM, Rui Barradas wrote: > > Hello, > > You can solve the problem in two different ways. > > 1. Redefine storage1 as a matrix and extract the aic *in* the loop. > > storage1 <- matrix(0, 4, 4) > for(p

Re: [Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-03 Thread Rui Barradas
Hello, You can solve the problem in two different ways. 1. Redefine storage1 as a matrix and extract the aic *in* the loop. storage1 <- matrix(0, 4, 4) for(p in 0:3){ for(q in 0:3){ storage1[p + 1, q + 1] <- arima(etc)$aic } } 2. define storage1 as a list. storage1 <- vector("list",

[Rd] Stroring and extracting AICs from an ARIMA model using a nested loop

2020-02-02 Thread ismael ismael via R-devel
Hello I am trying to extract AICs from an ARIMA estimation with different combinations of p & q ( p =0,1,2,3 and q=0,1.2,3). I have tried using the following code unsucessfully. Can anyone help? code: storage1 <- numeric(16) for (p in 0:3){     for (q in 0:3){       storage1[p]  <- arima(x,order=