SVAR(x, Amat = NULL, Bmat = NULL, start = NULL, ...)varestsvaresthessian = TRUEAhessian = TRUEBLRIM is the estimated
long-run impact matrix; for all other SVAR models LRIM is
NULL.varestxcall to ?VAR). One can now
impose restrictions on ABAmatBmatNULLAmatNANAAmatNULLAmatBmatNAstart0.1 is used as
starting values for the unknown coefficients. If the function is
called with hessian = TRUEAseBseVAR, SVAR2, SVEC,
logLik, irf, fevddata(Canada)
var.2c <- VAR(Canada, p = 2, type = "const")
amat <- diag(4)
diag(amat) <- NA
amat[2, 1] <- NA
amat[4, 1] <- NA
SVAR(var.2c, Amat = amat, Bmat = NULL, hessian = TRUE, method="BFGS")Run the code above in your browser using DataLab