Learn R Programming

chkptstanr (version 0.1.1)

extract_hmc_info: Extract HMC Sampler Information

Description

Extract the inverse metric and step size adaption from CmdStanMCMC objects.

Usage

extract_hmc_info(object)

Arguments

object

An object of class CmdStanMCMC

Value

A list including

  • inv_metric: Inverse metric for each chain (with matrix = FALSE).

  • step_size_adapt: Step size adaptation for each chain.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
library(cmdstanr)

fit_schools_ncp_mcmc <- cmdstanr_example("schools_ncp")

extract_hmc_info(fit_schools_ncp_mcmc)

# }

Run the code above in your browser using DataLab