fit-method-inv_metric | R Documentation |
Extract the inverse metric (mass matrix) for each MCMC chain.
inv_metric(matrix = TRUE)
matrix |
(logical) If a diagonal metric was used, setting |
A list of length equal to the number of MCMC chains. See the matrix
argument for details.
CmdStanMCMC
## Not run:
fit <- cmdstanr_example("logistic")
fit$inv_metric()
fit$inv_metric(matrix=FALSE)
fit <- cmdstanr_example("logistic", metric = "dense_e")
fit$inv_metric()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.