makeLeadLagMatrix {cointReg} | R Documentation |
Leads-and-Lags Matrix
Description
Generates leads-and-lags matrix for the Dynamic OLS estimator.
Usage
makeLeadLagMatrix(x, n.lag, n.lead)
Arguments
x |
[ |
n.lag , n.lead |
[ |
Value
[matrix
]. Leads-and-lags matrix.
See Also
Other D-OLS: cointRegD
,
getLeadLag
, getModD
Examples
x <- matrix(1:20, 2, byrow = TRUE)
cointReg:::makeLeadLagMatrix(x = x, n.lag = 2, n.lead = 3)
[Package cointReg version 0.2.0 Index]