From 5bf56848e4712cd318332646face012dec6ff291 Mon Sep 17 00:00:00 2001 From: danielturek Date: Sat, 4 Dec 2021 19:11:12 -0500 Subject: [PATCH] added definition for jags burninTimeResult when burnin=0 --- compareMCMCs/R/MCMCdef_jags.R | 1 + 1 file changed, 1 insertion(+) diff --git a/compareMCMCs/R/MCMCdef_jags.R b/compareMCMCs/R/MCMCdef_jags.R index 01c4c37..9f8b08c 100644 --- a/compareMCMCs/R/MCMCdef_jags.R +++ b/compareMCMCs/R/MCMCdef_jags.R @@ -29,6 +29,7 @@ MCMCdef_jags_impl <- function(MCMCinfo, }) setupTime <- setupTimeResult[3] + burninTimeResult <- system.time(0) ## needs to be defined even when burnin = 0 burninTime <- 0 if(MCMCcontrol$burnin > 0) { burninTimeResult <- system.time(update(object = jags_mod,