Storing Akaike number
Posted: Mon Sep 15, 2014 10:52 am
Hello,
I need to store the Akaike number in a matrix so I can after choose the best model for each serie. I tried in 2 different ways.
The First:
'create matrix to store coefficients.
matrix(1,19) coefs
for !i=1 to 19
for %y Avic Bebidas Chapas Diversos Fumos hortifru Mademobi transportes eletcom Mecanica Metalurgica Papel aliment farmperfu plastborr Quimicos TexteisVest VidroeCer Total
equation {%y}_eq.ls {%y} c sar(1)
'store coefficients into matrix
colplace(coefs, {%y}_eq.@aic, !i)
And I need to do for all the list below too:
equation {%y}_eq.ls {%y} c sma(1)
equation {%y}_!ieq.ls {%y} c ar(1)
equation {%y}_!ieq.ls {%y} c ma(1)
equation {%y}_!ieq.ls {%y} c sar(1) sma(1)
equation {%y}_!ieq.ls {%y} c sar(1) ar(1)
equation {%y}_!ieq.ls {%y} c sar(1) ma(1)
equation {%y}_!ieq.ls {%y} c sma(1) ar(1)
equation {%y}_!ieq.ls {%y} c sma(1) ma(1)
equation {%y}_!ieq.ls {%y} c ma(1) ar(1)
equation {%y}_!ieq.ls {%y} c sar(1) sma(1) ar(1)
equation {%y}_!ieq.ls {%y} c sar(1) sma(1) ma(1)
equation {%y}_!ieq.ls {%y} c sma(1) ar(1) ma(1)
equation {%y}_!ieq.ls {%y} c ma(1) ar(1) sar(1)
equation {%y}_!ieq.ls {%y} c sar(1) sma(1) ar(1) ma(1)
next
next
Bu then appears the message: “Scalar “” sent to a function which is expecting a matrix in COLPLACE(COEFS, AVIC.EQ@AIC, 1)”
I tried in another way:
'create matrix to store coefficients.
matrix(19,19) x
vector(19) y
!i=1
y(!i) = !i
for !j=1 to 19
for %y Avic Bebidas Chapas Diversos Fumos hortifru Mademobi transportes eletcom Mecanica Metalurgica Papel aliment farmperfu plastborr Quimicos TexteisVest VidroeCer Total
equation {%y}_eq.ls {%y} c sar(1)
x(!i;!j) = {%y}_eq.@aic
next
next
But appears the message: "Sintax error in "X(1,1) = AVIC_eq.@aic"
Can you help me?
Thank you!
I need to store the Akaike number in a matrix so I can after choose the best model for each serie. I tried in 2 different ways.
The First:
'create matrix to store coefficients.
matrix(1,19) coefs
for !i=1 to 19
for %y Avic Bebidas Chapas Diversos Fumos hortifru Mademobi transportes eletcom Mecanica Metalurgica Papel aliment farmperfu plastborr Quimicos TexteisVest VidroeCer Total
equation {%y}_eq.ls {%y} c sar(1)
'store coefficients into matrix
colplace(coefs, {%y}_eq.@aic, !i)
And I need to do for all the list below too:
equation {%y}_eq.ls {%y} c sma(1)
equation {%y}_!ieq.ls {%y} c ar(1)
equation {%y}_!ieq.ls {%y} c ma(1)
equation {%y}_!ieq.ls {%y} c sar(1) sma(1)
equation {%y}_!ieq.ls {%y} c sar(1) ar(1)
equation {%y}_!ieq.ls {%y} c sar(1) ma(1)
equation {%y}_!ieq.ls {%y} c sma(1) ar(1)
equation {%y}_!ieq.ls {%y} c sma(1) ma(1)
equation {%y}_!ieq.ls {%y} c ma(1) ar(1)
equation {%y}_!ieq.ls {%y} c sar(1) sma(1) ar(1)
equation {%y}_!ieq.ls {%y} c sar(1) sma(1) ma(1)
equation {%y}_!ieq.ls {%y} c sma(1) ar(1) ma(1)
equation {%y}_!ieq.ls {%y} c ma(1) ar(1) sar(1)
equation {%y}_!ieq.ls {%y} c sar(1) sma(1) ar(1) ma(1)
next
next
Bu then appears the message: “Scalar “” sent to a function which is expecting a matrix in COLPLACE(COEFS, AVIC.EQ@AIC, 1)”
I tried in another way:
'create matrix to store coefficients.
matrix(19,19) x
vector(19) y
!i=1
y(!i) = !i
for !j=1 to 19
for %y Avic Bebidas Chapas Diversos Fumos hortifru Mademobi transportes eletcom Mecanica Metalurgica Papel aliment farmperfu plastborr Quimicos TexteisVest VidroeCer Total
equation {%y}_eq.ls {%y} c sar(1)
x(!i;!j) = {%y}_eq.@aic
next
next
But appears the message: "Sintax error in "X(1,1) = AVIC_eq.@aic"
Can you help me?
Thank you!