PR.order | R Documentation |
Function to select the order p by AIC or BIC
PR.order(x, y, pmax = 10)
x |
predictor or a matrix of predictors in column |
y |
variable to be predicted, usually stock return |
pmax |
maximum order for order selection |
Kim J.H., 2014, Predictive Regression: Improved Augmented Regression Method, Journal of Empirical Finance 25, 13-15.
p.aic |
order chosen by AIC |
p.aic |
order chosen by BIC |
Kim J.H., 2014, Predictive Regression: Improved Augmented Regression Method, Journal of Empirical Finance 25, 13-15.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.