Rmatrix | R Documentation |
Function to generate restriction matrices
Rmatrix(p, k, type = 1, index = 0)
p |
AR order |
k |
number of predictors |
type |
type = 1: H0: b1=b2=b3=0; type = 2: H0: b1+b2+b3=0 |
index |
index=0 : H0 applies for all parameters; index=k : H0 applies for kth predictor |
Function to generate restriction matrices
Rmat |
this value should be passed to PR.IARM |
rvec |
this value should be passed to PR.IARM |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.