How can I access to the warm-up draws in rstan?

Hello,

I’d like to get the warm-up phase draws from my Stan fit, but I can’t figure out how to do it (or even if it’s possible) using the rstan package and the rstan::sampling() function.

Thanks in advance for your reply.
Maxime

Hello,

I do it with

rstan::extract(fit, pars = c("mu"), permuted = FALSE, inc_warmup = TRUE, include = TRUE)

-S

1 Like