View source: R/extract_stan_state.R
| extract_stan_state | R Documentation |
Extract Stan State
extract_stan_state(object, phase)
object |
An object of class |
phase |
Character string indicating the current phase.
Options include |
A list containing the inverse metric, step size, and last MCMC draw (to be used as the initial value for the next checkpoint)
## Not run:
library(cmdstanr)
# eight schools example
fit_schools_ncp_mcmc <- cmdstanr_example("schools_ncp")
extract_stan_state(fit_schools_ncp_mcmc, "sample")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.