print.pmmh_output | R Documentation |
Displays a concise summary of parameter estimates from a PMMH output object, including means, standard deviations, medians, 95% credible intervals, effective sample sizes (ESS), and Rhat. This provides a quick overview of the posterior distribution and convergence diagnostics.
## S3 method for class 'pmmh_output'
print(x, ...)
x |
An object of class 'pmmh_output'. |
... |
Additional arguments. |
The object 'x' invisibly.
# Create dummy chains for two parameters across two chains
chain1 <- data.frame(param1 = rnorm(100), param2 = rnorm(100), chain = 1)
chain2 <- data.frame(param1 = rnorm(100), param2 = rnorm(100), chain = 2)
dummy_output <- list(
theta_chain = rbind(chain1, chain2),
diagnostics = list(
ess = c(param1 = 200, param2 = 190),
rhat = c(param1 = 1.01, param2 = 1.00)
)
)
class(dummy_output) <- "pmmh_output"
print(dummy_output)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.