Returns a zero-argument function that initialises each chain at the prior
means stored in stan_data. Passing this to rstan::sampling()
via init = make_stan_init_fn(stan_data) avoids the default
Uniform(-2, 2) draws on the unconstrained scale, which send the GG
and Burr XII log-posteriors to \(-\infty\) during initialisation.
Arguments
- stan_data
Stan data list as returned by
prepare_stan_data_from_datasets.