Draw samples from the posterior given a Stan/Torsten model and patient data
get_mcmc_posterior.Rd
Draw samples from the posterior given a Stan/Torsten model and patient data
Arguments
- mod
compiled Stan model
- data
dataset (see
new_stan_data()
)- seed
seed for sampling
- chains
number of MCMC chains to simulate, passed on to Stan model
- iter_warmup
number of warmup (burn-in) iterations
- iter_sampling
number of regular sampling iterations
- output_dir
output directory
- verbose
verbosity
- method
either
hmc
(Hamilton Monte Carlo, using NUTS by default) orvi
(variational inference).- skip_processing
will return the raw output from the sampler, without further processing. This can sometimes be useful when errors occur in the processing stage.
- ...
arguments passed to
mod$sample()
Common arguments to cmdstanr include:
chains
parallel_chains
iter_warmup
iter_sampling
thim
adapt_delta