rstanarm icon indicating copy to clipboard operation
rstanarm copied to clipboard

Does stan_surv support cores>1?

Open gqwang1001 opened this issue 3 years ago • 1 comments

Summary:

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

gqwang1001 avatar Oct 31 '22 19:10 gqwang1001

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)

maurosc3ner avatar Nov 16 '23 17:11 maurosc3ner