powered by
Function to select the order p by AIC or BIC
PR.order(x, y, pmax = 10)
order chosen by AIC
order chosen by BIC
predictor or a matrix of predictors in column
variable to be predicted, usually stock return
maximum order for order selection
Jae H. Kim
Kim J.H., 2014, Predictive Regression: Improved Augmented Regression Method, Journal of Empirical Finance 25, 13-15.
data(data1) # Replicating Table 5 (excess return) y=data1$ret.nyse.vw*100 -data1$tbill*100 x=cbind(log(data1$dy.nyse), data1$tbill*100); k=ncol(x) p=PR.order(x,y,pmax=10)$p.bic; # AR(1)
Run the code above in your browser using DataLab