Skip to content

Commit

Permalink
added definition for jags burninTimeResult when burnin=0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielturek committed Dec 5, 2021
1 parent 7faa8c1 commit 5bf5684
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compareMCMCs/R/MCMCdef_jags.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5bf5684

Please sign in to comment.