Skip to contents

Wraps the rstan::stan() function, passing in the data list and various arguments controlling the MCMC process (e.g., number of chains, iterations, etc.)

Usage

fit_bss(
  model_file_name = here::here("stan_models/BSS_creel_model_02_2024-04-03.stan"),
  bss_inputs_list,
  n_chain = n_chain,
  n_cores = n_cores,
  n_iter = n_iter,
  n_warmup = n_warmup,
  n_thin = n_thin,
  adapt_delta = adapt_delta,
  max_treedepth = max_treedepth,
  init = "0",
  ...
)

Arguments

model_file_name

??

bss_inputs_list

??

n_chain

??

n_cores

??

n_iter

??

n_warmup

??

n_thin

??

adapt_delta

??

max_treedepth

??

init

??

...

??

Value

Results of stan run

Details

Dev note: we don't want our default arguments to be based on global variables.