bernadette-eu / Bernadette

Bayesian analysis of infectious disease transmission dynamics, with a particular focus on Coronavirus Disease 2019 (COVID-19)
GNU General Public License v3.0
1 stars 5 forks source link

Cannot alter the number of parallel Markov chains from rstan default #2

Closed bernadette-eu closed 1 year ago

bernadette-eu commented 1 year ago

The error occurs because the option chains is not accepted by rstan::optimizing(). In https://github.com/stan-dev/rstanarm/blob/master/R/stan_betareg.fit.R, rstan::sampling() uses random initial random points. On the contrary, in the Bernadette package the initial points are informed by the estimates of the optimization routine.