Skip to content

Commit

Permalink
force adapt to be > 200 when an adaptive phase is used
Browse files Browse the repository at this point in the history
  • Loading branch information
armstrtw committed Apr 27, 2012
1 parent 2b73a76 commit 3d5495e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/cppbugs.R
Expand Up @@ -47,6 +47,9 @@ create.model <- function(...) {
}

run.model <- function(m, iterations, burn, adapt, thin) {
if(adapt != 0 && adapt < 200) {
stop("if adapt != 0, it must be at least 200. Turn adapt off by setting it adapt = 0.")
}
.Call("runModel", m, iterations, burn, adapt, thin, PACKAGE="rcppbugs")
}

Expand Down

0 comments on commit 3d5495e

Please sign in to comment.