powered by
This function allows you to calculate AIC, BIC, HQ for pseudo-ARX models.
selection.lag(y, x, p_max)
Data vector of time series observations.
Matrix of data (every column represents one time series). Specify NULL or "not" if not wanted.
Maximum number of autoregressive terms to be included.
Vector containing values BIC for p=0 up to p_max.
Vector containing values AIC for p=0 up to p_max.
vector containing values HQ for p=0 up to p_max.
# NOT RUN { data <- sim.marx(c('t',1,1), c('t',1,1),100,0.5,0.4,0.3) selection.lag(data$y,data$x,8) # }
Run the code above in your browser using DataLab