Extract Stan State
extract_stan_state(object, phase)
An object of class cmdstanr
Character string indicating the current phase.
Options include wormup
and sample
/
A list containing the inverse metric, step size, and last MCMC draw (to be used as the initial value for the next checkpoint)
if (FALSE) {
library(cmdstanr)
# eight schools example
fit_schools_ncp_mcmc <- cmdstanr_example("schools_ncp")
extract_stan_state(fit_schools_ncp_mcmc, "sample")
}