powered by
Function to generate restriction matrices
Rmatrix(p, k, type = 1, index = 0)
this value should be passed to PR.IARM
AR order
number of predictors
type = 1: H0: b1=b2=b3=0; type = 2: H0: b1+b2+b3=0
index=0 : H0 applies for all parameters; index=k : H0 applies for kth predictor
Jae H. Kim
Kim J.H., 2014, Predictive Regression: Improved Augmented Regression Method, Journal of Empirical Finance 25, 13-15.
Rmat1=Rmatrix(p=1,k=1,type=2,index=1); Rmat=Rmat1$Rmat; rvec=Rmat1$rvec
Run the code above in your browser using DataLab