stan-dev / rstanarm

rstanarm R package for Bayesian applied regression modeling
https://mc-stan.org/rstanarm
GNU General Public License v3.0
385 stars 132 forks source link

Does stan_surv support cores>1? #577

Open gqwang1001 opened 1 year ago

gqwang1001 commented 1 year ago

Summary:

The code stopped when specifying cores>1. Does anyone notice the same issue?

maurosc3ner commented 10 months ago

Hi,

I have succesfully used all cores of my laptop by typing:

CHAINS <- 10
CORES <- 10
ITER <- 2000
SEED <- 42
prior.stan.cgd <- stan_surv(
  formula = <your surv target formula>,
  data =<your formula>,
  basehaz = "exp",
  prior_PD = TRUE,
  chains = CHAINS,
  cores = CORES,
  iter = ITER,
  refresh=500,
  seed = SEED)