Skip to content

Commit

Permalink
Merge pull request #1707 from mvuorre/master
Browse files Browse the repository at this point in the history
Use brms.iter option (#1705)
  • Loading branch information
paul-buerkner authored Nov 18, 2024
2 parents 28c3f0f + 2cb2879 commit cbd7a26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions R/brm.R
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@
#' @param inits (Deprecated) Alias of \code{init}.
#' @param chains Number of Markov chains (defaults to 4).
#' @param iter Number of total iterations per chain (including warmup; defaults
#' to 2000).
#' to 2000). Can be set globally for the current \R session via the
#' \code{"brms.iter"} option (see \code{\link{options}}).
#' @param warmup A positive integer specifying number of warmup (aka burnin)
#' iterations. This also specifies the number of iterations used for stepsize
#' adaptation, so warmup draws should not be used for inference. The number
Expand Down Expand Up @@ -440,7 +441,8 @@ brm <- function(formula, data, family = gaussian(), prior = NULL,
drop_unused_levels = TRUE, stanvars = NULL, stan_funs = NULL,
fit = NA, save_pars = getOption("brms.save_pars", NULL),
save_ranef = NULL, save_mevars = NULL, save_all_pars = NULL,
init = NULL, inits = NULL, chains = 4, iter = 2000,
init = NULL, inits = NULL, chains = 4,
iter = getOption("brms.iter", 2000),
warmup = floor(iter / 2), thin = 1,
cores = getOption("mc.cores", 1),
threads = getOption("brms.threads", NULL),
Expand Down
5 changes: 3 additions & 2 deletions man/brm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cbd7a26

Please sign in to comment.