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 Comments

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

Sign in to comment.

Answers (1)

Wayne King
Wayne King on 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 Comment

dav
dav on 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?

Sign in to comment.

Categories

Asked:

dav
on 2 Mar 2013

Community Treasure Hunt

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

Start Hunting!