SVAR(x, Amat = NULL, Bmat = NULL, start = NULL, ...)varestsvaresthessian = TRUEAhessian = TRUEAvarestxcall 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 = TRUEAseBseVARdata(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