Too many input arguments - ARIMA model selection
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    emanuele colombo azimonti
 el 25 de Mzo. de 2020
  
    
    
    
    
    Respondida: Shishir Singhal
      
 el 9 de Abr. de 2020
            Good Afternoon , I get the error :
" Error using arima
Too many input arguments.
Error in CPIForecasting (line 42)
        mdl = arima(p,0,q);"
For this code:
pmax = 4; qmax = 4; 
aic=NaN(pmax+1,qmax+1); bic = aic;
const = 1;
for p = 0:pmax
    for q = 0:qmax
        mdl = arma(p,0,q);
        [~,~,logL] = estimate(mdl,y,'Display','off');
        kk = (p+q+1); nobs=size(y,1)-pmax;
        aic(p+1,q+1) =(-2*logL/nobs)+(2*kk/nobs);
        bic(p+1,q+1) = (-2*logL/nobs)+(2*kk*log(nobs)/nobs);
    end
end
I am trying to estimate the model by using the BIC.
0 comentarios
Respuestas (1)
  Shishir Singhal
      
 el 9 de Abr. de 2020
        In code, it is mentioned as arma(p, 0, q). 
I guess it should be arima(p, 0, q).
0 comentarios
Ver también
Categorías
				Más información sobre Conditional Mean Models en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

