extract_stan_state {chkptstanr} | R Documentation |
Extract Stan State
Description
Extract Stan State
Usage
extract_stan_state(object, phase)
Arguments
object |
An object of class |
phase |
Character string indicating the current phase.
Options include |
Value
A list containing the inverse metric, step size, and last MCMC draw (to be used as the initial value for the next checkpoint)
Examples
## 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)
[Package chkptstanr version 0.1.1 Index]