Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use brms.iter option (#1705) #1707

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading