find ar oder using aic

I have a data set y. I need to find the best ar order using AIC.
Can some one help me with the code please?
thanks

2 commentaires

Wayne King
Wayne King le 2 Mar 2013
do you have the System Identification Toolbox?
dav
dav le 2 Mar 2013
yes, I do.

Connectez-vous pour commenter.

Réponses (1)

Wayne King
Wayne King le 2 Mar 2013

1 vote

You can use aic() in the System Identification Toolbox.
The steps:
-- Create models for given AR orders using arx()
-- Use aic() on the models to compare

1 commentaire

dav
dav le 2 Mar 2013
thank yo for your input. Actually i have to use this inside a loop. so i need a function that does this automatically and calculate the best order.
can you help me with it please?

Connectez-vous pour commenter.

Catégories

Question posée :

dav
le 2 Mar 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by