powered by
Compute AIC of a series of Multivariate AR models and returns the order of the model which minimizes this AIC.
ARorder(data, min=1,max = 10,type='AIC')
timeseries to compute autoregressive order of.
Minimum order of AR model to check.
Maximum order of AR model to check.
Use AIC or BIC to compute model order.
returns the order (>=1) of the autoregressive model which minimizes the AIC or BIC
# NOT RUN { # Compute the AR order of semdata based on AIC, with a maximum order of 10 to reduce computing time. ARorder(semdata,max=10) # }
Run the code above in your browser using DataLab