View source: R/outputHelpers.R
printRejectionRates | R Documentation |
Print MCMC Rejection Rates
printRejectionRates(results, verbose = TRUE)
results |
A list of MCMC chain results. |
verbose |
Logical, whether to print rates to console. Default is TRUE. |
Extracts and prints the rejection rates from MCMC chain results.
A named numeric vector containing the rejection rate (between 0 and 1) for each MCMC chain. Names are of the form "Chain X" where X is the chain number.
# Create example results list with two chains
results <- list(
list(rejection_rate = 0.3),
list(rejection_rate = 0.4)
)
# Get rejection rates without printing
rates <- printRejectionRates(results, verbose = FALSE)
# Print rejection rates
rates <- printRejectionRates(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.