On Thu, 26 Apr 2012, Riccardo (Jack) Lucchetti wrote:
> on Wed, 25 Apr 2012, Henrique Andrade wrote:
>
>> matrix teste_t = $coeff./$stderr
>> matrix roots = $["roots"]
>> if abs(teste_t)>critical(t, $T, 0.025) && abs(roots[,1])>1
>
> What do you want to do here, exactly? "teste_t" is a matrix, so its absolute
> value is a matrix too. How can you base an "if" condition on a
> multiple-valued object?
You can actually do that, but (as I think Jack is implying) you have
to be careful what you intend. In this case the "if" condition will
evaluate as true if and only if _every_ element of the matrix
teste_t exceeds the two-sided 5% critical value of the student t
distribution -- that is, iff every arima coefficient is
"significant". (...)
Dear Jack and Allin,
Sorry if I wasn't clear enough on my messages. Blame on my poor English ;-)
Let me try to explain what is the main goal of the AutoARIMA function:
1. The user selects a time series;
2. Determines the max number os AR(p) and MA(q) terms;
3. The AutoARIMA function will estimate all the possible combinations of ARIMA(p,1,q),
4. Every time the estimated model exhibits its roots outside the unit circle and all its
coefficients have statistical significance, AutoARIMA will save the predictions of that model.
Answering the other question that Allin did...