Get D OLS model.
Generates an lm model for the Dynamic OLS estimator.
getModD(x, y, deter, n.lag, n.lead, check = FALSE)
x |
[ |
y |
[ |
deter |
[ |
n.lag, n.lead |
[ |
check |
[ |
[lm]. An lm object, containing an additional
list element (aux) with D-OLS specific objects:
Z [matrix]jointed matrix of deterministics and x
x.delta [matrix]differences of x
dx.all [matrix]leads-and-lags matrix
all.trunc [matrix]truncated version of jointed matrix of Z and dx.all
y.trunc [matrix]truncated version of y
Other D-OLS: cointRegD,
getLeadLag, makeLeadLagMatrix
set.seed(1909) y <- matrix(cumsum(rnorm(100)), ncol = 1) x <- matrix(rep(y, 4) + rnorm(400, mean = 3, sd = 2), ncol = 4) deter <- cbind(1, 1:100) cointReg:::getModD(x = x, y = y, deter = deter, n.lag = 2, n.lead = 3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.