PR.Fore | R Documentation |
Function for forecasting based on Imporved ARM
PR.Fore(x, y, M, h = 10)
x |
predictor or matrix of predictors in column |
y |
variable to be predicted, usually stock return |
M |
Estimation results of the function PR.IARM |
h |
forecasting period |
Function for forecasting based on Imporved ARM
Fore |
Out-of sample and dynamic forecasts for y and x |
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=4
Rmat1=Rmatrix(p,k,type=1,index=1); Rmat=Rmat1$Rmat; rvec=Rmat1$rvec
M=PR.IARM(x,y,p,Rmat,rvec)
PRF=PR.Fore(x,y,M)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.