From d11a03fa1edd7513f54d34527aaa4652789ecc98 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 3 Sep 2024 12:22:24 +1000 Subject: [PATCH] fix irf example --- R/irf.mvgam.R | 5 +++-- man/irf.mvgam.Rd | 5 +++-- src/mvgam.dll | Bin 1091584 -> 1091584 bytes 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/R/irf.mvgam.R b/R/irf.mvgam.R index 21b1926a..5335f368 100644 --- a/R/irf.mvgam.R +++ b/R/irf.mvgam.R @@ -38,10 +38,11 @@ #' trend_formula = ~ 1, #' trend_model = VAR(cor = TRUE), #' family = gaussian(), -#' data = simdat$data_train) +#' data = simdat$data_train, +#' silent = 2) #' #' # Calulate Generalized IRFs for each series -#' irfs <- calc_irfs(mod, h = 12, cumulative = FALSE) +#' irfs <- irf(mod, h = 12, cumulative = FALSE) #' #' # Plot them #' plot(irfs, series = 1) diff --git a/man/irf.mvgam.Rd b/man/irf.mvgam.Rd index a2c5e38b..14436390 100644 --- a/man/irf.mvgam.Rd +++ b/man/irf.mvgam.Rd @@ -55,10 +55,11 @@ mod <- mvgam(y ~ -1, trend_formula = ~ 1, trend_model = VAR(cor = TRUE), family = gaussian(), - data = simdat$data_train) + data = simdat$data_train, + silent = 2) # Calulate Generalized IRFs for each series -irfs <- calc_irfs(mod, h = 12, cumulative = FALSE) +irfs <- irf(mod, h = 12, cumulative = FALSE) # Plot them plot(irfs, series = 1) diff --git a/src/mvgam.dll b/src/mvgam.dll index 62370367f72e40849a61bc9363858b7c297f9622..6180c6354cb0ce30d11f92e6e25e5e66176ba9f0 100644 GIT binary patch delta 78 zcmWN|yA4240EW@H-tSwO!Wg$D7O;g0DE>rLlm-!NsJ~HEoc_#@n;*BY=AMpiFwMCj hJYj?{0uhQx#3B)?$V4s*QHn~`7q;#Gd`G=~#}A+ZBar|A delta 78 zcmV~$yA4240EW@H-fwdlLrW~6*0O