start_stan: Start a Stan session

Description Usage Arguments Value

View source: R/start_stan.R

Description

Start a Stan session

Usage

1
2
3
4
5
6
7
8
start_stan(
  data,
  mod,
  cores = parallel::detectCores()/2,
  chains_per_core = 1,
  seed_start = 1,
  ...
)

Arguments

data

A list of objects expected by the model as data.

mod

A stan model created by rstan::stan_model().

cores

An integer value specifying the number of cores to run in parallel.

chains_per_core

An integer value specifying the number of chain to run sequentially on each core

seed_start

An integer specifying the seed to use for the first core. All subsequent cores will use seed values that increment seed_start.

...

Additional named arguments passed to rstan::sampling().

Value

No value is returned.


mike-lawrence/ezStan documentation built on Dec. 29, 2021, 1:30 a.m.