# Components of bvarmn-------------- test_that("Test for bvarmn class", { test_lag <- 3 etf_ncol <- ncol(etf_vix) etf_spec <- set_bvar( sigma = apply(etf_vix, 2, sd), lambda = .2, delta = rep(.1, etf_ncol) ) fit_test_bvar <- bvar_minnesota(etf_vix, test_lag, etf_spec) expect_s3_class(etf_spec, "bvharspec") expect_s3_class(fit_test_bvar, "bvarmn") expect_equal( nrow(fit_test_bvar$coef), ncol(etf_vix) * test_lag + 1 ) expect_equal( ncol(fit_test_bvar$coef), ncol(etf_vix) ) }) #> Test passed 🌈